Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
That’s odd. Can you try some basic troubleshooting please?
Please try the following temporary steps to troubleshoot:
- Switch to the Twenty Fifteen theme
- Deactivate all of your plugins, no exceptions
- Clear your browser’s cache and cookies
- See if the srcset is still invalid
Do you still get the problem when you do that? Can you share a URL so we can look at your HTML output?
Hey guys! Just figured out the problem over on my end. Copying from what I posted over @ the similar thread:
|| Figured it out. It looks like the issue was with the Amazon S3 for WordPress with CloudFront plugin. Switched to WP Offload S3 and all works fine and dandy. Didn’t even have to regen thumbnails.
Wish you luck!
@elise.x
Thanks for letting us know 🙂
Of course! Always happy to help if I can!
Thread Starter
dr
(@daniel_richard)
Thanks @elise.x the switch of plugins did the trick!
Shoutout to Jan and keesiemeijer for taking your time to help out with this issue too. All of you rock! 🙂
—
RESOLVED:
Switch of plugins from Amazon S3 for WordPress with CloudFront to WP Offload S3.
I’m having the same problem, but was using a different S3 plugin. I tried WP Offload S3 to see if it would fix it for me, but it didn’t. I found this post about disabling the responsive images, and that worked for me. Here’s the code:
function disable_srcset( $sources ) {
return false;
}
add_filter( 'wp_calculate_image_srcset', 'disable_srcset' );
put it in your theme’s functions.php file