• Resolved lifestyletrading

    (@lifestyletrading)


    After the latest update WP Optimize we have this warning on our homepage : Warning: Invalid argument supplied for foreach() in /home/*****/public_html/wp-admin/includes/media.php on line 1813. We looked at the media.php but found nothing strange.

    For the moment we deactivated the pluging but we are looking for a solution.

    Who can help ?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello!

    Have the exact same problem. Appeared on the 3.0.5 version.

    If I deactivate “Show compression meta-box on an image’s dashboard media page” at the image settings the error disappears.

    Thread Starter lifestyletrading

    (@lifestyletrading)

    Hello Zebben,

    That’s correct, deactivating “Show compression meta-box on an image’s dashboard media page” makes the error disappear but it isn’t a long term fix.

    Plugin Author David Anderson

    (@davidanderson)

    Hi,

    Thanks for the report. In the file wp-content/plugins/wp-optimize/includes/class-updraft-smush-manager.php, around line 1046, is this:

    if (!is_admin() || !function_exists('get_current_screen')) return;

    If you change it to this, does it fix it:

    if (!is_admin() || !function_exists('get_current_screen')) return $form_fields;

    N.B. You apparently have your PHP setup configured to send all PHP debugging notices to the web browser, instead of the PHP log. You should turn that off… it’ll be good to prevent this unwanted PHP debugging notice, but even when that’s done, you may get others from other plugins and themes in future if you don’t.

    David

    Plugin Author David Anderson

    (@davidanderson)

    This was fixed in release 3.0.10. Thanks for the report!

    David

    Hello

    Yes release 3.0.10. fixed it for me! Thank you!

    Best regards Zebastian

    Thread Starter lifestyletrading

    (@lifestyletrading)

    Hello David,

    Thanks for fixing this.

    Kind Regards,

    Eugene

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘/public_html/wp-admin/includes/media.php on line 1813’ is closed to new replies.