Skip to content

command wp site option update siteurl - could not update option 'siteurl' #439

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kolyadams opened this issue Aug 26, 2019 · 1 comment
Closed

Comments

@kolyadams
Copy link

command wp site option update siteurl - could not update option 'siteurl'

because
update_site_option () used in file \vendor\wp-cli\entity-command\src\Site_Option_Command.php adds data to the wp_sitemeta table

and we need to add data to the wp _ # _ options table

the WP engine uses commands to do this (file wp-admin\network\site-settings.php)
switch_to_blog ($ id);
update_option ($ key, $ val);

And you can make a command to change the field in the screenshot
screen

my English is bad. I use google translate

@swissspidy swissspidy transferred this issue from wp-cli/wp-cli Nov 11, 2023
@danielbachhuber
Copy link
Member

Thanks for the suggestion, @kolyadams !

We're unlikely to change the behavior of existing commands, but this could be a useful enhancement for a wp search-replace url command: wp-cli/search-replace-command#186

@danielbachhuber danielbachhuber closed this as not planned Won't fix, can't repro, duplicate, stale Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants