Title: Issues with Optimize Everything Else
Last modified: August 30, 2016

---

# Issues with Optimize Everything Else

 *  Resolved [kb959fl](https://wordpress.org/support/users/kb959fl/)
 * (@kb959fl)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/issues-with-optimize-everything-else/)
 * I just installed the plugin and was able to run the bulk optimize on my media
   library successfully. However, when I clicked the “Scan and Optimize” button 
   for the “Optimize Everything Else”, it basically gave me the spinning circle 
   icon and stayed that way for over 10 hours. Does it normally take that long to
   complete or did something go wrong? Thanks.
 * [https://wordpress.org/plugins/ewww-image-optimizer/](https://wordpress.org/plugins/ewww-image-optimizer/)

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/topic/issues-with-optimize-everything-else/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/issues-with-optimize-everything-else/page/2/?output_format=md)

 *  Plugin Author [Shane Bishop](https://wordpress.org/support/users/nosilver4u/)
 * (@nosilver4u)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/issues-with-optimize-everything-else/#post-6340780)
 * Nope, it should only spin for a little while, and then start showing you a progress
   bar, very similar to the media library optimization.
 * Often times, specific files will cause some of the filetype/mimetype functions
   to spring a sudden memory leak, and that will cause it to get ‘stuck’. It’s a
   little bit tricky to troubleshoot, but here’s how to do it:
 * In the file ewww-image-optimizer.php, you should see this function at around 
   line 978: ewww_image_optimizer_mimetype().
 * A couple lines into the function, you’ll see a debugging line that says something
   like “testing mimetype: $path”.
    Directly below that line, add this:
 * ewww_image_optimizer_debug_log();
 * Then, turn on debugging and run the Scan & Optimize. Then, please post the last
   25-50 lines of output from ewww-image-optimizer/debug.log (via pastebin if necessary).
 *  Thread Starter [kb959fl](https://wordpress.org/support/users/kb959fl/)
 * (@kb959fl)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/issues-with-optimize-everything-else/#post-6340831)
 * nosilver4u – Thanks for your help. Here is the debug file:
 * [http://pastebin.com/fiRYFnH1](http://pastebin.com/fiRYFnH1)
 *  Plugin Author [Shane Bishop](https://wordpress.org/support/users/nosilver4u/)
 * (@nosilver4u)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/issues-with-optimize-everything-else/#post-6340860)
 * Is that everything that was in the debug.log file, or was that from the settings
   page?
 *  Thread Starter [kb959fl](https://wordpress.org/support/users/kb959fl/)
 * (@kb959fl)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/issues-with-optimize-everything-else/#post-6340866)
 * Yes, that was the entire debug.log file. I clicked “Scan & Optimize” and then
   let it run for 3-4 minutes and then copy/pasted the content from that file.
 *  Thread Starter [kb959fl](https://wordpress.org/support/users/kb959fl/)
 * (@kb959fl)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/issues-with-optimize-everything-else/#post-6340910)
 * Should I clear out the debug file and run it again?
 *  Plugin Author [Shane Bishop](https://wordpress.org/support/users/nosilver4u/)
 * (@nosilver4u)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/issues-with-optimize-everything-else/#post-6340923)
 * Yes please, you can just delete the file completely, it will get recreated when
   you run it again. And make sure you added the ‘ewww_image_optimizer_debug_log()’
   function right under the line that says ‘testing mimetype…’ in common.php otherwise
   we won’t get any useful output. I suppose we still might not if the problem is
   somewhere else, but that’s our starting point.
 *  Thread Starter [kb959fl](https://wordpress.org/support/users/kb959fl/)
 * (@kb959fl)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/issues-with-optimize-everything-else/#post-6340956)
 * Is the file to be edited ewww-image-optimizer.php or common.php?
 *  Plugin Author [Shane Bishop](https://wordpress.org/support/users/nosilver4u/)
 * (@nosilver4u)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/issues-with-optimize-everything-else/#post-6340960)
 * sorry, I misspoke in that last post, it is ewww-image-optimizer.php
 *  Thread Starter [kb959fl](https://wordpress.org/support/users/kb959fl/)
 * (@kb959fl)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/issues-with-optimize-everything-else/#post-6340964)
 * Cool, I will give it another shot. On a sidenote, have you heard of any issues
   with images not displaying after the optimizer is installed and ran? My site 
   in Safari (iMac and iPhone) is not displaying thumbnails and slider images. Either
   the slider images show up and not the thumbnails (posts) or it’s the other way
   around. I checked Chrome/Safari and those browsers seems to be working fine.
 *  Thread Starter [kb959fl](https://wordpress.org/support/users/kb959fl/)
 * (@kb959fl)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/issues-with-optimize-everything-else/#post-6340965)
 * I figured it out. Looks like it’s an issue with my caching plugin.
 *  Plugin Author [Shane Bishop](https://wordpress.org/support/users/nosilver4u/)
 * (@nosilver4u)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/issues-with-optimize-everything-else/#post-6340966)
 * Glad you found the glitch, making a site fast and awesome can be a bit tricky
   at times, but if you stick with it, you can achieve some pretty impressive results.
   
   Let me know what you get when you run the Scan & Optimize again.
 *  Thread Starter [kb959fl](https://wordpress.org/support/users/kb959fl/)
 * (@kb959fl)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/issues-with-optimize-everything-else/#post-6341006)
 * Okay, I removed the debug file and ran it again. Here is the contents of the 
   new debug file:
 * [http://pastebin.com/RbVSQQf3](http://pastebin.com/RbVSQQf3)
 * Here is the code from the “ewww-image-optimizer.php” file after making the changes:
 *     ```
       function ewww_image_optimizer_mimetype($path, $case) {
       	global $ewww_debug;
       	$ewww_debug .= "<b>ewww_image_optimizer_mimetype()</b><br>";
       	$ewww_debug .= "testing mimetype: $path <br>";
       	ewww_image_optimizer_debug_log();
       	if ( $case == 'i' && preg_match( '/^RIFF.+WEBPVP8/', file_get_contents( $path, NULL, NULL, 0, 16 ) ) ) {
       			return 'image/webp';
       ```
   
 *  Plugin Author [Shane Bishop](https://wordpress.org/support/users/nosilver4u/)
 * (@nosilver4u)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/issues-with-optimize-everything-else/#post-6341008)
 * Well, I think I was looking for the wrong culprit here. I think it might be another
   plugin interfering with the ajax responses. If you know your way around a javascript
   console (either the one in Chrome, Firefox, or even better the Firebug extension
   for Firefox), you can watch the ajax queries, and then expand them to see the
   responses.
 * Open the console, and then run the Scan & Optimize to see what happens, and what
   the response is. If you get stuck, send me a login via [https://ewww.io/contact-us/](https://ewww.io/contact-us/)
   and I’ll take a look myself.
 * If you do find something (or even if you don’t and it all looks normal), a screenshot
   of the console output would be helpful.
 *  Plugin Author [Shane Bishop](https://wordpress.org/support/users/nosilver4u/)
 * (@nosilver4u)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/issues-with-optimize-everything-else/#post-6341032)
 * Did you ever find out anything?
 *  Thread Starter [kb959fl](https://wordpress.org/support/users/kb959fl/)
 * (@kb959fl)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/issues-with-optimize-everything-else/#post-6341035)
 * Sorry for the delay. Here is the output from the javascript console in chrome:
 *     ```
       Uncaught SyntaxError: Unexpected token
       m.parseJSON @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-core,jquery…:4
       e.parseJSON @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-core,jquery…:8
       (anonymous function) @ eio.js?ver=4.2.3:177
       j @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-core,jquery…:2
       k.fireWith @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-core,jquery…:2
       x @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-core,jquery…:4
       b @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-core,jquery…:4
       ```
   

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/topic/issues-with-optimize-everything-else/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/issues-with-optimize-everything-else/page/2/?output_format=md)

The topic ‘Issues with Optimize Everything Else’ is closed to new replies.

 * ![](https://ps.w.org/ewww-image-optimizer/assets/icon-256x256.png?rev=1582276)
 * [EWWW Image Optimizer](https://wordpress.org/plugins/ewww-image-optimizer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ewww-image-optimizer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ewww-image-optimizer/)
 * [Active Topics](https://wordpress.org/support/plugin/ewww-image-optimizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ewww-image-optimizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ewww-image-optimizer/reviews/)

 * 21 replies
 * 3 participants
 * Last reply from: [Shane Bishop](https://wordpress.org/support/users/nosilver4u/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/issues-with-optimize-everything-else/page/2/#post-6341074)
 * Status: resolved