Fatal error at activation
-
When I activate the plugin directly after installation, I get the following error:
Fatal error: Uncaught Error: Cannot use object of type stdClass as array in /.../wp-content/plugins/wp-staging/Framework/Analytics/AnalyticsSender.php:32 Stack trace: #0 /.../wp-content/plugins/wp-staging/Framework/AnalyticsServiceProvider.php(89): WPStaging\Framework\Analytics\AnalyticsSender->maybeSend() #1 /.../wp-content/plugins/wp-staging/Framework/DI/ServiceProvider.php(10): WPStaging\Framework\AnalyticsServiceProvider->addHooks() #2 /.../wp-content/plugins/wp-staging/vendor_wpstg/lucatume/di52/src/tad/DI52/Container.php(433): WPStaging\Framework\DI\ServiceProvider->register() #3 /.../wp-content/plugins/wp-staging/Core/WPStaging.php(76): WPStaging\Vendor\tad_DI52_Container->register() #4 /.../wp-content/plugins/wp-staging/Core/WPStaging.php(191): WPStaging\Core\WPStaging->bootstrap() #5 /.../wp-content/plugins/wp-staging/Core/WPStaging.php(187): WPStaging\Core\WPStaging::getInstance() #6 /.../wp-content/plugins/wp-staging/bootstrap.php(83): WPStaging\Core\WPStaging::getInstance() #7 /.../wp-content/plugins/wp-staging/freeBootstrap.php(53): require_once('...') #8 /.../wp-includes/class-wp-hook.php(303): {closure}() #9 /.../wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters() #10 /.../wp-includes/plugin.php(470): WP_Hook->do_action() #11 /.../wp-admin/plugins.php(193): do_action() #12 {main} thrown in /.../wp-content/plugins/wp-staging/Framework/Analytics/AnalyticsSender.php on line 32
I’m using PHP 8.0 and WP 5.8.3. I haven’t tested it without other plugins, because I wanted to create a staging environment to test some things without plugins. Testing with the Health Check & Troubleshooting plugin isn’t possible, because you can only test plugins that are already active. So I hope that this error already gives an idea of the cause.
Last week I had the same error on another website (different hosting, PHP 7.4, WP 5.8.3) but we used an alternative method to clone the website.
The page I need help with: [log in to see the link]
- The topic ‘Fatal error at activation’ is closed to new replies.