Unable to update urls for images in Upfront/Scribe after migration

After migrating my site from a subdomain to the main domain I am unable to update the urls for images to the new domain. I performed the migration with Snapshot and then performed a search and replace on the database with Search-Replace-DB-master. The search and replace action updated the urls and links in the menus located in global regions and also corrected the url for the logo image in the global header region but did not update the urls for images and links in local body regions or in galleries.
I have tried the operations several times always with the same results.
It seems that Upfront is storing these data somewhere inaccessible to the search and replace program.
Any assistance would be appreciated as there are many images to be edited.

Regards
Ken

  • Luís

    Hi Kenneth ,

    Hope you're doing well today!

    From the tests I made in previous migrations, and as Upfront is saved in the database as a JSON object, to change the URL's we need to try some variations.

    As an example, I migrate a site from localhost ("localhost/single2") to "luiscarloslopes.com/single2", so, I made a search and replace using the following strings:

    1)

    "http:\/\/localhost\/single2\"

    by

    "http:\/\/luiscarloslopes.com\/single2\"

    2)

    "http://localhost/single2"

    by

    "http://luiscarloslopes.com/single2"

    I used Snapshot Pro to make the migration and this tool to search and replace strings:

    https://interconnectit.com/products/search-and-replace-for-wordpress-databases/

    Can you try the above suggestions to see if you are able to change all the URL's?

    However, I would like to mention that the migration proccess in Snapshot is still in BETA and is not guaranteed to work in all situations.

    Cheers, Luís

  • Kenneth

    Hi Luis,

    Thanks for your suggestions. I've tried several variations on the search and replace strings in interconnectit but without success.
    The HTML produced doesn't include http: eg
    <img src="//tours.lamitietours.com.au/wp-content/uploads/2016/07/lourmarin-510x550-4789.jpg" alt="" title="" style="width:100%;">
    Does Upfront store the urls in a different form and then manipulate them to produce the HTML?

    Regards
    Ken

  • James Morris

    Hello Kenneth,

    I hope you are well today.

    Have you tried exporting your database as an SQL file from phpMyAdmin and doing a search in a text editor like Notepad++ for the old domain string?

    In the html you shared, the lack of the protocol means that the URL references are protocol relative. Basically, meaning that the URL paths will work properly whether it's https or http. So, you don't need to include the http in your search. You only need to include the tours.lamitietours.com.au domain.

    If you are not comfortable working with SQL files directly, you can also do a search in phpMyAdmin using the % % wildcard characters, like so: %tours.lamitietours.com.au% to match any string that is like tours.lamitietours.com.au but not exactly. This will help find all references that include that string.

    I hope this clarifies a bit. Let us know if you have any further questions. We'll be happy to help! :slight_smile:

    Best regards,

    James Morris

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.