Title: Deprecated constructor method
Last modified: January 21, 2020

---

# Deprecated constructor method

 *  Resolved [Furo](https://wordpress.org/support/users/furocan/)
 * (@furocan)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/deprecated-constructor-method-5/)
 * Hello,
 * after activating this plugin I got this notice:
 * `Deprecated: Methods with the same name as their class will not be constructors
   in a future version of PHP; GoogleReviewsWidgetAPI has a deprecated constructor
   in [...]/plugins/widget-google-reviews/api/grw-api.php on line 17`
 * I had to disable debug mode to “hide” this.
    Are there any plans to update the
   constructor?

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

 *  Plugin Author [Daniel K.](https://wordpress.org/support/users/richplugins/)
 * (@richplugins)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/deprecated-constructor-method-5/#post-12355271)
 * Hi [@furocan](https://wordpress.org/support/users/furocan/),
 * It seems you’re using the very old version of the plugin because the latest version
   does not have such file ../api/grw-api.php. Could you send the debug information
   from the settings page of the plugin (WordPress Settings / Google Reviews Widget/
   Settings) to support [at] richplugins.com, also please send a screenshot of this
   page.
 * Thanks!
 *  Thread Starter [Furo](https://wordpress.org/support/users/furocan/)
 * (@furocan)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/deprecated-constructor-method-5/#post-12356800)
 * Hi [@richplugins](https://wordpress.org/support/users/richplugins/) ,
 * thanks for the fast answer.
    Something really strange happened. I wanted to revisit
   my website to check the version but on the plugins page I got the message that
   the plugin was automatically deactivated because no plugin file was found. I 
   installed the plugin again and now the “deprecated” message is gone away.
 * When I installed the plugin first I did it with composer and wpackagist. There
   it said the latest version is 1.49 (which is higher than the latest version at
   wordpress.org with 1.8.3). See [here](https://wpackagist.org/search?q=widget-google-reviews).
   
   Did you changed the way you use the version number?
 *  Plugin Author [Daniel K.](https://wordpress.org/support/users/richplugins/)
 * (@richplugins)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/deprecated-constructor-method-5/#post-12356977)
 * Hi [@furocan](https://wordpress.org/support/users/furocan/),
 * The version 1.49 is very old, the current one is 1.8.3, please delete the 1.49,
   download the latest from wp.org official site [https://wordpress.org/plugins/widget-google-reviews/](https://wordpress.org/plugins/widget-google-reviews/)
   and the issue must gone.
 * Let me know how it goes.
 * Thanks!

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

The topic ‘Deprecated constructor method’ is closed to new replies.

 * ![](https://ps.w.org/widget-google-reviews/assets/icon-256x256.gif?rev=3152314)
 * [Rich Showcase for Google Reviews](https://wordpress.org/plugins/widget-google-reviews/)
 * [Support Threads](https://wordpress.org/support/plugin/widget-google-reviews/)
 * [Active Topics](https://wordpress.org/support/plugin/widget-google-reviews/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/widget-google-reviews/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/widget-google-reviews/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Daniel K.](https://wordpress.org/support/users/richplugins/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/deprecated-constructor-method-5/#post-12356977)
 * Status: resolved