Change 1000+ of WordPress Featured Images in 5 Minutes! › Forums › Questions and Answers › Broken Thumbnails
March 9, 2016 at 5:11 pm #3473
A second question. I’ve been having issues with broken thumnbnails randomly occurring then disappearing. I’ve noticed that sometimes the thumbnails on my post feed on the front end show broken too, but it seems to fix itself.
What might cause this and how might I fix it?
March 9, 2016 at 9:03 pm #3477Martin StehleModerator
- This topic was modified 4 years, 6 months ago by drumnation.
It seems the database entries are ok but the image files are not available. Are they on the server? Are they visible in the media library?March 10, 2016 at 1:44 am #3485
They are all in the media library and visible. If I come back 10 minutes later all the images will show. I can’t find a pattern on which ones do it. This time it’s many of them but a previous time it was just one image.March 10, 2016 at 3:52 am #3492
I just tried to run the manual set/replace and you can see the thumbnails are all broken.
All the files downloaded into the media library fine.March 10, 2016 at 3:38 pm #3501Martin StehleKeymasterMarch 10, 2016 at 6:07 pm #3507Martin StehleModerator
Hi David, thank you for the credentials. The bug is in the browser Firefox. The thumbnails are displayed in the browsers Safari, Opera, Internet Explorer 11 and the new browser called CLIQZ.
WordPress supports the srcset attribute since version 4.4 to offer a “built-in” technique for responsive images. If the page is called via https but the images via http the broken image is shown. It works correctly if the protocol is the same for both (the page and the embedded images).
So the solution are to change the browser (not pretty), to wait for a fix in Firefox (not pretty, too), to change https to http on your server (not safe) or to insert some code in your installation as suggested in How do I disable responsive images in WP 4.4?.March 10, 2016 at 6:24 pm #3509
I’m using chrome btw, that’s where I’m seeing this issue.
Yeah it’s definitely the HTTPS.
If I type in http:// then the site then it doesn’t default to https and the images work. Same with logging into admin. The thumbnails aren’t broken.
It seems that several new posts have loaded and the image loaded on it’s own in draft mode, so if you did something thanks!
I have no problem shutting off SSL to make this work for now.
- You must be logged in to reply to this topic.