Title: Plugin needs update to remove PHP 4 style constructors
Last modified: August 30, 2016

---

# Plugin needs update to remove PHP 4 style constructors

 *  [kjohnson_2](https://wordpress.org/support/users/kjohnson_2/)
 * (@kjohnson_2)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/plugin-needs-update-to-remove-php-4-style-constructors/)
 * Sample message:
    PHP Notice: The called constructor method for WP_Widget is deprecated
   since version 4.3.0! Use __construct() instead.
 * See these articles for more info:
 * > [Deprecating PHP4 style constructors in WordPress 4.3](https://make.wordpress.org/core/2015/07/02/deprecating-php4-style-constructors-in-wordpress-4-3/)
 * [https://gist.github.com/chriscct7/d7d077afb01011b1839d](https://gist.github.com/chriscct7/d7d077afb01011b1839d)
 * [https://markjaquith.wordpress.com/2009/09/29/using-php5-object-constructors-in-wp-widget-api/](https://markjaquith.wordpress.com/2009/09/29/using-php5-object-constructors-in-wp-widget-api/)
 * Yes, I know that this message goes away if you set WP_DEBUG to false. However,
   I have learned that it is valuable to enable WP_DEBUG in my test environment;
   I receive enough of these messages to make the dashboard unusable, so I am requesting
   corrections for each of the plugins or the theme that has this problem.
 * Thanks
 * [https://wordpress.org/plugins/google-calendar-widget/](https://wordpress.org/plugins/google-calendar-widget/)

The topic ‘Plugin needs update to remove PHP 4 style constructors’ is closed to 
new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/google-calendar-widget.svg)
 * [Google Calendar Widget](https://wordpress.org/plugins/google-calendar-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-calendar-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-calendar-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/google-calendar-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-calendar-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-calendar-widget/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [kjohnson_2](https://wordpress.org/support/users/kjohnson_2/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/plugin-needs-update-to-remove-php-4-style-constructors/)
 * Status: not resolved