• Resolved silico

    (@silico)


    Hello!
    I have 1180 photos in FlAGallery folder. All files in FlAGallery are JPG images (edited with Photoshop CS5)
    EWWW optimizer starts clear and clean but after ca. 70 seconds stops. After continuations start:
    Warning: Invalid argument supplied for foreach() in /homepages/…/wp-content/plugins/ewww-image-optimizer/flag-integration.php on line 173

    That’s part of this code:

    foreach ($images as $id) {
    			set_time_limit (50);
    			$current++;
    			if (isset($last_attachment)) {
    			if ($last_attachment == $id) {$skip_attachments = false;}
    			}

    I know myself a little but maybe it’s not a big problem and I can repair itself (?)

    Thanks very much for your help; this is very useful plugin.
    Jacek

    http://wordpress.org/extend/plugins/ewww-image-optimizer/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author nosilver4u

    (@nosilver4u)

    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?

    Plugin Author nosilver4u

    (@nosilver4u)

    Ok, yes I see the error now, I’ll have to try and track down what I did wrong.

    Plugin Author nosilver4u

    (@nosilver4u)

    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

    Plugin Author nosilver4u

    (@nosilver4u)

    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

    Plugin Author nosilver4u

    (@nosilver4u)

    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

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Warning: Invalid argument supplied for foreach()’ is closed to new replies.