MyBB Community Forums

Full Version: Google Analytics Error 500
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm attempting to install the plugin for google analytics, but when I click on activate I get an error 500, any ideas?

Many thanks!!!
You'd need to check the server error log to see what is causing the 500, it's a very generic error message.
[10-Mar-2023 14:42:57 UTC] PHP Fatal error:  require_once(): Failed opening required '/home/storiesp/public_html/inc/plugins/pluginlibrary.php' (include_path='.:/opt/alt/php74/usr/share/pear') in /home/storiesp/public_html/inc/plugins/fastyle.php on line 142
[10-Mar-2023 14:43:07 UTC] PHP Fatal error:  require_once(): Failed opening required '/home/storiesp/public_html/inc/plugins/pluginlibrary.php' (include_path='.:/opt/alt/php74/usr/share/pear') in /home/storiesp/public_html/inc/plugins/fastyle.php on line 142
[10-Mar-2023 14:43:12 UTC] PHP Fatal error:  require_once(): Failed opening required '/home/storiesp/public_html/inc/plugins/pluginlibrary.php' (include_path='.:/opt/alt/php74/usr/share/pear') in /home/storiesp/public_html/inc/plugins/fastyle.php on line 142
[16-Mar-2023 16:48:33 UTC] PHP Fatal error:  Uncaught Error: Call to a member function read() on null in /home/storiesp/public_html/inc/plugins/googleanalytics.php:73
Stack trace:
#0 /home/storiesp/public_html/admin/modules/config/plugins.php(439): googleanalytics_activate()
#1 /home/storiesp/public_html/admin/index.php(830): require('/home/storiesp/...')
#2 {main}
  thrown in /home/storiesp/public_html/inc/plugins/googleanalytics.php on line 73
[16-Mar-2023 16:48:43 UTC] PHP Fatal error:  Uncaught Error: Call to a member function read() on null in /home/storiesp/public_html/inc/plugins/googleanalytics.php:73
Stack trace:
#0 /home/storiesp/public_html/admin/modules/config/plugins.php(439): googleanalytics_activate()
#1 /home/storiesp/public_html/admin/index.php(830): require('/home/storiesp/...')
#2 {main}
  thrown in /home/storiesp/public_html/inc/plugins/googleanalytics.php on line 73
[16-Mar-2023 17:20:41 UTC] PHP Fatal error:  Uncaught Error: Call to a member function read() on null in /home/storiesp/public_html/inc/plugins/googleanalytics.php:73
Stack trace:
#0 /home/storiesp/public_html/admin/modules/config/plugins.php(439): googleanalytics_activate()
#1 /home/storiesp/public_html/admin/index.php(830): require('/home/storiesp/...')
#2 {main}
  thrown in /home/storiesp/public_html/inc/plugins/googleanalytics.php on line 73

I also facing same issues
 Failed opening required '/home/storiesp/public_html/inc/plugins/pluginlibrary.php' in /home/storiesp/public_html/inc/plugins/fastyle.php

This error suggests the plugin library is required for the fastyle plugin.

 PHP Fatal error:  Uncaught Error: Call to a member function read() on null in /home/storiesp/public_html/inc/plugins/googleanalytics.php:73

Looking at the plugin code, it is a bug, it is using the $cache variable but it hasn't been globalised.