Title: WP_Widget constructor method deprecated in virtue theme widgets.php
Last modified: August 10, 2017

---

# WP_Widget constructor method deprecated in virtue theme widgets.php

 *  [paulwalker](https://wordpress.org/support/users/paulwalker/)
 * (@paulwalker)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/wp_widget-constructor-method-deprecated-in-virtue-theme-widgets-php/)
 * I’m receiving the following PHP notice in my apache logs. It occurs for all of
   the Virtue theme widgets. Here is an example below
 * The called constructor method for WP_Widget in Simple_About_With_Image is **deprecated**
   since version 4.3.0! Use
 *     ```
       __construct()
       ```
   
 *  instead
 * I’ve located the relevant code for the widgets in wp-content/themes/virtue/lib/
   widgets.php but am unsure as how to proceed.

Viewing 1 replies (of 1 total)

 *  [Subrata Sarkar](https://wordpress.org/support/users/subrataemfluence/)
 * (@subrataemfluence)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/wp_widget-constructor-method-deprecated-in-virtue-theme-widgets-php/#post-9397454)
 * As the error says, your have deprecated function.
 * 1. Make sure All your Plugins are Up-to-date, if not update them first
    2. Deactivate
   all your existing plugins and see if the issue still persists 3. If not, start
   activating plugins one by one and keep checking from which particular Plugin 
   the error is being raised. If you find the culprit and if it is a Plugin that
   your installed, contact the plugin developer with the issue.
 * The following links might be helpful. They are addressing your exact issue:
 * [http://docs.layerswp.com/doc/notice-the-called-constructor-method-for-wp_widget-is-deprecated-since-version-4-3-0-use-__construct/](http://docs.layerswp.com/doc/notice-the-called-constructor-method-for-wp_widget-is-deprecated-since-version-4-3-0-use-__construct/)
 * and
 * [https://stackoverflow.com/questions/32860218/the-called-constructor-method-for-wp-widget-is-deprecated-since-version-4-3-0](https://stackoverflow.com/questions/32860218/the-called-constructor-method-for-wp-widget-is-deprecated-since-version-4-3-0)
 * Let me know if this helps!

Viewing 1 replies (of 1 total)

The topic ‘WP_Widget constructor method deprecated in virtue theme widgets.php’ 
is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/virtue/3.4.15/screenshot.png)
 * Virtue
 * [Support Threads](https://wordpress.org/support/theme/virtue/)
 * [Active Topics](https://wordpress.org/support/theme/virtue/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/virtue/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/virtue/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Subrata Sarkar](https://wordpress.org/support/users/subrataemfluence/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/wp_widget-constructor-method-deprecated-in-virtue-theme-widgets-php/#post-9397454)
 * Status: not resolved