WPIntell

Source evidence

Conflict when running cli commands

REST API Toolbox · support · 2021-03-17T16:10:00+00:00

mixedsentiment
highseverity
0.94relevance
4replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

4 / 33 rows with source links

12.1% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

29 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
toddlevy resolved
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 Bump. I’ve pushed v1.4.3 to resolve this issue. It was checking for SSL when running any CLI commands, but checking for that during CLI wasn’t necessary. Thanks Pete. Will give this a shot today. Can confirm this resolved the issue.

Comments

4 shown
toddlevy 2021-03-23T22:01:00+00:00

Bump.

Pete Nelson 2021-03-25T17:13:00+00:00

I’ve pushed v1.4.3 to resolve this issue. It was checking for SSL when running any CLI commands, but checking for that during CLI wasn’t necessary.

toddlevy 2021-03-25T17:30:00+00:00

Thanks Pete. Will give this a shot today.

toddlevy 2021-03-25T22:49:00+00:00

Can confirm this resolved the issue.