• Resolved reneverschoor

    (@reneverschoor)


    Simple Facebook Plugin 1.4.1 on WordPress 4.7.2

    I’ve enabled WP_DEBUG while I’m testing my own plugin in production environment.
    The debug.log is spammed with:

    [28-Feb-2017 18:14:21 UTC] PHP Notice:  De aangeroepen constructiemethode voor WP_Widget in SFPLikeBoxWidget is <strong>niet meer in gebruik</strong> sinds versie 4.3.0. Gebruik in plaats daarvan: <pre>__construct()</pre>. in /home/reneverschoor/wereldasielen.nl/wp-includes/functions.php on line 3891
    [28-Feb-2017 18:14:21 UTC] PHP Notice:  De aangeroepen constructiemethode voor WP_Widget in SFPPagePluginWidget is <strong>niet meer in gebruik</strong> sinds versie 4.3.0. Gebruik in plaats daarvan: <pre>__construct()</pre>. in /home/reneverschoor/wereldasielen.nl/wp-includes/functions.php on line 3891
    

    This is the Dutch message for a deprecated constructor call (see functions.php).

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter reneverschoor

    (@reneverschoor)

    Here’s the English message:

    [01-Mar-2017 05:39:06 UTC] PHP Notice:  The called constructor method for WP_Widget in SFPLikeBoxWidget is <strong>deprecated</strong> since version 4.3.0! Use <pre>__construct()</pre> instead. in /var/www/html/wp-includes/functions.php on line 3891
    [01-Mar-2017 05:39:06 UTC] PHP Notice:  The called constructor method for WP_Widget in SFPPagePluginWidget is <strong>deprecated</strong> since version 4.3.0! Use <pre>__construct()</pre> instead. in /var/www/html/wp-includes/functions.php on line 3891
    
    Thread Starter reneverschoor

    (@reneverschoor)

    Solved it myself.

    Edit simple-facebook-plugin/lib/sfp-like-box.php.
    Change line 25 from
    parent::WP_Widget(...
    to
    parent::__construct(...

    Edit simple-facebook-plugin/lib/sfp-page-plugin.php.
    Change line 26 from
    parent::WP_Widget(...
    to
    parent::__construct(...

    Plugin Author topdevs.net

    (@topdevs)

    Thanks for the input reneverschoor! This is fixed in v1.5

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Deprecated constructor method’ is closed to new replies.