• Resolved blackstar1979

    (@blackstar1979)


    Hi there ??

    I have this warning all the time in my debug file: PHP Warning: Invalid argument supplied for foreach() in /MYSECRET/wp-content/plugins/ewww-image-optimizer/common.php on line 861

    Debug onsite log:

    MYSECRET
    EWWW IO version: 250.0
    WP version: 4.2.4
    PHP version: 50423
    ewww_image_optimizer_preinit()
    ewww_image_optimizer_gallery_support()
    ewww_image_optimizer_admin_init()
    ewww_image_optimizer_init()
    ewww_image_optimizer_cloud_init()
    ewww_image_optimizer_exec_init()
    ewww_image_optimizer_cron_setup()
    ewww_image_optimizer_cron_setup()
    ewww_image_optimizer_defer already scheduled: 1441354895
    ewww_image_optimizer_tool_init()
    ewww_image_optimizer_install_tools()
    Checking/Installing tools in /MYSECRET/wp-content/ewww/
    wp-content/ewww permissions: 0755
    ewww_image_optimizer_install_paths()
    CPU architecture: x86_64
    generated paths:
    /MYSECRET/wp-content/plugins/ewww-image-optimizer/jpegtran-linux64
    /MYSECRET/wp-content/plugins/ewww-image-optimizer/optipng-linux
    /MYSECRET/wp-content/plugins/ewww-image-optimizer/gifsicle-linux
    /MYSECRET/wp-content/plugins/ewww-image-optimizer/pngquant-linux
    /MYSECRET/wp-content/plugins/ewww-image-optimizer/cwebp-linux864
    /MYSECRET/wp-content/ewww/jpegtran
    /MYSECRET/wp-content/ewww/optipng
    /MYSECRET/wp-content/ewww/gifsicle
    /MYSECRET/wp-content/ewww/pngquant
    /MYSECRET/wp-content/ewww/cwebp
    64-bit linux detected while installing tools
    ewww_image_optimizer_md5check()
    /MYSECRET/wp-content/ewww/jpegtran-alt: 8e4a09bb04ba001f5f16651ae8594f7f
    md5sum verified, binary is intact
    ewww_image_optimizer_md5check()
    /MYSECRET/wp-content/ewww/cwebp-alt: 361c019b0a31d208c64b54bd813a3f76
    md5sum verified, binary is intact
    Linux/UNIX style OS, checking permissions
    jpegtran permissions: 0755
    gifsicle permissions: 0755
    optipng permissions: 0755
    pngquant permissions: 0755
    webp permissions: 0755
    ewww_image_optimizer_settings_script()
    ewww_image_optimizer_bulk_script()
    ewww_image_optimizer_aux_images_script()
    ewww_image_optimizer_webp_script()
    ewww_image_optimizer_notice_utils()
    ewww_image_optimizer_exec_check()
    disable_functions:
    suhosin_blacklist:
    ewww_image_optimizer_safemode_check()
    safe_mode =
    ewww_image_optimizer_path_check()
    found /MYSECRET/wp-content/ewww/jpegtran, testing...
    ewww_image_optimizer_md5check()
    /MYSECRET/wp-content/ewww/jpegtran: 47c39feae0712f2996c61e5ae639b706
    md5sum verified, binary is intact
    ewww_image_optimizer_mimetype()
    testing mimetype: /MYSECRET/wp-content/ewww/jpegtran
    finfo_file: application/x-executable
    ewww_image_optimizer_tool_found()
    testing case: j at /MYSECRET/wp-content/ewww/jpegtran
    /MYSECRET/wp-content/ewww/jpegtran: Independent JPEG Group's JPEGTRAN, version 9a 19-Jan-2014
    optimizer found
    found /MYSECRET/wp-content/ewww/optipng, testing...
    ewww_image_optimizer_md5check()
    /MYSECRET/wp-content/ewww/optipng: 31698da4f5ca00b35e910c77acae65bb
    md5sum verified, binary is intact
    ewww_image_optimizer_mimetype()
    testing mimetype: /MYSECRET/wp-content/ewww/optipng
    finfo_file: application/x-executable
    ewww_image_optimizer_tool_found()
    testing case: o at /MYSECRET/wp-content/ewww/optipng
    /MYSECRET/wp-content/ewww/optipng: OptiPNG version 0.7.5
    optimizer found
    found /MYSECRET/wp-content/ewww/gifsicle, testing...
    ewww_image_optimizer_md5check()
    /MYSECRET/wp-content/ewww/gifsicle: 40ceed9c36838b5b9ccc505ab224d90f
    md5sum verified, binary is intact
    ewww_image_optimizer_mimetype()
    testing mimetype: /MYSECRET/wp-content/ewww/gifsicle
    finfo_file: application/x-executable
    ewww_image_optimizer_tool_found()
    testing case: g at /MYSECRET/wp-content/ewww/gifsicle
    /MYSECRET/wp-content/ewww/gifsicle: LCDF Gifsicle 1.87
    optimizer found
    using: /MYSECRET/wp-content/ewww/jpegtran
    using: /MYSECRET/wp-content/ewww/optipng
    using: /MYSECRET/wp-content/ewww/gifsicle
    defining EWWW_IMAGE_OPTIMIZER_JPEGTRAN
    defining EWWW_IMAGE_OPTIMIZER_OPTIPNG
    defining EWWW_IMAGE_OPTIMIZER_GIFSICLE
    defining EWWW_IMAGE_OPTIMIZER_PNGOUT
    defining EWWW_IMAGE_OPTIMIZER_PNGQUANT
    defining EWWW_IMAGE_OPTIMIZER_WEBP
    ewww_image_optimizer_options()
    ABSPATH: /MYSECRET/
    home url: https://aerion.pl
    site url: https://aerion.pl
    ewww_image_optimizer_savings()
    querying savings for single site
    query to be performed: SELECT SUM(orig_size-image_size) FROM h8zj_ewwwio_images
    savings found: 427440
    ewww_image_optimizer_install_paths()
    CPU architecture: x86_64
    generated paths:
    /MYSECRET/wp-content/plugins/ewww-image-optimizer/jpegtran-linux64
    /MYSECRET/wp-content/plugins/ewww-image-optimizer/optipng-linux
    /MYSECRET/wp-content/plugins/ewww-image-optimizer/gifsicle-linux
    /MYSECRET/wp-content/plugins/ewww-image-optimizer/pngquant-linux
    /MYSECRET/wp-content/plugins/ewww-image-optimizer/cwebp-linux864
    /MYSECRET/wp-content/ewww/jpegtran
    /MYSECRET/wp-content/ewww/optipng
    /MYSECRET/wp-content/ewww/gifsicle
    /MYSECRET/wp-content/ewww/pngquant
    /MYSECRET/wp-content/ewww/cwebp
    ewww_image_optimizer_tool_found()
    testing case: j at /MYSECRET/wp-content/ewww/jpegtran
    /MYSECRET/wp-content/ewww/jpegtran: Independent JPEG Group's JPEGTRAN, version 9a 19-Jan-2014
    optimizer found
    ewww_image_optimizer_tool_found()
    testing case: o at /MYSECRET/wp-content/ewww/optipng
    /MYSECRET/wp-content/ewww/optipng: OptiPNG version 0.7.5
    optimizer found
    ewww_image_optimizer_tool_found()
    testing case: g at /MYSECRET/wp-content/ewww/gifsicle
    /MYSECRET/wp-content/ewww/gifsicle: LCDF Gifsicle 1.87
    optimizer found
    ewww_image_optimizer_safemode_check()
    safe_mode =
    ewww_image_optimizer_exec_check()
    disable_functions:
    suhosin_blacklist:
    ewww_image_optimizer_gd_support()
    GD found, supports:
    GD Version: bundled (2.1.0 compatible)
    FreeType Support: 1
    FreeType Linkage: with freetype
    T1Lib Support:
    GIF Read Support: 1
    GIF Create Support: 1
    JPEG Support: 1
    PNG Support: 1
    WBMP Support: 1
    XPM Support: 1
    XBM Support: 1
    JIS-mapped Japanese Font Support:
    ewww_image_optimizer_gmagick_support()
    ewww_image_optimizer_imagick_support()
    ewww_image_optimizer_find_binary()
    ewww_image_optimizer_tool_found()
    testing case: i at convert
    convert: Version: ImageMagick 6.7.2-7 2015-07-29 Q16 https://www.imagemagick.org
    imagemagick found
    ewww_image_optimizer_find_binary()
    ewww_image_optimizer_tool_found()
    testing case: n at nice
    nice: 10
    nice found
    cloud JPG: off
    cloud PNG: off
    PNG extra compress: off
    cloud GIF: off
    cloud fast lossy: off
    remove metadata: on
    lossy JPG: off
    lossy PNG: off
    bulk delay: 1
    optipng level: 2
    pngout level: 2
    scheduled optimization: off
    deferred optimization: on
    disable auto-optimization: off
    include media library: off
    ewww_image_optimizer_get_image_sizes()
    Array ( [thumbnail] => Array ( [width] => 150 [height] => 150 ) [medium] => Array ( [width] => 300 [height] => 300 ) [large] => Array ( [width] => 3840 [height] => 2160 ) [shop_thumbnail] => Array ( [width] => 257 [height] => 257 ) [shop_catalog] => Array ( [width] => 600 [height] => 600 ) [shop_single] => Array ( [width] => 600 [height] => 600 ) )
    disabled resizes:
    thumbnail: optimization=enabled creation=enabled
    medium: optimization=enabled creation=enabled
    large: optimization=enabled creation=enabled
    shop_thumbnail: optimization=enabled creation=enabled
    shop_catalog: optimization=enabled creation=enabled
    shop_single: optimization=enabled creation=enabled
    skip images smaller than: 0 bytes
    skip PNG images larger than: 0 bytes
    exclude originals from lossy: on
    exclude originals from metadata removal: on
    use system binaries: no
    jpegtran disabled: no
    optipng disabled: no
    pngout disabled: yes
    gifsicle disabled: no
    webp conversion: off
    alt webp rewriting: off
    jpg2png: off
    ewww_image_optimizer_jpg_background()
    ewww_image_optimizer_jpg_background()
    ewww_image_optimizer_jpg_quality()
    png2jpg: off
    gif2png: off
    max_execution_time: 120

    Plugins installed and activated:

    Simple Security Firewall	 	przez iControlWP – 4.10.3
    Add Meta Tags	 	przez George Notaras – 2.9.1
    Contact Form 7	 	przez Takayuki Miyoshi – 4.2.2
    Ciasteczka	 	przez dFactory – 1.2.32
    Rozszerzona Biblioteka Mediów	 	przez wpUXsolutions – 2.0.4.7
    EWWW Image Optimizer	 	przez Shane Bishop – 2.5.0
    Google Analytics Dashboard for WP	 	przez Alin Marcu – 4.8.2
    Google XML Sitemaps	 	przez Arne Brachhold – 4.0.8
    IG Shortcodes	 	przez iografica – 2.4
    Loco Translate	 	przez Tim Whitlock – 1.5.3
    Redirection	 	przez John Godley – 2.3.16
    Sierotki	 	przez Marcin Pietrzak – 2.4
    Transferuj.pl Woocommerce payment module	 	przez Transferuj.pl – 1.1.3
    WooCommerce	 	przez WooThemes – 2.4.6
    WooDiscuz - WooCommerce Comments	 	przez gVectors Team (A. Chakhoyan, G. Zakaryan, H. Martirosyan) – 2.0.1
    WP Fastest Cache	 	przez Emre Vona – 0.8.5.5
    WP Multibyte Patch	 	przez Seisuke Kuraishi – 2.4
    WP-Sweep	 	przez Lester 'GaMerZ' Chan – 1.0.5

    Can you help?

    Greetings ??

    https://www.ads-software.com/plugins/ewww-image-optimizer/

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

    (@nosilver4u)

    I’ll try to take a look at it over the weekend and see what I can find out.

    Thread Starter blackstar1979

    (@blackstar1979)

    I assume it’s one of the cron jobs as it appears now regularly once every hour. I havent noticed this fact earlier. My cPanel cron runs: */5 * * * * wget -q -O - https://aerion.pl/wp-cron.php?doing_wp_cron >/dev/null 2>&1… hope it help.

    Plugin Author nosilver4u

    (@nosilver4u)

    You’re right on there. The warning happens every time the deferred optimization runs and it has nothing to optimize. I’m putting in a check for the next release so that it just exits if there is nothing to optimize.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Warning -> common.php on line 861’ is closed to new replies.