1

We're migrating a site from dev to production using wp-cli to replace all occurrences in the database for the url, just like in the search-replace example. (http://example.dev to https://example.com)

WP-CLI search-replace finds and replaces all occurrences that it reported finding. However, there are still many lingering in the database, especially in serialized data. But, WP-CLI says that it handles serialized data as well.

If I run WP-CLI db search "http://example.dev" --all-tables I get 20 more occurrences of the string. If I run wp-cli search-replace with the all-tables flag it still finds 0.

What could be causing it to not find these lingering instances of the string, and how I can also get them to be included in search-replace?

  • I can see the same thing when I use wp search-replace. – davemac May 18 '18 at 22:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.