Conflict when running cli commands
-
Hey there –
Noticing an odd kind of issue here that seems to be caused by the Toolbox.
Basically if we run any WP CLI command, we get an error. It seems to be some sort of conflict with Woocommerce but disabling Toolbox results in a clean command execution.
I’ve pasted a stack trace below but unfortunately not really sure how to better troubleshoot or diagnose so hoping it’s something simple.
Thanks for any assistance here.
TL
————-
EXAMPLE CLI COMMAND THAT CHOKES
# wp option get siteurl
EXAMPLE CLI COMMAND THAT WORKS
# wp option get siteurl --skip-plugins=rest-api-toolbox
STACK TRACE
# wp option get siteurl Fatal error: Uncaught Error: Call to undefined method WP_Error::get_data() in /home/nginx/domains/OUR_DOMAIN.com/public/wp-content/plugins/woocommerce/includes/cli/class-wc-cli-runner.php:64 Stack trace: #0 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/class-wp-cli.php(304): WC_CLI_Runner::after_wp_load() #1 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1263): WP_CLI::do_hook('after_wp_load') #2 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1158): WP_CLI\Runner->load_wordpress() #3 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(23): WP_CLI\Runner->start() #4 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php(74): WP_CLI\Bootstrap\LaunchRunner->process(Object(WP_CLI\Bootstrap\BootstrapState)) #5 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(27): WP_CLI\bootstrap() #6 phar:///usr/local/bin/wp/php/boot-phar.php(11): include('phar:///usr/loc...') #7 /usr/local/bin/wp(4): include('phar:///usr/loc...') #8 {main} throw in /home/nginx/domains/OUR_DOMAIN.com/public/wp-content/plugins/woocommerce/includes/cli/class-wc-cli-runner.php on line 64
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Conflict when running cli commands’ is closed to new replies.