• 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:

    1. 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.
    2. 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)
  • Hi @pauljbis!

    Better Search Replace Support Team here. Thanks for reaching out with your query! We would be happy to assist.

    To answer your questions:

    1. It’s best to check the error logs to get more info on what’s happening. If you haven’t already, please enable WP debug to capture any errors, notices, and warnings to a file called debug.log in the wp-content directory.

    2. You would need to use the exact same string so that the plugin is able to detect it.

    Please let us know how it goes!

    Thread Starter PaulJBis

    (@pauljbis)

    Hello:

    For some reason, I couldn’t get debug mode to work in my hosting server either. I turned it on before asking here, but the debug.log file didn’t appear anywhere. Guess I’ll have to ask my hosting provider then…

    Hi @pauljbis,

    Yes, your hosting provider can help give you any error logs available from the server. We’ll await for your updates.

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.