• 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 richplugins

    (@richplugins)

    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

    (@mikefishtank)

    Yep, I’m running 1.7.4.

    Plugin Author richplugins

    (@richplugins)

    Hi,

    @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:

    2. On the line 62 in ../widget-google-reviews/grw.php there’s no ‘create_function()’, there just a ‘}’ symbol at the latest version:

    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.