Replacing an image resulted in tons of broken media links
-
On May 14, 2019 I replaced 2 images with updated versions. I did not change the image name or update links. Just a simple replace. I “think” I generated new thumbnails because WP was hanging on to some specific sizes but I can’t be 100% sure as I can’t remember. Shortly after that I started to get these weird 404 errors on our site. I finally nailed down the pattern. If I have a link in the content anywhere that follows the path of “/wp-content/uploads/2015/02/MediaFilename.xxx” that it gets replaced with “/wp-content/uploads/2015/02/UpdatedImage-125×157.jpgUpdatedImage-125×157.jpgMediaFilename.xxx” The 2 images I updated were .jpg. The files that are getting the broken URLs are any type of media (.jpg, .png, .pdf). The item that they all have in common is the UpdatedImage.jpg lived in the /2015/02/ folder and the broken links all contain the /2015/02/ path. I have hundreds of links to fix. Can you advise as to what happened so that I do not have this issue again?
- The topic ‘Replacing an image resulted in tons of broken media links’ is closed to new replies.