Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix issue WP_Widget_Media_Gallery

Discussion in 'Misc WordPress Requests' started by juliago86, Nov 21, 2017.

  1. juliago86

    Guest

    issue WP_Widget_Media_Gallery, by juliago86

    Hi,

    wordpress version 4.9
    PHP/ 7.1.4
    SQL 5.6.34
    I’m not able to login my account because of warning messages.

    I’m new in wordpress. How can I fix this below issue with class WP_Widget_Media_Gallery?

    ! ) Fatal error: Uncaught Error: Class ‘WP_Widget_Media_Gallery’ not found in /app/public/wp-includes/class-wp-widget-factory.php on line 106

    ( ! ) Error: Class ‘WP_Widget_Media_Gallery’ not found in /app/public/wp-includes/class-wp-widget-factory.php on line 106

    In file “class-wp-widget-factory”, none media neither gallery are written.

    line 92 to 108
    /**
    * Registers a widget subclass.
    *
    * @since 2.8.0
    * @since 4.6.0 Updated the $widget parameter to also accept a WP_Widget instance object
    * instead of simply a WP_Widget subclass name.
    * @access public
    *
    * @param string|WP_Widget $widget Either the name of a WP_Widget subclass or an instance of a WP_Widget subclass.
    */
    public function register( $widget ) {
    if ( $widget instanceof WP_Widget ) {
    $this->widgets[ $this->hash_object( $widget ) ] = $widget;
    } else {
    $this->widgets[ $widget ] = new $widget();
    }
    }

    thank you very much

    issue WP_Widget_Media_Gallery
     
    #1

Share This Page

Web Hosting