I'm getting a message:Warning: Missing argument 2 for WP_Widget::__construct()..

This topic has 6 replies, 3 voices, and was last updated 8 years, 3 months ago ago by Jack Richardson

  • Avatar: mediatek01
    mediatek01
    Participant
    January 12, 2016 at 13:55

    Hello,

    Out of the blue I am getting a warning for my cart and it is displaying on my site. The full warning messages are:

    Warning: Missing argument 1 for WP_Widget::__construct(), called in /home5/adrianh4/public_html/AE/wp-content/themes/blanco-child/header.php on line 235 and defined in /home5/adrianh4/public_html/AE/wp-includes/class-wp-widget.php on line 154

    Warning: Missing argument 2 for WP_Widget::__construct(), called in /home5/adrianh4/public_html/AE/wp-content/themes/blanco-child/header.php on line 235 and defined in /home5/adrianh4/public_html/AE/wp-includes/class-wp-widget.php on line 154

    Please advise.

    Regards,
    Angelo

    Please, contact administrator
    for this information.
    5 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    January 12, 2016 at 16:20

    Hello,

    As you can see the warning is related to your child theme:
    /home5/adrianh4/public_html/AE/wp-content/themes/blanco-child/header.php

    You should check your modifications in the child theme you created.

    Regards,
    Eva Kemp.

    Avatar: mediatek01
    mediatek01
    Participant
    January 14, 2016 at 09:46

    Hi, I may be using a child theme but it is calling a function in the main theme that is causing the issue. My child theme is very basic. Plus this was working fine then all of a sudden the messages started appearing. Nothing was changed. Can you please login to my site and take a look at it.

    Regards,
    Angelo

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    January 14, 2016 at 11:48

    Hello,

    Please provide us with FTP credentials.

    Best regards,
    Jack Richardson.

    Avatar: mediatek01
    mediatek01
    Participant
    January 16, 2016 at 16:20

    I initially put the FTP credentials in my initial message to you. Here is it again under Private.

    Thanks,
    Angelo

    Please, contact administrator
    for this information.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    January 18, 2016 at 12:35

    Hello,

    The problem persists when your custom class Etheme_WooCommerce_Widget_Cart2 is used in the child header.php file in line 235. You need to analyze what exactly is incorrect in your code as it’s out of our support scope.

    Best regards,
    Jack Richardson.

  • Viewing 6 results - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.