• Resolved Greg Marshall

    (@timeassistant)


    Hi, first of all, love the plugin its great (when it works ok) but recently I have been having issues, when uploading images. it seems to be images that are 2MB or larger.

    I normally had the plugin optimize images as soon as they were uploaded however recently when uploading images, wordpress claims the image failed (But actually it has uploaded correctly) and when attempting to either refresh or go to a new page the admin backend just continues to load endlessly and not actually show anything. According to our VPS Host while this was happening the plugin was issuing some sort of lock state on Apache meaning that the webserver was waiting for the optimization task to complete. but as wordpress threw up an error we ended up apparently in a loop. Basically auto optimize was not managing to optimize the image and seems to freeze the rest of the site. I have since disabled auto optimize and set it to the wp_cron.

    Our hosts then tried to set up the wp_cli method but ran into an issue with the ultimate member plugin details are below:

    # wp-cli help ewwwio optimize
    Fatal error: Call to a member function get_roles() on a non-object in /home/{username}/public_html/wp-content/plugins/ultimate-member/core/um-builtin.php on line 526

    I have also notified Ultimate member of this conflict incase they can fix it.

    In regards to auto optimize can this be fixed? The only way I could regain access was by getting our host to kill the process, which would then allow me to load the wp-backend again and also see the image had been uploaded manually optimizing the image did work but it took a long long time.

    https://ww.wp.xz.cn/plugins/ewww-image-optimizer/

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

    (@nosilver4u)

    Please post a link to a problematic image (original size), and turn on EWWW’s debugging setting and post the debug information from the settings page please.

    Thread Starter Greg Marshall

    (@timeassistant)

    The full link to the image is:

    time-hero[dot]com /wp-content/uploads/2015/11/become-agent-bg.png

    apologies for breaking the link up but the site is not yet public so I dont want google or any bots finding it too easy. This is full size but it should have been optimised by now.

    the debug log is below please note I edited out any folders before /public_html/ they were all full root paths. Also in the log below deferred optimization and disable automatic optimization are now enabled previously these were not.

    timehero
    EWWW IO version: 254
    WP version: 4.3.1
    PHP version: 50528
    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()
    scheduling ewww_image_optimizer_auto
    ewww_image_optimizer_cron_setup()
    scheduling ewww_image_optimizer_defer
    ewww_image_optimizer_tool_init()
    ewww_image_optimizer_install_tools()
    Checking/Installing tools in /public_html/wp-content/ewww/
    wp-content/ewww permissions: 0755
    ewww_image_optimizer_install_paths()
    CPU architecture: x86_64
    generated paths:
    /public_html/wp-content/plugins/ewww-image-optimizer/jpegtran-linux64
    /public_html/wp-content/plugins/ewww-image-optimizer/optipng-linux
    /public_html/wp-content/plugins/ewww-image-optimizer/gifsicle-linux
    /public_html/wp-content/plugins/ewww-image-optimizer/pngquant-linux
    /public_html/wp-content/plugins/ewww-image-optimizer/cwebp-linux864
    /public_html/wp-content/ewww/jpegtran
    /public_html/wp-content/ewww/optipng
    /public_html/wp-content/ewww/gifsicle
    /public_html/wp-content/ewww/pngquant
    /public_html/wp-content/ewww/cwebp
    64-bit linux detected while installing tools
    ewww_image_optimizer_md5check()
    /public_html/wp-content/ewww/jpegtran-alt: 8e4a09bb04ba001f5f16651ae8594f7f
    md5sum verified, binary is intact
    ewww_image_optimizer_md5check()
    /public_html/wp-content/ewww/cwebp-alt: 85f681c1ced4e1726b0d4e69c222186d
    md5sum verified, binary is intact
    Linux/UNIX style OS, checking permissions
    ewww_image_optimizer_check_permissions()
    permissions for /public_html/wp-content/ewww/jpegtran: 0755
    permissions ok
    ewww_image_optimizer_check_permissions()
    permissions for /public_html/wp-content/ewww/gifsicle: 0755
    permissions ok
    ewww_image_optimizer_check_permissions()
    permissions for /public_html/wp-content/ewww/optipng: 0755
    permissions ok
    ewww_image_optimizer_check_permissions()
    permissions for /public_html/wp-content/ewww/pngquant: 0755
    permissions ok
    ewww_image_optimizer_check_permissions()
    permissions for /public_html/wp-content/ewww/cwebp: 0755
    permissions ok
    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 /public_html/wp-content/ewww/jpegtran, testing...
    ewww_image_optimizer_md5check()
    /public_html/wp-content/ewww/jpegtran: 47c39feae0712f2996c61e5ae639b706
    md5sum verified, binary is intact
    ewww_image_optimizer_mimetype()
    testing mimetype: /public_html/wp-content/ewww/jpegtran
    ewww_image_optimizer_find_binary()
    ewww_image_optimizer_tool_found()
    testing case: f at file
    file: magic file from /etc/magic:/usr/share/misc/magic
    file binary found
    file command: /public_html/wp-content/ewww/jpegtran: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped
    ewww_image_optimizer_tool_found()
    testing case: j at /public_html/wp-content/ewww/jpegtran
    /public_html/wp-content/ewww/jpegtran: Independent JPEG Group's JPEGTRAN, version 9a 19-Jan-2014
    optimizer found
    found /public_html/wp-content/ewww/optipng, testing...
    ewww_image_optimizer_md5check()
    /public_html/wp-content/ewww/optipng: 31698da4f5ca00b35e910c77acae65bb
    md5sum verified, binary is intact
    ewww_image_optimizer_mimetype()
    testing mimetype: /public_html/wp-content/ewww/optipng
    ewww_image_optimizer_find_binary()
    ewww_image_optimizer_tool_found()
    testing case: f at file
    file: magic file from /etc/magic:/usr/share/misc/magic
    file binary found
    file command: /public_html/wp-content/ewww/optipng: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, for GNU/Linux 2.6.9, not stripped
    ewww_image_optimizer_tool_found()
    testing case: o at /public_html/wp-content/ewww/optipng
    /public_html/wp-content/ewww/optipng: OptiPNG version 0.7.5
    optimizer found
    found /public_html/wp-content/ewww/gifsicle, testing...
    ewww_image_optimizer_md5check()
    /public_html/wp-content/ewww/gifsicle: 40ceed9c36838b5b9ccc505ab224d90f
    md5sum verified, binary is intact
    ewww_image_optimizer_mimetype()
    testing mimetype: /public_html/wp-content/ewww/gifsicle
    ewww_image_optimizer_find_binary()
    ewww_image_optimizer_tool_found()
    testing case: f at file
    file: magic file from /etc/magic:/usr/share/misc/magic
    file binary found
    file command: /public_html/wp-content/ewww/gifsicle: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, for GNU/Linux 2.6.9, not stripped
    ewww_image_optimizer_tool_found()
    testing case: g at /public_html/wp-content/ewww/gifsicle
    /public_html/wp-content/ewww/gifsicle: LCDF Gifsicle 1.87
    optimizer found
    found /public_html/wp-content/ewww/pngout-static, testing...
    ewww_image_optimizer_md5check()
    /public_html/wp-content/ewww/pngout-static: d760b7973ca81856cf2fc464637f8d77
    md5sum verified, binary is intact
    ewww_image_optimizer_mimetype()
    testing mimetype: /public_html/wp-content/ewww/pngout-static
    ewww_image_optimizer_find_binary()
    ewww_image_optimizer_tool_found()
    testing case: f at file
    file: magic file from /etc/magic:/usr/share/misc/magic
    file binary found
    file command: /public_html/wp-content/ewww/pngout-static: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, for GNU/Linux 2.6.26, stripped
    ewww_image_optimizer_tool_found()
    testing case: p at /public_html/wp-content/ewww/pngout-static
    /public_html/wp-content/ewww/pngout-static: PNGOUT [In:{PNG,JPG,GIF,TGA,PCX,BMP}] (Out:PNG) (options...) Mar 19 2015
    optimizer found
    using: /public_html/wp-content/ewww/jpegtran
    using: /public_html/wp-content/ewww/optipng
    using: /public_html/wp-content/ewww/gifsicle
    using: /public_html/wp-content/ewww/pngout-static
    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: /public_html/
    home url: http://time-hero.com
    site url: http://time-hero.com
    ewww_image_optimizer_savings()
    querying savings for single site
    query to be performed: SELECT SUM(orig_size-image_size) FROM wp_ewwwio_images
    savings found: 17143434
    ewww_image_optimizer_install_paths()
    CPU architecture: x86_64
    generated paths:
    /public_html/wp-content/plugins/ewww-image-optimizer/jpegtran-linux64
    /public_html/wp-content/plugins/ewww-image-optimizer/optipng-linux
    /public_html/wp-content/plugins/ewww-image-optimizer/gifsicle-linux
    /public_html/wp-content/plugins/ewww-image-optimizer/pngquant-linux
    /public_html/wp-content/plugins/ewww-image-optimizer/cwebp-linux864
    /public_html/wp-content/ewww/jpegtran
    /public_html/wp-content/ewww/optipng
    /public_html/wp-content/ewww/gifsicle
    /public_html/wp-content/ewww/pngquant
    /public_html/wp-content/ewww/cwebp
    ewww_image_optimizer_tool_found()
    testing case: j at /public_html/wp-content/ewww/jpegtran
    /public_html/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 /public_html/wp-content/ewww/optipng
    /public_html/wp-content/ewww/optipng: OptiPNG version 0.7.5
    optimizer found
    ewww_image_optimizer_tool_found()
    testing case: g at /public_html/wp-content/ewww/gifsicle
    /public_html/wp-content/ewww/gifsicle: LCDF Gifsicle 1.87
    optimizer found
    ewww_image_optimizer_tool_found()
    testing case: p at /public_html/wp-content/ewww/pngout-static
    /public_html/wp-content/ewww/pngout-static: PNGOUT [In:{PNG,JPG,GIF,TGA,PCX,BMP}] (Out:PNG) (options...) Mar 19 2015
    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-23 Q16 http://www.imagemagick.org
    imagemagick found
    ewww_image_optimizer_find_binary()
    ewww_image_optimizer_tool_found()
    testing case: f at file
    file: magic file from /etc/magic:/usr/share/misc/magic
    file binary found
    ewww_image_optimizer_find_binary()
    ewww_image_optimizer_tool_found()
    testing case: n at nice
    nice: 0
    nice found
    ewww_image_optimizer_find_binary()
    ewww_image_optimizer_tool_found()
    testing case: t at tar
    tar: tar (GNU tar) 1.23
    tar found
    cloud JPG: off
    cloud PNG: off
    PNG extra compress: off
    cloud GIF: off
    cloud fast lossy: off
    remove metadata: off
    lossy JPG: off
    lossy PNG: off
    bulk delay: 1
    optipng level: 5
    pngout level: 2
    scheduled optimization: on
    folders to optimize:
    /public_html/
    deferred optimization: on
    disable auto-optimization: on
    include media library: on
    ewww_image_optimizer_get_image_sizes()
    Array ( [thumbnail] => Array ( [width] => 150 [height] => 150 ) [medium] => Array ( [width] => 300 [height] => 300 ) [large] => Array ( [width] => 1024 [height] => 1024 ) [portfolio-square] => Array ( [width] => 570 [height] => 570 ) [portfolio-portrait] => Array ( [width] => 600 [height] => 800 ) [portfolio-landscape] => Array ( [width] => 800 [height] => 600 ) [menu-featured-post] => Array ( [width] => 345 [height] => 198 ) [qode-carousel_slider] => Array ( [width] => 400 [height] => 260 ) [portfolio_slider] => Array ( [width] => 500 [height] => 380 ) [portfolio_masonry_regular] => Array ( [width] => 500 [height] => 500 ) [portfolio_masonry_wide] => Array ( [width] => 1000 [height] => 500 ) [portfolio_masonry_tall] => Array ( [width] => 500 [height] => 1000 ) [portfolio_masonry_large] => Array ( [width] => 1000 [height] => 1000 ) [portfolio_masonry_with_space] => Array ( [width] => 700 [height] => 0 ) [latest_post_boxes] => Array ( [width] => 539 [height] => 303 ) )
    disabled resizes:
    thumbnail: optimization=enabled creation=enabled
    medium: optimization=enabled creation=enabled
    large: optimization=enabled creation=enabled
    portfolio-square: optimization=enabled creation=enabled
    portfolio-portrait: optimization=enabled creation=enabled
    portfolio-landscape: optimization=enabled creation=enabled
    menu-featured-post: optimization=enabled creation=enabled
    qode-carousel_slider: optimization=enabled creation=enabled
    portfolio_slider: optimization=enabled creation=enabled
    portfolio_masonry_regular: optimization=enabled creation=enabled
    portfolio_masonry_wide: optimization=enabled creation=enabled
    portfolio_masonry_tall: optimization=enabled creation=enabled
    portfolio_masonry_large: optimization=enabled creation=enabled
    portfolio_masonry_with_space: optimization=enabled creation=enabled
    latest_post_boxes: 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: no
    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: on
    max_execution_time: 1000

    Plugin Author Shane Bishop

    (@nosilver4u)

    Ok, so several things are problematic here:

    1. Setting optipng to level 5 is a bit excessive, so I would set that back to 2 or 3.
    2. You have deferred optimization turned on, as well as scheduled optimization, which is scanning your entire /public_html/ folder PLUS the latest 2 media library folders. Since it’s already scanning /public_html/, you can turn off the ‘include media library folders’ option. And depending on what you are trying to achieve, you may not even need scheduled optimization (unless you have images outside the Media Library that you are concerned about).

    3. The biggest issue here is the image you linked to. It’s a 1.8 MB PNG image with photographic content. In other words, it ought to be a JPG. Even at quality 90 (and before optimization), that’s a 90% savings with the JPG format.

    Here’s why that’s a problem: attempting to optimize a 1.8 MB PNG file is going to take about an hour at optipng level 5 and pngout level 2 with 15 resizes added on top of that. I’m half curious to try it myself just to see if it would even finish in an hour.

    The rule of thumb is that if an image contains photographic elements (real life stuff), then it should be saved as a JPG. The PNG format excels with smaller color palettes, but throw some photographic content in there, and it falls over pretty quick.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Bug and Conflict found’ is closed to new replies.