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
    Lyngoclinhlyngoclinh
    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
    Lyngoclinhlyngoclinh
    Member
    This reply has been marked as private.
    #16231
    VeenaVeena
    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
    Lyngoclinhlyngoclinh
    Member

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

    #16257
    VeenaVeena
    Moderator

    Could you be more specific, please?

    #16303
    Lyngoclinhlyngoclinh
    Member

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

    #16310
    VeenaVeena
    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
    Lyngoclinhlyngoclinh
    Member

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

    #16589
    VeenaVeena
    Moderator

    Pls share a valid temp login details with admin rights.

    #16601
    Lyngoclinhlyngoclinh
    Member
    This reply has been marked as private.
    #16606
    VeenaVeena
    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?

    • This reply was modified 5 years, 6 months ago by VeenaVeena.
    #16608
    Lyngoclinhlyngoclinh
    Member
    This reply has been marked as private.
    #16611
    RaghavendraRaghavendra
    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
    RaghavendraRaghavendra
    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.

    Attachments:
    #16650
    Lyngoclinhlyngoclinh
    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.