Troubleshooting Missing or Broken Images with EWWW Image Optimizer
Content
Encountering missing, broken, or incorrectly sized images after installing an optimization plugin can be a frustrating experience. Based on common community reports, this guide will help you diagnose and resolve the most frequent causes of image display issues when using the EWWW Image Optimizer plugin.
Why Do These Image Issues Happen?
Image display problems are rarely caused by a single factor. They often stem from conflicts between plugins, specific theme configurations, or caching mechanisms. The EWWW Image Optimizer team has identified several common triggers, which we'll explore below.
Common Causes and Their Solutions
1. Lazy Load Conflicts
This is one of the most prevalent causes of missing images. It occurs when multiple plugins or theme features try to handle lazy loading simultaneously.
- Symptoms: Images appear as gray backgrounds, blank spaces, or only load after deactivating the plugin.
- Solution: Identify and disable duplicate lazy load features. Check your caching plugin (e.g., WP Rocket, W3 Total Cache) and your theme settings for their own lazy load options. If you wish to keep EWWW's lazy load active, you may need to add CSS class exclusions (like
.compare_product_image) for elements handled by other plugins. Always clear your cache after making these changes.
2. External CSS Background Images
Many page builders (like Divi) and themes load images via CSS rather than direct HTML <img> tags.
- Symptoms: Background images, cover images, or section images do not get converted to WebP or optimized.
- Solution: The plugin's JS WebP rewriting cannot alter URLs defined in external or internal CSS. For these cases, the only method to optimize them is by using a service that can process and serve them from a CDN.
3. Resize Detection Overlay
A helpful debugging feature can sometimes be mistaken for a problem.
- Symptoms: Logged-in users see images with a blue/black dotted border and a tooltip about being "forced to the wrong size."
- Solution: This is not an error but a warning. It highlights images that are being scaled down in your browser, suggesting you should use a smaller source image for better performance. You can disable this visual indicator by navigating to the Resizes tab in the plugin settings and unchecking the Resize Detection box. You may need to enable "Ludicrous Mode" from the Basic tab to see this option.
4. Database Caching or Minification Conflicts
Aggressive caching or minification can interfere with how the plugin operates.
- Symptoms: Plugin settings not saving, JavaScript errors, or sliders/other plugins breaking.
- Solution: If settings won't save, contact your web host; this is often caused by aggressive object caching that needs to be cleared. If other plugins break (like sliders), check your minification plugin settings (e.g., Autoptimize, Fast Velocity Minify) and ensure critical scripts like
jquery.jsare excluded from being combined or minified.
5. Migration or File Path Issues
Moving a site can sometimes break the connection between the database and image files.
- Symptoms: Images exist in the file system but do not appear on the front end, often accompanied by "Could not retrieve file path" errors.
- Solution: After a migration, try using a regeneration thumbnails tool. This can help rebuild the database references to your image files.
General Troubleshooting Steps
- Isolate the Problem: Deactivate the EWWW Image Optimizer plugin. If the images return, the issue is likely a conflict with its settings.
- Check for Conflicts: Reactivate EWWW and then deactivate other plugins one by one (especially caching, minification, and other image plugins) to identify the specific conflict.
- Clear All Caches: Always clear your site, browser, and CDN caches after any configuration change. What you see might be a cached version of the page.
- Inspect the Console: Use your browser's developer tools (F12) to check the Console tab for JavaScript errors and the Network tab to see if image requests are failing (404 errors).
By methodically working through these common scenarios, you can usually identify and fix the cause of your image display issues. Remember that plugin conflicts are highly dependent on your specific setup, so patience and systematic testing are key.
Related Support Threads Support
-
Gray background images from galleryhttps://wordpress.org/support/topic/gray-background-images-from-gallery/
-
Gettting of forced to wrong sizehttps://wordpress.org/support/topic/gettting-of-forced-to-wrong-size/
-
Problem with featured imageshttps://wordpress.org/support/topic/problem-with-featured-images-4/
-
Problem with the pluginhttps://wordpress.org/support/topic/problem-with-the-plugin-17/
-
header logo isn’t showing in mobilehttps://wordpress.org/support/topic/header-logo-isnt-showing-in-mobile/
-
cookie issuehttps://wordpress.org/support/topic/cookie-issue-8/
-
Images not appearing on websitehttps://wordpress.org/support/topic/images-not-appearing-on-website-3/
-
Settings Not Savinghttps://wordpress.org/support/topic/settings-not-saving-52/
-
imageshttps://wordpress.org/support/topic/images-220/
-
images not showinghttps://wordpress.org/support/topic/images-not-showing-242/
-
Images turning white or black on the websitehttps://wordpress.org/support/topic/images-turning-white-or-black-on-the-website/
-
hyperlinks being stripped from my pdf filehttps://wordpress.org/support/topic/hyperlinks-being-stripped-from-my-pdf-file/
-
Plugin Interferance with Thrive Themeshttps://wordpress.org/support/topic/plugin-interferance-with-thrive-themes/
-
Images broken on frontendhttps://wordpress.org/support/topic/images-broken-on-frontend/
-
Not getting results when the image used as BGhttps://wordpress.org/support/topic/not-getting-results-when-the-image-used-as-bg/
-
cut imageshttps://wordpress.org/support/topic/cut-images/
-
IMages are now all out too large or scewedhttps://wordpress.org/support/topic/images-are-now-all-out-too-large-or-scewed/
-
imagehttps://wordpress.org/support/topic/image-62/
-
Header img Not showing after upgrade pluginhttps://wordpress.org/support/topic/header-img-not-showing-after-upgrade-plugin/
-
images sizehttps://wordpress.org/support/topic/images-size-20/
-
Pictures are now too smallhttps://wordpress.org/support/topic/pictures-are-now-too-small/
-
Woocommerce rounded thumbnails are not workinghttps://wordpress.org/support/topic/woocommerce-rounded-thumbnails-are-not-working/
-
WP gallery images not linked to attachment pageshttps://wordpress.org/support/topic/wp-gallery-images-not-linked-to-attachment-pages/
-
Update Broke Home Page Thumbnails (How to Fix?)https://wordpress.org/support/topic/update-broke-home-page-thumbnails-how-to-fix/
-
working with cloudflarehttps://wordpress.org/support/topic/working-with-cloudflare-2/
-
Random border when images are optimizedhttps://wordpress.org/support/topic/random-border-when-images-are-optimized/
-
Border Issuehttps://wordpress.org/support/topic/border-issue-4/
-
Image Border Issueshttps://wordpress.org/support/topic/image-border-issues/
-
images of certain sizes not showinghttps://wordpress.org/support/topic/images-of-certain-sizes-not-showing/
-
Questionhttps://wordpress.org/support/topic/question-389/
-
Issue: Could not retrieve file path.https://wordpress.org/support/topic/issue-could-not-retrieve-file-path-2/
-
Images low quality.https://wordpress.org/support/topic/images-low-quality/
-
LCPhttps://wordpress.org/support/topic/lcp-2/
-
Thumbnails not linking to the new jpg fileshttps://wordpress.org/support/topic/thumbnails-not-linking-to-the-new-jpg-files/
-
Some of my images dissapearedhttps://wordpress.org/support/topic/some-of-my-images-dissapeared/
-
Watermark not appearinghttps://wordpress.org/support/topic/watermark-not-appearing/
-
Conflict with the plugin.https://wordpress.org/support/topic/conflict-with-the-plugin-2/
-
Custom Sticky Logo Issue – Duplicate Logoshttps://wordpress.org/support/topic/custom-sticky-logo-issue-duplicate-logos/
-
Getting Issues in images as forced to wrong sizehttps://wordpress.org/support/topic/getting-issues-in-images-as-forced-to-wrong-size/
-
Images disappeared after migrationhttps://wordpress.org/support/topic/images-disappear-after-migration/
-
Images with a black and blue framehttps://wordpress.org/support/topic/images-with-a-black-and-blue-frame/
-
Placeholders canceledhttps://wordpress.org/support/topic/placeholders-canceled/
-
New problem pagespeedhttps://wordpress.org/support/topic/new-problem-pagespeed/