• Resolved johnymas

    (@johnymas)


    A lot of warnings when debug is set to true.

    Notice: The called constructor method for WP_Widget in Hybrid_Widget_Categories is deprecated since version 4.3.0! Use __construct() instead. in /var/www/……../web/wp-includes/functions.php on line 3891

Viewing 3 replies - 1 through 3 (of 3 total)
  • class Hybrid_Widget_Archives extends WP_Widget {

    function __construct() {

    $this->WP_Widget( // parent::__construct
    ‘hybrid-archives’,
    __( ‘Archives’, ‘widgets-reloaded’ ),
    $widget_options,
    $control_options
    );

    }
    }

    Try:Go to hybrid-core/classes/widget-categories.php and change it to
    parent::__construct.

    see: https://github.com/justintadlock/widgets-reloaded/issues/2

    Thread Starter johnymas

    (@johnymas)

    Hi,
    thanks for your quick answer. I’m so sorry I thought it was about wordpress.
    You opened my eyes.
    Thanks

    You are most welcome. If your problem is solved can you please mark the status of the topic as resolved.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Notice: The called constructor method’ is closed to new replies.