Title: Depreciated code
Last modified: May 3, 2019

---

# Depreciated code

 *  [mikefishtank](https://wordpress.org/support/users/mikefishtank/)
 * (@mikefishtank)
 * [7 years ago](https://wordpress.org/support/topic/depreciated-code-3/)
 * With debug mode on the plugin is showing the following:
 *     ```
       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 /Users/mike/Sites/carpetan/web/app/plugins/widget-google-reviews/api/grw-api.php on line 17
       ```
   
 * and
 * `Deprecated: Function create_function() is deprecated in /Users/mike/Sites/carpetan/
   web/app/plugins/widget-google-reviews/grw.php on line 62`
 * I’m running PHP v7.2.1 locally

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

 *  Plugin Author [Daniel K.](https://wordpress.org/support/users/richplugins/)
 * (@richplugins)
 * [7 years ago](https://wordpress.org/support/topic/depreciated-code-3/#post-11493139)
 * Hi,
 * Please check that you’re using the latest version of the plugin 1.7.4, in this
   version there’s no such code ‘create_function()’.
 * Thanks!
 *  Thread Starter [mikefishtank](https://wordpress.org/support/users/mikefishtank/)
 * (@mikefishtank)
 * [7 years ago](https://wordpress.org/support/topic/depreciated-code-3/#post-11493308)
 * Yep, I’m running 1.7.4.
 *  Plugin Author [Daniel K.](https://wordpress.org/support/users/richplugins/)
 * (@richplugins)
 * [7 years ago](https://wordpress.org/support/topic/depreciated-code-3/#post-11498697)
 * Hi,
 * [@mikefishtank](https://wordpress.org/support/users/mikefishtank/), could you
   remove this plugin and install again the original?
 * It seems you’re using a modified our plugin, because:
 * 1. The original plugin does not have a ../widget-google-reviews/api/grw-api.php
   file:
 * ![](https://i0.wp.com/media.cackle.me/e/d6/fa526ae5f3e811d525d1fc1ead82ad6e.png)
 * 2. On the line 62 in ../widget-google-reviews/grw.php there’s no ‘create_function()’,
   there just a ‘}’ symbol at the latest version:
 * ![](https://i0.wp.com/media.cackle.me/a/6e/bd5b29716520855bf640d9d7d46826ea.png)
 * Based on this, I concluded that you are using someone changed version of our 
   plugin.
    You simply can download the latest version and see these two items.
 * Please let me know how that goes.
 * Thanks!

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

The topic ‘Depreciated code’ 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: [7 years ago](https://wordpress.org/support/topic/depreciated-code-3/#post-11498697)
 * Status: not resolved