Critiical Error with 7.0.2 | WordPress.org

Please update to v7.0.3 and let me know if this is resolved.

Hi,

No, I still get a critical error email when upgrading to 7.0.3, see below:

WordPress version 6.5.2
Active theme: Vogue (version 10.9.2)
Current plugin: Site Reviews (version 7.0.3)
PHP version 8.0.30

Error Details
=============
An error of type E_ERROR was caused in line 261 of the file /home/shop/wp-content/plugins/site-reviews/plugin/Modules/Console.php. Error message: Uncaught Error: Call to undefined method GeminiLabs\SiteReviews\Helpers\Str::hash() in /home/omgcyb5/shop/wp-content/plugins/site-reviews/plugin/Modules/Console.php:261
Stack trace:
#0 /home/shop/wp-content/plugins/site-reviews/plugin/Modules/Console.php(39): GeminiLabs\SiteReviews\Modules\Console->setLogFile()
#1 [internal function]: GeminiLabs\SiteReviews\Modules\Console->__construct()
#2 /home/shop/wp-content/plugins/site-reviews/plugin/Container.php(110): ReflectionClass->newInstanceArgs(Array)
#3 /home/shop/wp-content/plugins/site-reviews/plugin/Container.php(219): GeminiLabs\SiteReviews\Container->construct('GeminiLabs\\Site...')
#4 [internal function]: GeminiLabs\SiteReviews\Container->GeminiLabs\SiteReviews\{closure}()
#5 /home/omgcyb5/shop/wp-content/plugins/site-reviews/plugin/Helper.php(353): call_user_func(Object(Closure))
#6 /home/shop/wp-content/plugins/site-reviews/plugin/Helper.php(239): GeminiLabs\SiteReviews\Helper::runClosure(Object(Closure))
#7 /home/shop/wp-content/plugins/site-reviews/plugin/Container.php(220): GeminiLabs\SiteReviews\Helper::ifTrue(true, Object(Closure), Object(Closure))
#8 /home/shop/wp-content/plugins/site-reviews/plugin/Container.php(67): GeminiLabs\SiteReviews\Container->resolve('GeminiLabs\\Site...', Array)
#9 /home/shop/wp-content/plugins/site-reviews/helpers.php(63): GeminiLabs\SiteReviews\Container->make('GeminiLabs\\Site...', Array)
#10 /home/shop/wp-content/plugins/site-reviews/helpers.php(210): glsr('GeminiLabs\\Site...')
#11 /home/shop/wp-content/plugins/site-reviews/plugin/Controllers/MainController.php(77): glsr_log()
#12 /home/omgcyb5/shop/wp-includes/class-wp-hook.php(324): GeminiLabs\SiteReviews\Controllers\MainController->logOnce('update.php')
#13 /home/shop/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#14 /home/shop/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#15 /home/shop/wp-admin/includes/template.php(2222): do_action('admin_footer', 'update.php')
#16 /home/shop/wp-admin/update.php(53): iframe_footer()
#17 {main}
  thrown

Uncaught Error: Call to undefined method GeminiLabs\SiteReviews\Helpers\Str::hash()

Strange. The error says that Str::hash() is undefined even though it exists in v7 (but not in v6). I also just tested the v7.0.4 update on two live servers and both of them update fine.

Please try this:

  1. Go to the Site Reviews Setting and make sure that the “Delete data on uninstall” is set to “Do not delete anything”
  2. Deactivate and remove Site Reviews from your website.
  3. Go to the “Plugins > Add New” page and install a fresh copy of Site Reviews.

Does that work?

Right, I see that you have now released 7.0.4, so I updated from 7.0.3 to 7.0.4 on my dev site and no critical error email. I will try it on my live site.

BTW the plugin was already set to “Do not delete anything”

Update: Just upgraded my live site from 6.11.8 to 7.0.4 and no critical error email…

  • This reply was modified 22 minutes ago by ttoaster.
  • This reply was modified 12 minutes ago by ttoaster.

Thanks! It must have been the database permission issue (related to foreign contraints) patched in v7.0.4 that was causing the problem.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer