Title: Stats class causing PHP fatal error
Last modified: October 23, 2019

---

# Stats class causing PHP fatal error

 *  [nickbasham](https://wordpress.org/support/users/nickbasham/)
 * (@nickbasham)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/stats-class-causing-php-fatal-error/)
 * I was running some commands with WP-CLI and started receiving the following error
   on the command line: `PHP Fatal error: Uncaught Error: Class 'SeriouslySimpleStats\
   Classes\Stats' not found in /home/nick/witness.show/releases/8/web/app/plugins/
   seriously-simple-stats/seriously-simple-stats.php:48`
 * This error does not occur when I disable Seriously Simple Stats, but I’m not 
   sure how to correct it. I’ve put the full error and stack traces below.
 * Just a note on my setup, it’s a [Bedrock](https://roots.io/bedrock/) WordPress
   installation running a [Sage theme](https://roots.io/sage/) and deployed using
   [Deployer](https://deployer.org).
 * Any help or ideas would be appreciated, thanks!
 *     ```
       PHP Fatal error:  Uncaught Error: Class 'SeriouslySimpleStats\Classes\Stats' not found in /home/nick/witness.show/releases/8/web/app/plugins/seriously-simple-stats/seriously-simple-stats.php:48
       Stack trace:
       #0 /home/nick/witness.show/releases/8/web/app/plugins/seriously-simple-stats/seriously-simple-stats.php(53): SSP_Stats()
       #1 /home/nick/witness.show/releases/8/web/wp/wp-settings.php(362): include_once('/home/nick/witn...')
       #2 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1188): require('/home/nick/witn...')
       #3 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1111): WP_CLI\Runner->load_wordpress()
       #4 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(23): WP_CLI\Runner->start()
       #5 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php(74): WP_CLI\Bootstrap\LaunchRunner->process(Object(WP_CLI\Bootstrap\BootstrapState))
       #6 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(23): WP_CLI\bootstrap()
       #7 phar:///usr/local/bin/wp/php/boot-ph in /home/nick/witness.show/releases/8/web/app/plugins/seriously-simple-stats/seriously-simple-stats.php on line 48
       Fatal error: Uncaught Error: Class 'SeriouslySimpleStats\Classes\Stats' not found in /home/nick/witness.show/releases/8/web/app/plugins/seriously-simple-stats/seriously-simple-stats.php:48
       Stack trace:
       #0 /home/nick/witness.show/releases/8/web/app/plugins/seriously-simple-stats/seriously-simple-stats.php(53): SSP_Stats()
       #1 /home/nick/witness.show/releases/8/web/wp/wp-settings.php(362): include_once('/home/nick/witn...')
       #2 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1188): require('/home/nick/witn...')
       #3 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1111): WP_CLI\Runner->load_wordpress()
       #4 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(23): WP_CLI\Runner->start()
       #5 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php(74): WP_CLI\Bootstrap\LaunchRunner->process(Object(WP_CLI\Bootstrap\BootstrapState))
       #6 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(23): WP_CLI\bootstrap()
       #7 phar:///usr/local/bin/wp/php/boot-ph in /home/nick/witness.show/releases/8/web/app/plugins/seriously-simple-stats/seriously-simple-stats.php on line 48
       ```
   

The topic ‘Stats class causing PHP fatal error’ is closed to new replies.

 * ![](https://ps.w.org/seriously-simple-stats/assets/icon-256x256.png?rev=1286945)
 * [Seriously Simple Stats](https://wordpress.org/plugins/seriously-simple-stats/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/seriously-simple-stats/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/seriously-simple-stats/)
 * [Active Topics](https://wordpress.org/support/plugin/seriously-simple-stats/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/seriously-simple-stats/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/seriously-simple-stats/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [Sage](https://wordpress.org/support/topic-tag/sage/)
 * [wp-cli](https://wordpress.org/support/topic-tag/wp-cli/)

 * 0 replies
 * 1 participant
 * Last reply from: [nickbasham](https://wordpress.org/support/users/nickbasham/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/stats-class-causing-php-fatal-error/)
 * Status: not resolved