Troubleshooting EWWW Image Optimizer: Why Your Bulk Optimization Stalls or Fails
Content
If you're using EWWW Image Optimizer and find that the bulk optimization process stalls, fails with an error, or doesn't process all your images, you're not alone. This is a common issue reported by users, often stemming from server limitations, configuration conflicts, or the sheer volume of images. This guide will walk you through the most common reasons for these failures and the steps you can take to resolve them.
Why Bulk Optimization Fails or Stalls
Based on community reports, bulk optimization issues typically occur for a few key reasons:
- Server Timeouts: The PHP
max_execution_timelimit can interrupt long-running optimization scans. One user confirmed their limit was set to 900 seconds, yet the scan still timed out. - Parallel Optimization Conflicts: Some users have reported that enabling the 'Parallel Optimization' advanced setting can cause images to become stuck with an "In Progress" status. Disabling this feature resolved the issue for them.
- Large Batches of Images: Optimizing a site with thousands of images and their numerous resizes can put a significant load on the server, leading to interrupted processes. The plugin is designed to work in batches to avoid this, but sometimes it needs help.
- Third-Party Plugin Conflicts: Integration issues with other plugins, especially those that offload media to external storage like Azure or S3, can prevent images from being optimized or re-uploaded correctly. One user identified a conflict with the Windows Azure Storage plugin that caused a 409 error.
- Basic Authentication: If your site uses HTTP Basic Auth, the plugin's background optimization process will be disabled because the server cannot send a request to itself without the proper credentials.
- Database Issues: After reinstalling the plugin, missing database tables (like
wp_ewwwio_imagesandwp_ewwwio_queue) can cause errors and prevent the bulk optimizer from recognizing existing images.
How to Fix Bulk Optimization Issues
1. Address Server Timeouts and Resources
While increasing your PHP max_execution_time is a good first step, it may not always be sufficient. The plugin is designed to work in short batches to circumvent this limit. If scans are timing out, ensure you are using the latest version of the plugin, as updates often include improvements to this batching logic.
2. Toggle Parallel Optimization
If images are stuck "In Progress," navigate to the plugin's Advanced Settings and try disabling the Parallel Optimization option. This has been a confirmed solution for some users experiencing this specific hang-up.
3. Check for Plugin Conflicts
Conflicts with other plugins are a common source of problems. If you are using a storage plugin like Windows Azure Storage or Offload Media Lite, be aware that manual offloading can cause path retrieval errors ("Could not retrieve file path"). For S3 users, the 'EWWW Image Optimizer' team suggests using their dedicated S3 Image Optimizer tool to handle images uploaded outside of WordPress. Temporarily disabling other plugins can help you identify if a conflict is causing the bulk optimizer to fail.
4. Understand What Bulk Optimization Does
It's important to note that the bulk optimizer is primarily for images outside the media library. Media library images are typically optimized on upload. The bulk tool scans your theme folders, some plugin paths, and any custom folders you specify. If it's not finding images, you may need to configure the Folders to Optimize setting in the plugin's advanced options.
5. Review the Debug Log
For deeper issues, enable debugging. Go to the plugin's support tab and enable the debug log. Reproduce the bulk optimization error, then check the log for detailed error messages. This can provide crucial clues, such as permission errors or specific file path failures.
6. Verify Database Integrity
If you reinstalled the plugin and the bulk optimizer shows errors about null properties or doesn't see any images, the necessary database tables may be missing. A complete uninstall and reinstall of the plugin should recreate these tables and resolve the issue.
Conclusion
Bulk optimization failures in EWWW Image Optimizer are usually solvable by methodically checking server settings, reviewing potential conflicts, and ensuring the plugin is configured correctly for your specific site setup. Starting with the most common solutions—managing server timeouts, disabling parallel optimization, and checking for conflicts—will resolve the majority of issues users encounter.
Related Support Threads Support
-
Not Auto optimizing, only bulk optimization workshttps://wordpress.org/support/topic/not-auto-optimizing-only-bulk-optimization-works/
-
Bulk optimizerhttps://wordpress.org/support/topic/bulk-optimizer-2/
-
Background Optimization disabled with basic authhttps://wordpress.org/support/topic/background-optimization-disabled-with-basic-auth/
-
Scheduled Optimizationhttps://wordpress.org/support/topic/scheduled-optimization-2/
-
Woocomerce Archives scale is brokenhttps://wordpress.org/support/topic/woocomerce-archives-scale-is-broken/
-
bulk optimizer Not picking the imageshttps://wordpress.org/support/topic/bulk-optimizer-not-picking-the-images/
-
broken links after bulk optimizationhttps://wordpress.org/support/topic/broken-links-after-bulk-optimization/
-
Bulk optimizer not workinghttps://wordpress.org/support/topic/bulk-optimizer-not-working/
-
What am I optimizing when I do bulk optimize?https://wordpress.org/support/topic/what-am-i-optimizing-when-i-do-bulk-optimize/
-
Troubleshooting scheduled optimisationhttps://wordpress.org/support/topic/troubleshooting-scheduled-optimisation/
-
wp_posts guid records not updated to .jpghttps://wordpress.org/support/topic/wp_posts-guid-records-not-updated-to-jpg/
-
Bulk Optimizehttps://wordpress.org/support/topic/bulk-optimize-6/
-
Cannot Optimizehttps://wordpress.org/support/topic/cannot-optimize/
-
Scheduled Optimization will not work without background/async ability.https://wordpress.org/support/topic/scheduled-optimization-will-not-work-without-background-async-ability/
-
A lots of optimize request after updatehttps://wordpress.org/support/topic/a-lots-of-optimize-request-after-update/
-
Bulk optimization – image count changinghttps://wordpress.org/support/topic/bulk-optimization-image-count-changing/
-
Optimize image on S3https://wordpress.org/support/topic/optimize-image-on-s3/
-
Multi-core optimizinghttps://wordpress.org/support/topic/multi-core-optimizing/
-
Plugin is automatically re-optimizing images using up all the creditshttps://wordpress.org/support/topic/plugin-is-automatically-re-optimizing-images-using-up-all-the-credits/
-
How to know which images will be optimized in BULK modehttps://wordpress.org/support/topic/how-to-know-which-images-will-be-optimized-in-bulk-mode/
-
6.1.1 – Bulk Optimizer is not working properlyhttps://wordpress.org/support/topic/6-1-1-bulk-optimizer-is-not-working-properly-ver/
-
WP/LR Sync Warninghttps://wordpress.org/support/topic/wp-lr-sync-warning/
-
Weird behavior after reinstall – can’t see Media files to optimizehttps://wordpress.org/support/topic/weird-behavior-after-reinstall-cant-see-media-files-to-optimize/
-
95% No Savings on Bulk Optimizehttps://wordpress.org/support/topic/95-no-savings-on-bulk-optimize/
-
Exclude some plugins from optimizationhttps://wordpress.org/support/topic/exclude-some-plugins-from-optimization/
-
EWWW in combination with Azure storagehttps://wordpress.org/support/topic/ewww-in-combination-with-azure-storage/
-
“Background Optimization is disabled”https://wordpress.org/support/topic/background-optimization-is-disabled/
-
Minor enhancement requesthttps://wordpress.org/support/topic/minor-enhancement-request/
-
License Exceededhttps://wordpress.org/support/topic/license-exceeded-2/
-
Bluk Optimization gets stuckhttps://wordpress.org/support/topic/bluk-optimization-gets-stuck/
-
bulk optimizehttps://wordpress.org/support/topic/bulk-optimize-5/
-
File amount limitshttps://wordpress.org/support/topic/file-amount-limits/
-
Scan did not complete, will try againhttps://wordpress.org/support/topic/scan-did-not-complete-will-try-again-2/
-
Plug-in Not Optimizing a few imageshttps://wordpress.org/support/topic/plug-in-not-optimizing-a-few-images/
-
Bulk optimization doesn’t workhttps://wordpress.org/support/topic/bulk-optimization-doesnt-work/
-
Understanding log messageshttps://wordpress.org/support/topic/understanding-log-messages/
-
Bulk optimization keeps stallinghttps://wordpress.org/support/topic/bulk-optimization-keeps-stalling/
-
Bulk Optimise does not finish optimising images.https://wordpress.org/support/topic/bulk-optimise-does-not-finish-optimising-images/
-
Very slow after the last updatehttps://wordpress.org/support/topic/very-slow-after-the-last-update/
-
plug-in keeps deactivatinghttps://wordpress.org/support/topic/plug-in-keeps-deactivating/
-
Image optimization always show in progress and cannot be optimizedhttps://wordpress.org/support/topic/image-optimization-always-show-in-progress-and-cannot-be-optimized/
-
bulk optimizehttps://wordpress.org/support/topic/bulk-optimize-3/
-
Bulk Optimize Fails – Use Cloud API instead?https://wordpress.org/support/topic/bulk-optimize-fails-use-cloud-api-instead/
-
Null process and missing media imageshttps://wordpress.org/support/topic/null-process-and-missing-media-images/
-
Scheduled Optimization Not Working Like It Should???https://wordpress.org/support/topic/scheduled-optimization-not-working-like-it-should/
-
Bulk optimise hangs at “Stage 2, please wait”https://wordpress.org/support/topic/bulk-optimise-hangs-at-stage-2-please-wait/