Title: Error constructor method for WP_Widget is deprecated
Last modified: August 31, 2016

---

# Error constructor method for WP_Widget is deprecated

 *  [Carola](https://wordpress.org/support/users/caromanel/)
 * (@caromanel)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/error-constructor-method-for-wp_widget-is-deprecated/)
 * Hi,
    I am getting this notice error:
 * Notice: The called constructor method for WP_Widget in AI_Twitter_Widget is **
   deprecated** since version 4.3.0! Use __construct() instead. in /var/www/../..//
   functions.php on line 3722
 * Event that it is a notice, when we have debug set to true, the message is always
   there and it goes to the log.
 * I do really like to plugin but I would like to know if you plan to fix this error
   soon.
 * Thanks
 * [https://wordpress.org/plugins/ai-twitter-feeds/](https://wordpress.org/plugins/ai-twitter-feeds/)

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

 *  Plugin Author [August Infotech](https://wordpress.org/support/users/augustinfotech/)
 * (@augustinfotech)
 * [10 years ago](https://wordpress.org/support/topic/error-constructor-method-for-wp_widget-is-deprecated/#post-7351713)
 * Hello Carola,
 * We will Check this plugin Up to WordPress 4.5 Version but not showing any error,
   please update your wordpress version.
 * Please let us know if we could be of any other help.
 *  [Josh88](https://wordpress.org/support/users/josh88/)
 * (@josh88)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/error-constructor-method-for-wp_widget-is-deprecated/#post-7351751)
 * I’m using 4.5.3 and the error is still present:
 *     ```
       Notice: The called constructor method for WP_Widget in AI_Twitter_Widget is <strong>deprecated</strong> since version 4.3.0! Use
       <pre>__construct()</pre>
        instead. in ...\wp-includes\functions.php on line 3718
       ```
   
 *  [Jeff Behnke](https://wordpress.org/support/users/topdown/)
 * (@topdown)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/error-constructor-method-for-wp_widget-is-deprecated/#post-7351755)
 * Please fix your contructor’s. This is a PHP version issue also.
    `Deprecated:
   Methods with the same name as their class will not be constructors in a future
   version of PHP; AI_Twitter_Widget has a deprecated constructor in wp-content/
   plugins/ai-twitter-feeds/ai-twitter-feeds.php on line 337`
 * Most of the time all you have to do is change the method to __construct()
 *  [adnanshahid402](https://wordpress.org/support/users/adnanshahid402/)
 * (@adnanshahid402)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/error-constructor-method-for-wp_widget-is-deprecated/#post-8691276)
 * solve my issue plz ia heve same problem what can i do i cant login my admin area
   of wordprss its a ig issue plz tell me hat can i do
    Notice: The called constructor
   method for WP_Widget in WP_kStats_Widget is deprecated since version 4.3.0! Use
   __construct()

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

The topic ‘Error constructor method for WP_Widget is deprecated’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/ai-twitter-feeds_bde0ed.svg)
 * [AI Twitter Feeds (Twitter widget & shortcode)](https://wordpress.org/plugins/ai-twitter-feeds/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ai-twitter-feeds/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ai-twitter-feeds/)
 * [Active Topics](https://wordpress.org/support/plugin/ai-twitter-feeds/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ai-twitter-feeds/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ai-twitter-feeds/reviews/)

 * 4 replies
 * 5 participants
 * Last reply from: [adnanshahid402](https://wordpress.org/support/users/adnanshahid402/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/error-constructor-method-for-wp_widget-is-deprecated/#post-8691276)
 * Status: not resolved