Archived topic
Images are broken
11 replies · Started by Vinay Karanam on September 11, 2020
I recently created a lot of content and most of them have same format. Image, followed by content and another hyperlink image. Everything was good and all of sudden,images are gone. I checked the files to make sure the uploaded images arent corrupted and they are fine, then went made sure I refreshed the permalinks and then updated the .htaccess file. But no luck. Can you guys help me out here? to manually do 200 pages is a nightmare haha
Hi Vinay,
Can you check your WordPress and Site URL under WP Admin Panel > Settings > General?

Do they match your current URL? I'm seeing net::ERR_NAME_NOT_RESOLVED errors on your site. The img src for your images doesn't match the current URL of your site. Perhaps this is causing the problem.
Let us know if it works for you.
Hi Elvin,
Yes, they are matching.
This is the error from the console.

Did you change domain from https://canadainc-movers.ca/?
The image are not displaying properly because their src url uses the wrong domain.
Assuming your WordPress and Site URL under WP Admin Panel > Settings > General is set to your current URL, you may have to open your database and do a search and replace for table values that still uses the old domain.
Alternatively, you can try using WordPress plugins like - https://wordpress.org/plugins/better-search-replace/ to search and replace from the old domain url to your current URL.
Hi Elvin,
The images were copied from there but we ended up creating new images and uploaded them, not sure if the cache so we cleared the cache.
Then I installed the plugin you recommended and replaced all the https://canadainc-movers.ca/ url with the sites url.
Went into DB and checked all the files. Didnt find any https://canadainc-movers.ca/, can you double check please? if the url is still around, which folder is it in? so I can replace it.
Thanks
Hi there,
I'm still seeing the old URL in your HTML.
Have you tried a plugin like Velvet Blues Update URLs? It's always worked great for me when it comes to replacing old URLs in the database.
Hi Tom,
I added the Velvet Blue update url changed the urls. Still seeing the same, where are you find the https://canadainc-movers.ca/ in the HTML ?
Any chance you can clear and disable the caching plugin and also allow right click so we can view the source of your site better?
Thanks!
Hi Leo,
I have disabled the plugin, please let meknow if you need anything else.
Hi there,
when you updated your URLs you did it incorrectly.
This is the URL being output for those images:
https://metalmenmovers.comwp-content/uploads/2020/08/metromovers.png
It is missing the / after the .com
You will need to search and replace this now.
1. Search this: https://metalmenmovers.comwp-content/
2. Replace with this: https://metalmenmovers.com/wp-content/
uggh....dohh...such as small things messing everything up.
Thank you very much for taking your time for helping me out! really appreciate it!
Glad we could be of help