• Resolved sleeplessindc

    (@sleeplessindc)


    I love this plugin but with WordPress 4.7, I am getting the following error message:
    [26-Apr-2017 12:36:36 UTC] PHP Notice: The called constructor method for WP_Widget in WP_RSSjb 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? I think the developer has abandoned this as the website is no longer active.

    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 ‘PHP error: deprecated called constructor method. How to fix?’ is closed to new replies.