Title: Deprecated PHP4 style constructor method for WP_Widget
Last modified: August 30, 2016

---

# Deprecated PHP4 style constructor method for WP_Widget

 *  [awtx](https://wordpress.org/support/users/awtx/)
 * (@awtx)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/deprecated-php4-style-constructor-method-for-wp_widget/)
 * Please update your plugin so it does not use the deprecated PHP 4 Style Constructors.
   It would be very helpful if you started preparing for PHP7 compatibility.
 *     ```
       -- Facebook-Like-Box-widget v2.8 --
       PHP Notice:  The called constructor method for WP_Widget is <strong>deprecated</strong> since version 4.3.0! Use <pre>__construct()</pre> instead. in /wp-content/plugins/facebook-like-box-widget/facebook-like-box-widget.php on line 22
       ```
   
 * [https://make.wordpress.org/core/2015/07/02/deprecating-php4-style-constructors-in-wordpress-4-3/](https://make.wordpress.org/core/2015/07/02/deprecating-php4-style-constructors-in-wordpress-4-3/)
 * List of plugins still using old PHP syntax.
    [ gist.github.com/chriscct7/d7d077afb01011b1839d
 * [https://wordpress.org/plugins/facebook-like-box-widget/](https://wordpress.org/plugins/facebook-like-box-widget/)

Viewing 1 replies (of 1 total)

 *  [AlanP57](https://wordpress.org/support/users/alanp57/)
 * (@alanp57)
 * [9 years ago](https://wordpress.org/support/topic/deprecated-php4-style-constructor-method-for-wp_widget/#post-9074374)
 * This problem still exist in version 2.9 but is easy to fix:
 *     ```
       PHP Notice: The called constructor method for WP_Widget in FacebookLikeBoxWidget is deprecated since version 4.3.0! Use
   
       __construct()
   
       instead. in /home/content/40/9493540/html/subdomains/dev/wp-includes/functions.php on line 3893
       ```
   
    -  This reply was modified 9 years ago by [AlanP57](https://wordpress.org/support/users/alanp57/).

Viewing 1 replies (of 1 total)

The topic ‘Deprecated PHP4 style constructor method for WP_Widget’ is closed to 
new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/facebook-like-box-widget.svg)
 * [Facebook Like Box Widget](https://wordpress.org/plugins/facebook-like-box-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/facebook-like-box-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/facebook-like-box-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/facebook-like-box-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/facebook-like-box-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/facebook-like-box-widget/reviews/)

## Tags

 * [wp_widget](https://wordpress.org/support/topic-tag/wp_widget/)

 * 1 reply
 * 2 participants
 * Last reply from: [AlanP57](https://wordpress.org/support/users/alanp57/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/deprecated-php4-style-constructor-method-for-wp_widget/#post-9074374)
 * Status: not resolved