Fatal error – Google Analytics for WordPress by MonsterInsights.
-
Installed OptIn today and once it had finished installing the WordPress Dashboard crashed with a fatal error. Redacted details from WP support email following:
When seeking help with this issue, you may be asked for some of the following information:
WordPress version 6.3
Active theme: Education Base Child (version 3.0.6.1691930766)
Current plugin: Google Analytics for WordPress by MonsterInsights (version 8.18)
PHP version 8.1.22
Error Details
=============
An error of type E_ERROR was caused in line 531 of the file /[redacted]/wp-content/plugins/google-analytics-for-wordpress/googleanalytics.php. Error message: Uncaught Error: Failed opening required ‘/[redacted]/wp-content/plugins/google-analytics-for-wordpress/assets/lib/pandora/class-am-deactivation-survey.php’ (include_path=’.:/usr/lib/php8.1′) in /[redacted]/wp-content/plugins/google-analytics-for-wordpress/googleanalytics.php:531
Looks like you are linking to your sandbox as all other includes are in the format “includes/admin/” ?
require_once MONSTERINSIGHTS_PLUGIN_DIR . 'assets/lib/pandora/class-am-deactivation-survey.php';
Disabling the Google analytics plugin for now has removed the problem. Yet to use OptIn, so don’t know if there will be any knock-on effects.
If it helps, I installed OptIn, deleted before using, then reinstalled. After that I saw the error.
- The topic ‘Fatal error – Google Analytics for WordPress by MonsterInsights.’ is closed to new replies.