Tagged: x
-
AuthorPosts
-
November 4, 2016 at 2:15 pm #1244182
Here is an issue I have had happen twice now. The first time I just chalked it up to a temporary glitch, but now that it is happened again, I am hoping to find a solution or pinpoint the cause so that I can eliminate it in the future.
I built a new X site on developer server (ex: oldurl.com/site3). I used BackupBuddy to export site/database and migrate to the live domain (ex: liveurl.com/ ). All the files and paths were switched to the new url and the site is live and it appeared to be fine.
I viewed the new live site and viewed the image paths to all the images and they were all fine
(see attached 2 images: frontimageview.png and correctimagepath.png)Then if i go to edit a page in Cornerstone, the image URLs in the editor are all the OLD url path, so If I make any update to any page and ‘save’, the images are basically lost and need to be replaced. (see attached image: wrongimagepath.png)
Luckily this site only has a few pages and a few images, so the fix I used was to go to each page, click each image, delete each image, click to add new image, select the image from media library and re-save the page. With the first site, though, there were a LOT of pages and images and this took a long time to get through. Even on the small site, this is not an ideal situation to be in.
With the 1st site I encountered this (and my exact steps are blurry as i didn’t think to document everything as I thought it was a 1 time glitch as it hadn’t happened previously) I recall doing a ‘search / replace in the database for the old url to the new url, but I recall that fixed some of it but caused additional issues, so I still ended up going to all pages and manually replacing/re-adding all images.
So, what am I doing wrong, or what is breaking this process? It seems it works up front, but then something in the back breaks it as the urls do get updated correctly at first. Do I need to take additional steps up front or is this just a glitch or other??
Thanks a bunch for any help you can provide.
Notes:
All theme files, WP and plugins are up to date with latest versions.
First site I encountered were up to date at that time, but the versions were 3 months ago.November 4, 2016 at 2:19 pm #1244186This reply has been marked as private.November 4, 2016 at 10:29 pm #1244662Hello There,
Thanks for writing in and the very detailed information. Most of the time, Migration plugin will only change the image path within some of the contents. Other contents such as those inside a shortcode like the ones from Cornerstone shortcodes, it will not change it because it will treat those as an independent image that may have been hosted somewhere. To resolve this issue, please install a search and replace plugin. You can do a search for your old domain like
old-url.com/site3/wp-content/
and replace it with thenew-url.com/wp-content/
instead.Hope this helps. Please let us know how it goes.
-
AuthorPosts