Support » Plugin: Nginx Helper » wp cli error

  • php 8.0.5
    wp cli 2.4.0 (but with nightly too)
    wordpress 5.7.1

    any wp cli operation fails. Deactivating nginx-helper works

    [root@almalinux]# wp plugin search varnish
    PHP Fatal error: Uncaught Error: Class “WP_CLI” not found in /usr/share/nginx/XXX/web/app/plugins/nginx-helper/nginx-helper.php:92
    Stack trace:
    #0 /usr/share/nginx/XXX/web/app/plugins/nginx-helper/nginx-helper.php(97): run_nginx_helper()
    #1 /usr/share/nginx/XXX/web/wp/wp-settings.php(391): include_once(‘…’)
    #2 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1237): require(‘…’)
    #3 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1158): 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()
    #6 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(27): WP_CLI\bootstrap()
    #7 phar:///usr/local/bin/wp/php/boot-phar.php(11): include(‘…’)
    #8 /usr/local/bin/wp(4): include(‘…’)
    #9 {main}
    thrown in /usr/share/nginx/XXX/web/app/plugins/nginx-helper/nginx-helper.php on line 92

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.