We have moved our development site to a new server domain (hidden link) but when I want to change the urls of the old domain (hidden link) with Search and Replace DB, my server performance memory limit is going trough the roof. Like there is some loop within the urls.. If I leave the website as it is (without the replacement of urls) I keep a lot of broken images and pagelinks but the site is working fine.
Thank you for contacting WPML support, I'd be happy to help you with this issue.
Let me share the feedback of our 2nd tier support about that case if you use WP CLI to search and replace the URL after moving the site.
First to the point:
- The table icl_translate contains all of the data encoded in base64 format and not only some entries.
- Some page builders also encode their strings... WP-CLI will not replace their values as well
- In ALL cases the table icl_translate is used only to store translation data. The actual data that is populated in the post (the page builder in the post content or in the postmeta) respects the page builder's way of saving the values. If the value there is not encoded, it won't be encoded there.
So having said that, when you change the URL of your WordPress instance, you should not make any changes in the icl_translate table as that is only a snapshot of the page builder package.
In any case, the page if the structure is changed will go to "Needs Update" status and a NEW job with the NEW content will be created. Because of how we handle internal URLs the value will be adjusted properly (if the page builder field was registered as a LINK type field) and there should be no issue whatsoever. The data in use will be adjusted in the post contents by WP-CLI because there (unless the page builder encodes its data) is not encoded.
So in your case, after searching and replacing URLs, you also need to update the translation of those strings or the page.
I hope that makes sense.
The topic ‘[Closed] Search Replace DB not working correctly when moving development domain’ is closed to new replies.