WP_WIDGET is deprecated since vs.4.3.0

Support Forums for LiveMesh Themes & Plugins Forums Invent Theme Support WP_WIDGET is deprecated since vs.4.3.0

Viewing 15 posts - 1 through 15 (of 20 total)
  • Author
    Posts
  • #16224
    lyngoclinh
    Member

    Dear Admin,
    I meet a problem that when I login, it shows:

    “Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
    __construct()
    instead. in /home1/duhocwor/public_html/wp-includes/functions.php on line 3457”

    Do you know any solution to this problem?
    Thanks in advance

    #16225
    lyngoclinh
    Member
    This reply has been marked as private.
    #16231
    Veena
    Moderator

    You can resolve it by adding the following code to framework/widgets/mo-widget.php file at line 20 –

        public function WP_Widget( $id_base, $name, $widget_options = array(), $control_options = array() ) {
            parent::__construct( $id_base, $name, $widget_options, $control_options );
        }
    
    #16253
    lyngoclinh
    Member

    Thanks so much. But how can I add it when /wp-admin is a blank space?

    #16257
    Veena
    Moderator

    Could you be more specific, please?

    #16303
    lyngoclinh
    Member

    Sorry, I’m new on IT and I just don’t knoew where to add your code?

    #16310
    Veena
    Moderator

    You need to access themefiles.
    Pls go to the folder framework -> open widgets folder -> pls find the file mo-widget.php and insert the above given code (copy paste) at line no:20 in file mo-widget.php and see if that helps.

    #16585
    lyngoclinh
    Member

    I tried and I couldn’t acess host. Can you recover my webiste on the day before the problem ocurrs?

    #16589
    Veena
    Moderator

    Pls share a valid temp login details with admin rights.

    #16601
    lyngoclinh
    Member
    This reply has been marked as private.
    #16606
    Veena
    Moderator

    I tried multiple times to connect FTP but hitting the same error –

    Error:	Connection timed out after 20 seconds of inactivity
    Error:	Failed to retrieve directory listing
    

    Can you pls share a temp login to your wordpress site here as a private reply?

    #16608
    lyngoclinh
    Member
    This reply has been marked as private.
    #16611
    Raghavendra
    Moderator

    An theme update is being submitted in next few hours which will take care of this issue. Pls wait. Until then, pls set WP_DEBUG to false in wp-config.php.

    #16620
    Raghavendra
    Moderator

    If you need this urgently while the update gets submitted and then approved, pls replace the file framework/widgets/mo-widget.php file with the one attached with this post.

    Unzip the file and you should see the PHP file with updated code to remove the notice.

    #16650
    lyngoclinh
    Member

    Sorry, but I cant connect FTP to do your step. Do you have any solution?

Viewing 15 posts - 1 through 15 (of 20 total)
  • The forum ‘Invent Theme Support’ is closed to new topics and replies.