wp-cli.phar option get siteurl reporting incorrectly
-
Hi, I’m doing some work updating wordpress by script, I have one specific wordpress install where the command:
wp-cli.phar –skip-packages –skip-themes –skip-plugins option get siteurlReturns: http:///subfolder
But the command: wp-cli.phar db query “select option_value from wp_options where option_name = ‘siteurl'”
Returns the correct address: http://domain.com/subfolder
This is the latest version of wp-cli.phar (WP-CLI 2.4.0) on a wordpress that is up to date. Adding in –debug flags doesn’t produce any useful debugging in this case the last chunk is:
Debug (bootstrap): Begin WordPress load (0.621s)
Debug (bootstrap): wp-config.php path: /path/to/subfolder/wp-config.php (0.621s)
Debug (bootstrap): Loaded WordPress (1.25s)
Debug (hooks): Processing hook “before_run_command” with 1 callbacks (1.25s)
Debug (hooks): On hook “before_run_command”: WP_CLI\Bootstrap\RegisterDeferredCommands->add_deferred_commands() (1.25s)
Debug (bootstrap): Running command: option get (1.25s)So it doesn’t look like anything exciting is going on there. I’ve tried outputting as –format=json or –format=yaml in case the var_export is buggy but those return the same data.
Any ideas of how to get more debugging information or see what the option get command is actually doing as a query to work out where its going wrong?
The topic ‘wp-cli.phar option get siteurl reporting incorrectly’ is closed to new replies.