Title: Getting a _construct() error
Last modified: September 1, 2016

---

# Getting a _construct() error

 *  [David 279](https://wordpress.org/support/users/david-279/)
 * (@david-279)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/getting-a-_construct-error/)
 * _Notice: The called constructor method for WP\_Widget in WGS\_Widget is deprecated
   since version 4.3.0! Use
    \_\_construct()
 * had a quick look in the code and can’t spot why this would be the case but …
 * Error has only occurred in the last few hours
 * [https://wordpress.org/plugins/wp-google-search/](https://wordpress.org/plugins/wp-google-search/)

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

 *  Plugin Author [WebshopLogic](https://wordpress.org/support/users/webshoplogic/)
 * (@webshoplogic)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/getting-a-_construct-error/#post-7542602)
 * We will fix the problem soon.
 *  [michalzuber](https://wordpress.org/support/users/michalzuber/)
 * (@michalzuber)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/getting-a-_construct-error/#post-7542629)
 * Just replace
    `parent::WP_Widget` with `parent::__construct` on line 7 in [https://plugins.trac.wordpress.org/browser/wp-google-search/trunk/wgs-widget.php#L7](https://plugins.trac.wordpress.org/browser/wp-google-search/trunk/wgs-widget.php#L7)

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

The topic ‘Getting a _construct() error’ is closed to new replies.

 * ![](https://ps.w.org/wp-google-search/assets/icon-256x256.png?rev=976021)
 * [WP Google Search](https://wordpress.org/plugins/wp-google-search/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-google-search/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-google-search/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-google-search/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-google-search/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-google-search/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [michalzuber](https://wordpress.org/support/users/michalzuber/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/getting-a-_construct-error/#post-7542629)
 * Status: not resolved