Simple Statistics PHP error
Posted: Sun Sep 13, 2020 8:53 pm
I installed the Simple Statistics plugin on my 3.1.1 install. On loading a page, I received the following error:
This error then appeared on all pages of the site.
Upon deleting the Simple Statistics plugin directory, the error was eliminated.
No other plugins were installed. There is one line of JS in one of my content blocks.
Code: Select all
Fatal error: Uncaught TypeError: Return value of SimpleStatistics::getDb() must be an instance of stdClass, null returned in [directory]/plugins/simple-statistics/class.SimpleStatistics.php:47 Stack trace: #0 [directory]/plugins/simple-statistics/class.SimpleStatistics.php(30): SimpleStatistics->getDb() #1 [directory]/plugins/simple-statistics/simple-statistics.php(6): SimpleStatistics->init() #2 [directory]/index.php(1137): include('[directory]...') #3 [directory]/index.php(127): Wcms->loadPlugins() #4 [directory]/index.php(15): Wcms->init() #5 {main} thrown in [directory]/plugins/simple-statistics/class.SimpleStatistics.php on line 47
Upon deleting the Simple Statistics plugin directory, the error was eliminated.
No other plugins were installed. There is one line of JS in one of my content blocks.