Finding URLs in JSON data and plugin working in some sites and not others
-
Hello:
I rely on Better Search Replace (free version) to perform site migrations, where I move a site from a dev server to a live one and then use it to change the URLs in the database. However, I recently got bitten by 2 issues:
- The plugin did not work in my live server. It ran, but just didn’t find any of the strings I was searching it for, while it could find them in the dev server. Both sites (dev and live) are running PHP 8.0, with the same options as far as I can tell. The only difference I can think of is that the dev server is running MySQL 5.7, while the live one runs 8.0. Aside of that, is there any reason you can think of why the plugin doesn’t work in a site and works in another? Feel free to contact me with more details if you need them for debugging purposes.
- Even in the dev server, the plugin didn’t find any URLs in the tables use by Slider Revolution to store its data. I had a look, and the URLs are escaped in the DB like this:
https:\/\/(mydevsite)\/wp-content\/uploads\/revslider\/slider-1\/rev-slide1.jpg\"
. Can Better Search Replace detect data encoded in this way? (From what I see, Elementor also escapes URLs this way in its data).
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Finding URLs in JSON data and plugin working in some sites and not others’ is closed to new replies.