• When I issue wp-cli health-check status I instantly get this fatal error. Site stays up.

    "PHP Fatal error:  Uncaught Error: Class "HealthCheck\WP_CLI\Status" not found in ~/wp-content/plugins/health-check/HealthCheck/class-cli.php:44
    Stack trace:
    #0 [internal function]: HealthCheck\CLI->status()
    #1 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(100): call_user_func()
    #2 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher\{closure}()
    #3 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php(491): call_user_func()
    #4 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(419): WP_CLI\Dispatcher\Subcommand->invoke()
    #5 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(442): WP_CLI\Runner->run_command()
    #6 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1256): WP_CLI\Runner->run_command_and_exit()
    #7 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start()
    #8 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php(78): WP_CLI\Bootstrap\LaunchRunner->process()
    #9 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(32): WP_CLI\bootstrap()
    #10 phar:///usr/local/bin/wp/php/boot-phar.php(11): include('...')
    #11 /usr/local/bin/wp(4): include('...')
    #12 {main}
      thrown in ~/wp-content/plugins/health-check/HealthCheck/class-cli.php on line 44

    Code exerpt from that referenced file:

    43: elseif ( 'yaml' === $this->format ) {
    44: WP_CLI\Utils\format_items( 'yaml', $test_result, array( 'test', 'type', 'result' ) );"

    This is in a virtual Linux server I control. Any suggestions?

  • The topic ‘wp-cli health-check status gives critical error’ is closed to new replies.