Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1203799
    Chris Stovall
    Participant

    So I’ve been moving sites back and forth between live and dev servers. I do this several times a day with X theme and cornerstone. I have 28 licenses or something at this point. Needless to say I have to move a lot of sites all the time.

    Things have been going well until the last update or so.

    1) When I move a site and have the database rewritten, it works just fine on the front end. You can see that here.
    http://rootblade.com/customs/

    However in the backend, the images come up missing. In the moving of the DB is seems that the image that were addeed on the DEV DB are somehow hard coded to the backend interface. When I inspect the missing images in cornerstone, the old link is still present.

    So I just ignore it, and hope for the best.

    Then I need to make a change to the page in cornerstone. When I hit “save” it now writes all of the missing images to the live page. Super frustrating! The only solution I have right now is to go an replace all of the images. This is not right. I should not have to go and manually replace images just becuase I moved the URL. The tools provided by your support docs are no longer working. We HAVE to have an effective way to move sites and have them still work.

    Please help me figure this out.

    2) There is obviously a conflict with “The Grid” plugin as well. This just started yesterday for me. Everything looks great on the front end, but when I have a grid slider on the page, cornerstone will randomly place an image from The Grid in every element on the page.

    You can look in that same page in Cornerstone and see what I’m talking about.

    Login credentials to follow this post.

    Please help me find a way to move a site with no issues. Hosting and running 28 X theme sites is a big deal. These types of issues are very serious when you’re dealing with so many sites and updates. Sites move from live to dev servers all of the time. We can’t be expected to rebuild the page manually every time the site it moved.

    Thanks!
    CDS

    #1203854
    Chris Stovall
    Participant
    This reply has been marked as private.
    #1204078
    Friech
    Moderator

    Hi There,

    Thanks for writing in! We understand what you’re trying to say about moving many sites. But if you’ve done the migration process correctly, you should not get the old URL for all of your elements/contents since the process provided here is replacing all the instances of old URL (dev site) on database to new URL (live site).

    Please redo the migration process, but before you import your .sql file, Open it on a text editor and find out if all old URL are replace with the new one. Also make sure that you’re entering the correct URL.

    Please clarify how we can replicate the issue about The Grid plugin.

    Cheers!

    #1204195
    Chris Stovall
    Participant

    Just login to the site and look at the cornerstone pages. It’s on every single backend page. Please use the login credentials and take a look.

    Here it is again from another connection, and another computer with a different browser. It’s at the bottom of the “customs” page. The link was provided above.

    #1204310
    Chris Stovall
    Participant

    Okay. I just went through the entire process per the WP Migrate DB and even though it said it changed the info, the original URL is still present. This is what I’ve been trying to explain. It’s still in there.

    Here are the settings I used. When I download the SQL, the old URL is everywhere. I typically just run a script on the MySQL DB and it works fine. This is also having the same issues.

    The last 4 sites I took live in the last few weeks have had the identical issue.

    Now what?

    #1204316
    Chris Stovall
    Participant

    Here’s the other screen.

    #1204499
    Rue Nel
    Moderator

    Hello There,

    Thanks for providing the screenshots. I would recommend that you install a 3rd party plugin Search Regex. You will need to do a search and replace procedure. Search for “http://rootblue..:8888/” and replace it wil “http://example.com” (or whatever setting that is in your Settings > General > Site URL).

    https://wordpress.org/plugins/search.php?q=search+regex

    Hope this helps.

    #1205199
    Chris Stovall
    Participant

    So why are the standard site migration techniques not working at the moment. I’ve not varied my process for many years now. Can you please try and do a site migration on your end and see how it goes?

    1) I had some success after testing last night by opening the .sql on my local machine and did a search and replace there before uploading it. It seems like it worked great.

    **** Please answer this question ****

    Is there any reason for not using the search and replace string in a raw text editor?
    Are there other problems this might cause?

    Thanks!
    CDS

    #1205747
    Rad
    Moderator

    Hi there,

    Working with the database directly doesn’t always guarantee that your data will be intact especially there are data that are stored as serialized object. You can’t just replace string, some maybe okay some isn’t and it will be corrupted.

    About your question, what search and replace your using? You can’t just use any search and replace plugin. I personally recommend Better Search and Replace and Velvet blues plugins in terms of string replacement. But when it comes migration, I recommend the All in one migration plugin, it will internally replace strings safely while migrating it.

    Thanks!

    #1205906
    Chris Stovall
    Participant

    I’ll try all of these for sure. This is only a new problem. The problem went away for about 6 months. The newer verions of the theme and cornerstone seem to have issues again.

    1) Is it possible that these search and replace tools are not updating the serialized data?

    2) Here’s a perfect example of this. I am working on this page here.

    http://rootblade.com/meet-the-maker/?cornerstone=1

    You have the login above.

    The image appears fine on the front end. All of the images are missing in the backend.

    I’m using ReGex per the above post and it did replace some data, BUT is does not see that the backend is still looking for the image on the old server.

    Where is that data stored and why can’t it be updated?

    You can see in the screenshot that I searched and it can’t be found but you can still see in the code and if you look at this page in cornerstone, the images are not there.

    How do we fix this. This is happening on the last 4 sites I took live. We need to find a solution for this. I’ll try your other plugins now.

    Please see there are no results in the Regex screenshot.

    #1206275
    Rad
    Moderator

    Hi there,

    Based on what I observed. It’s likely that the plugin skipping the serialized data since it can’t read it. It’s only processing the data that are readable like plain strings, text, or content. Or, it only processed the known fields in the database and skipping metadata.

    Please try Better Search and Replace and Velvet blues.

    Thanks!

    #1206288
    Chris Stovall
    Participant

    I just went back into the customs page which was working after the search and replace was run. I just went back to the page and all of the old links are now present again. Somehow the cornerstone data is holding on to this URL and not allowing it to update. I would love it for you guys to try it and show me it working. This has happened on 4 sites now. Somehow the software is holding on to the URL.

    #1206364
    Rad
    Moderator
    This reply has been marked as private.
    #1206938
    Chris Stovall
    Participant
    This reply has been marked as private.
    #1206980
    Rahul
    Moderator

    Yes. It is always good to have a backup before applying or changing anything with the current setup. Let us know how it goes!

    Thank you.

  • <script> jQuery(function($){ $("#no-reply-1203799 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>