Just to be clear here, you start the bulk optimizer, and it stops due to a timeout, or who knows what else. You then go into resume it, and it throws the error?
Ok, yes I see the error now, I’ll have to try and track down what I did wrong.
1.3.5 will be out later today to fix the issue.
Thread Starter
silico
(@silico)
Super! Thank you very much.
I have now made 4 attempts with two computers with Firefox and Chrome:
1) Stops at:
Processing 289/1179: 595_jpg.jpg …
Full size – No Savings
Thumbnail – No Savings
Elapsed: 92 seconds
Processing 294/1179: 609_jpg.jpg …
Full size – No Savings
Once more (Bulk Optimize):
It appears that a previous bulk optimization was interrupted.
Would you like to continue where we left off?
Yes – click and almost immediately:
Warning: Invalid argument supplied for foreach () … … … on line 173
2) Processing stops at 278/1179, Elapsed: 84 seconds
3) Stops processing at 294/1179, Elapsed: 87 seconds
4) Processing stops at 280/1179, Elapsed: 94 seconds
Once more thank you.
Happy New Year 🙂
Jacek
I bumped 1.3.5 out the door a couple hours ago, it should fix it.
Thread Starter
silico
(@silico)
After three resumes all 1179 images are optimized.
Thank you very much. Last photo:
Processing 1179/1179: 130.jpg…
Full size – Reduced by 0.5% (131 B)
Thumbnail – Reduced by 9.4% (3.7 KB)
Elapsed: 68 seconds
Finished Optimization
I’m seeing this same issue on 1.3.7. Was the fix included in that version?
Warning: Invalid argument supplied for foreach() in /home/…/ewww-image-optimizer/bulk.php on line 52
–Sean
Sean,
It was specifically a bug in the ‘resume’ feature of nextgen and flagallery, but perhaps it was in the main bulk optimizer and I missed it. I’ll have to take a look. If you could start a new thread, as you apparently are seeing a new issue, and please post the exact steps to reproduce the error (so I’m not beating my head against a wall trying to guess what you did).
Sure, I can start a new thread…but the process I was following is exactly what this author was doing.
1) Start the bulk optimize process
2) After about 70 seconds, the process stops
3) I click the resume button
4) The error below presents itself
Warning: Invalid argument supplied for foreach() in /home/…/ewww-image-optimizer/bulk.php on line 52
Figured I would add it here since it’s the same issue the original poster saw.
–Sean