wp search-replace missing some occurences
-
I’m using
wp search-replace <old-value> <new-value>to update the url and home-directory during migrations.
I just encountered a case where fo home-directory it missed to identify and replace one of the matching records inwp_optionstable. Here is the sample of the command I use:wp search-replace \ "/Users/webdev/workspace/website" \ "/home/website/live.website.io" \ --dry-run --report-changed-only --preciseI tried with and without quotes, both single and double quotes, with and without
--preciseand--recurse-objects, but the same problem.To verify that it is not a problem in my input, I use the following command to search database and it does return that record (this is only a problem when using
wp search-replace):
wp db search "/Users/webdev/workspace/website"I’m on macOS 11.6 with wp-cli 2.5.0, and for what it might worth the target WP installation is latest version 5.8.2.
The topic ‘wp search-replace missing some occurences’ is closed to new replies.