Fatal error when activating Google Analytics Extension

I’ve created a fresh WordPress installation for testing (translation project) and installed MainWP Dashboard 5.4.0.20. The site is running on PHP 8.4

When activating Google Analytics Extension 5.0.1 I get the following fatal errors:

PHP Fatal error:  Uncaught Error: Class "MainWP\Extensions\GoogleAnalytics\MainWP_GA_Main" not found in /.../wp-content/plugins/mainwp-google-analytics-extension/mainwp-google-analytics-extension.php:113
Stack trace:
#0 /.../wp-content/plugins/mainwp-google-analytics-extension/mainwp-google-analytics-extension.php(53): MainWP\Extensions\GoogleAnalytics\MainWP_GA_Extension_Activator->activate_this_plugin()
#1 /.../wp-content/plugins/mainwp-google-analytics-extension/mainwp-google-analytics-extension.php(187): MainWP\Extensions\GoogleAnalytics\MainWP_GA_Extension_Activator->__construct()
#2 /.../wp-admin/includes/plugin.php(2387): include_once('...')
#3 /.../wp-admin/includes/plugin.php(673): plugin_sandbox_scrape()
#4 /.../wp-admin/includes/plugin.php(879): activate_plugin()
#5 /.../wp-admin/plugins.php(126): activate_plugins()
#6 {main}
  thrown in /.../wp-content/plugins/mainwp-google-analytics-extension/mainwp-google-analytics-extension.php on line 113

Occurrence: blocking activation

1 Like

Hey @josklever

I couldn’t reproduce this issue. I’ve used a fresh WP install and a fresh MainWP Dashboard install running on PHP 8.4.10.

Can you try removing the add-on and reinstalling it?

If possible, try deactivating all non-MainWP plugins on the site.

If you still get the same error, please post the community system report from your MainWP Dashboard for our review.

A re-installation did help indeed. It appears that the plugin was installed incompletely the first time. Maybe the bulk install of all extensions at once was a bit to much…

Deactivating all non-MainWP plugins is not relevant on a fresh install.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.