Title: Bulk Optimize Not Working
Last modified: August 21, 2016

---

# Bulk Optimize Not Working

 *  Resolved [cgold](https://wordpress.org/support/users/cgold/)
 * (@cgold)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/bulk-optimize-not-working-1/)
 * Hi Support,
 * I have uploaded to the latest version 1.8.1 and when I use the bulk optimize 
   feature it asks to import into the library. When I click on the import button
   it just spins for hours and nothing is imported into the library.
 * [https://wordpress.org/plugins/ewww-image-optimizer/](https://wordpress.org/plugins/ewww-image-optimizer/)

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

1 [2](https://wordpress.org/support/topic/bulk-optimize-not-working-1/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/bulk-optimize-not-working-1/page/2/?output_format=md)

 *  Plugin Author [nosilver4u](https://wordpress.org/support/users/nosilver4u/)
 * (@nosilver4u)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/bulk-optimize-not-working-1/#post-4675249)
 * 1.8.1 is not the latest. Regardless, the next version will have a much faster
   import, but I’m not completely finished with it yet.
 *  Thread Starter [cgold](https://wordpress.org/support/users/cgold/)
 * (@cgold)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/bulk-optimize-not-working-1/#post-4675368)
 * Sorry I double checked and I have 1.8.3. Do you have any eta when the next update
   would be released? Thanks Many
 *  Plugin Author [nosilver4u](https://wordpress.org/support/users/nosilver4u/)
 * (@nosilver4u)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/bulk-optimize-not-working-1/#post-4675370)
 * Hopefully tomorrow or Saturday.
 *  [dwood](https://wordpress.org/support/users/dwood/)
 * (@dwood)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/bulk-optimize-not-working-1/#post-4675377)
 * Hi Shane or colleague,
 * For what it’s worth, I’m seeing identical symptoms with 1.8.3. Ad-hoc optimization
   works fine, but bulk optimize just shows a spinning “importing” icon after clicking
   on the import button.
 * If I can help with a log or anything, please just let me know…
 * Cheers,
 * David
 *  Plugin Author [nosilver4u](https://wordpress.org/support/users/nosilver4u/)
 * (@nosilver4u)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/bulk-optimize-not-working-1/#post-4675379)
 * dwood, thanks for the feedback. The problem is that the import is a very sql-
   intensive operation (lots of tiny disc reads & writes), so I’m working on optimizing
   that. The process flow looks something like this in 1.8.3:
    1. get the image 
   metadata (a read from the disk) 2. check the ewwwio_images table for an entry(
   another read from the disk) 3. create/update the record for the image in the 
   ewwwio_images table (a write operation, which is typically more intensive).
 * Repeat this once for every image in WordPress, and it can take a looooooong time.
 * The new process is going to look like this:
 * 1. get the image metadata for all images at once
    2. retrieve all the entries
   in the ewwwio_images table 3. do updates on demand, but do record creation in
   batches of 100+
 * For something like 10,000 images, this will result in 2 read operations, and 
   100 write operations, a HUGE improvement over the previous process.
 * The last step thing I have to implement is the multi-record INSERT statements.
   Going to work on that this morning hopefully so I can get it pushed out by tomorrow
   at the latest.
 *  Plugin Author [nosilver4u](https://wordpress.org/support/users/nosilver4u/)
 * (@nosilver4u)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/bulk-optimize-not-working-1/#post-4675391)
 * 1.8.4 with 50x faster import has landed!
 *  [dwood](https://wordpress.org/support/users/dwood/)
 * (@dwood)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/bulk-optimize-not-working-1/#post-4675401)
 * Hi Shane,
 * Hmmm, still no joy with 1.8.4, same symptoms, namely:
 * – Go to /wp-admin/upload.php?page=ewww-image-optimizer-bulk .
 * – Click on “Import images”.
 * – Status msg “Importing” and a spinning circle.
 * Media library size is 2,300 images, so not huge.
 * If there’s any way I can help with debugging or whatever, please just let me 
   know…
 * Thanks,
 * David
 *  Thread Starter [cgold](https://wordpress.org/support/users/cgold/)
 * (@cgold)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/bulk-optimize-not-working-1/#post-4675403)
 * Hi, David. I have updated to the latest version 1.8.4 and its still spinning 
   on import.
 *  Plugin Author [nosilver4u](https://wordpress.org/support/users/nosilver4u/)
 * (@nosilver4u)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/bulk-optimize-not-working-1/#post-4675408)
 * Yeah, that amount of images should NOT be causing timeouts at all. Should take
   like 2 seconds or less. I would check the javascript console to see if there 
   are any errors. Perhaps the import itself isn’t even firing due to a plugin conflict.
 * You can use Firebug for Firefox, or the built-in developer tools for Chrome.
 *  Plugin Author [nosilver4u](https://wordpress.org/support/users/nosilver4u/)
 * (@nosilver4u)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/bulk-optimize-not-working-1/#post-4675409)
 * I would also check your server error logs, and try turning on debugging in wp-
   config.php to see if that turns up anything useful.
 * If none of that is helpful, disable all other plugins, and try the Import to 
   see what happens.
 *  [DLT95](https://wordpress.org/support/users/dlt95/)
 * (@dlt95)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/bulk-optimize-not-working-1/#post-4675420)
 * I installed 1.8.4 but when importing images for bulk optimization I quickly get
   this error:
 * Fatal error: Out of memory (allocated 56623104) (tried to allocate 32 bytes) 
   in xxxxxx/wp-includes/wp-db.php on line 1565
 * I know our hoster isnt exactly generous with memory (“up to 120MB” seems to really
   mean “less than 70MB”) but I have not had out of memory errors with other plugins.
 *  Plugin Author [nosilver4u](https://wordpress.org/support/users/nosilver4u/)
 * (@nosilver4u)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/bulk-optimize-not-working-1/#post-4675421)
 * DLT95, can you please start a new thread? While this MAY be a similar issue, 
   it’s best practice to start your own thread until we actually confirm that two
   issues are the same thing. We don’t currently have any idea exactly what is giving
   dwood and cgold problems.
 *  Plugin Author [nosilver4u](https://wordpress.org/support/users/nosilver4u/)
 * (@nosilver4u)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/bulk-optimize-not-working-1/#post-4675422)
 * cgold, and dwood, I think I’m on to something that I stumbled across when looking
   into the memory issues DLT95 reported. I’ll do some more checking in the morning.
 *  Thread Starter [cgold](https://wordpress.org/support/users/cgold/)
 * (@cgold)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/bulk-optimize-not-working-1/#post-4675423)
 * I have checked chrome developer tools and i didnt see any errors related to optimizer.
   If you want wp-admin access I can provide it to you I just need a way to send
   you a private message with the details.
 *  Plugin Author [nosilver4u](https://wordpress.org/support/users/nosilver4u/)
 * (@nosilver4u)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/bulk-optimize-not-working-1/#post-4675426)
 * cgold, did you check your server error logs and/or turn on debugging in wp-config.
   php??

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

1 [2](https://wordpress.org/support/topic/bulk-optimize-not-working-1/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/bulk-optimize-not-working-1/page/2/?output_format=md)

The topic ‘Bulk Optimize Not Working’ 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/)

 * 23 replies
 * 4 participants
 * Last reply from: [nosilver4u](https://wordpress.org/support/users/nosilver4u/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/bulk-optimize-not-working-1/page/2/#post-4675452)
 * Status: resolved