- This topic has 7 replies, 4 voices, and was last updated 1 year ago by David.
February 8, 2021 at 10:24 am #1650696tamarino. web & marketing
I’m having the next issue:
- I have a website on my local environmet: (Ex: local.mysite.com)
- I’m going to deploy to production host: (Ex: mycoolsite.com)
- … I install “duplicator” on local.mysite.com…
- … I create a full backup of local.mysite.com…
- … I download it, upload to mycoolsite.com host…
- … and deploy it
- Duplicator make a full search and replace (local.mysite.com > mycoolsite.com)
- I visit mycoolsite.com… ¡most of the images load from local.mysite.com!
- OK… I install “Better Search and replace”… and make all the replacements again ¡There’s no replaces to make, everything is mycoolsite.com related!
- OK… Let’s edit manually one page… edit page > every image is mycoolsite.com path
- … I ‘re-save’ without changing anything… and images load perfectly
And then I have to open>save every page on my site to finaly work ok.
¿Is this normal behaviour? ¿Can you tell me what I’m missing?
¡Best regards and thank you for your excelent work!
PD: There’s no cache plugin, no “autoptimize” or similar plugin… nothing.February 8, 2021 at 11:20 am #1650778LeoStaffCustomer SupportFebruary 8, 2021 at 11:38 pm #1651228tamarino. web & marketing
It’s normal that no images load on frontend but when I re-save it they load OK?
Maybe I’m not explaining myself…
In my page local.mysite.com/test/ there is an image. Theimage url is “local.mysite.com/wp-content/uploads/image.png”.
When I upload my site to mycoolsite.com the page is mycoolsite.com/test/ and I make a search-replace action to replace local.mysite.com to mycoolsite.com so the image on that page changes to “mycoolsite.com/wp-content/uploads/image.png”.
The problem is that on the database, the url is “mycoolsite.com/wp-content/uploads/image.png”, in backend, the url is “mycoolsite.com/wp-content/uploads/image.png” but in frontend, the page loads “local.mysite.com/wp-content/uploads/image.png”.
It’s until I go to backend an hit the “save” button that “something” refreses and frontend loads image from “mycoolsite.com/wp-content/uploads/image.png”… and I have to do that on every page I have…
¿Is this normal behaviour? I don’t think so.February 9, 2021 at 4:38 am #1651499DavidStaffCustomer Support
searching around there are several topics on this subject ie. missing images after migration. There seems to be several reasons why this can happen – from my searches this articles covers most of the reasons:February 9, 2021 at 5:00 am #1651521tamarino. web & marketing
Nope… that’s not the problem (any of them posted on that blog). Files are ok, paths are ok, search and replace is fine… but… frontend is still showing last path for images and after I ‘save’ again the post “generatepress caché” shows on frontend “local.mysite.com/myimage.png” (in backend the images paths are perfect)… I just need to go to backend an hit “save” button and the images load perfectly.
Maybe I’ll make a test page to show you what I’m trying to say…February 9, 2021 at 5:16 am #1651548DavidStaffCustomer SupportSeptember 22, 2021 at 7:22 am #1939092JEFFREY
Reading this thread – or any thread with a fix or solution or outcome that isn’t reported (if there was one) – is like watching a show with a cliffhanger episode . . and then the show is suddenly cancelled. How do we fix this, so that “off canvas” solutions end up here – in the forum – so we can all benefit? Policy change? Obligation on benefactor to “report back” to community? Sigh . . I feel like I’m being bossy or whining when that’s neither my interest nor intention in making this comment.September 22, 2021 at 8:16 am #1939363DavidStaffCustomer Support
unfortunately there isn’t anything we can do to wrap up all topics with a ‘golden’ fix that all could benefit from.
These kinds of issues are very site specific, and in addition to that this particular issue is not theme related ( GP or GPP has no control and does not interfere with site permalinks ). But we try our best to answer out of scope questions if we can through personal experience or a google search.
I hope the OP found an answer, and it may have been through talking with the Duplicator plugin author in this instance, as they would have a far better understanding of the migration process and the potential issues.
If you have a specific problem and you want us to take a look, please raise a new topic and share a URL to a problem page and we can take a look.
- You must be logged in to reply to this topic.