• Resolved sleeplessindc

    (@sleeplessindc)


    I love this plugin but with WordPress 4.7, I am getting the following error message: (it has been working up until now since I edited all the https:// links to https:// links).

    [26-Apr-2017 12:35:17 UTC] PHP Notice: The called constructor method for WP_Widget in CC_Flickr_Widget is <strong>deprecated</strong> since version 4.3.0! Use <pre>__construct()</pre> instead. in /home/baee_2012/dev.baeecorp.org/wp-includes/functions.php on line 3893

    Does anyone know how to fix this?
    The error message says “use __construct()” instead but how do I implement this?

Viewing 1 replies (of 1 total)
  • Thread Starter sleeplessindc

    (@sleeplessindc)

    I found the answer. Search your plugins for files that have:
    function my_widget or $this->WP_Widget or parent::WP_Widget.

    Replace the function my_widget with function __construct
    Replace parent::WP_Widget or $this->WP_Widget with parent::__construct

    Change

     // constructor
     function my_widget() {
     $this->WP_Widget(

    To

     // constructor
     function __construct() {
     parent::__construct(
Viewing 1 replies (of 1 total)
  • The topic ‘Deprecated called instructor in plugin or in WordPress?’ is closed to new replies.