• Resolved darkcobalt

    (@darkcobalt)


    I have the plugin installed, I’ve copied the binaries to wp-content/ewww and made sure they are 755. I can run –help on the binaries and they work.

    I’ve enabled PNG to JPEG.

    The following is what I noticed:

    1) When I go to the media library and upload a PNG, it doesn’t get converted
    2) When I upload a JPEG, it doesn’t seem to get any optimization at all.

    Here’s what the debug log says:

    =======================================================
    EWWW IO version: 302.0
    WP version: 4.5.2
    PHP version: 50310
    <b>ewww_image_optimizer_gallery_support()</b>
    <b>ewww_image_optimizer_admin_init()</b>
    <b>ewww_image_optimizer_cloud_init()</b>
    <b>ewww_image_optimizer_upgrade()</b>
    <b>ewww_image_optimizer_exec_init()</b>
    <b>ewww_image_optimizer_cron_setup()</b>
    <b>ewww_image_optimizer_handle_upload()</b>
    <b>ewww_image_optimizer_add_attachment()</b>
    <b>ewww_image_optimizer_image_sizes_advanced()</b>
    <b>ewww_image_optimizer_image_sizes()</b>
    <b>ewww_image_optimizer_jpg_quality()</b>
    <b>ewww_image_optimizer_restore_editor_hooks()</b>
    <b>ewww_image_optimizer_resize_from_meta_data()</b>
    attachment id: 303542
    this is a newly uploaded image with no metadata yet
    <b>ewww_image_optimizer_attachment_path()</b>
    WP (filtered) thinks the file is at: /www/website/public_html/wp-content/uploads/2016/10/89683414308_0_ALB.jpg
    retrieved file path: /www/website/public_html/wp-content/uploads/2016/10/89683414308_0_ALB.jpg
    <b>ewww_image_optimizer_mimetype()</b>
    testing mimetype: /www/website/public_html/wp-content/uploads/2016/10/89683414308_0_ALB.jpg
    finfo_file: image/jpeg
    <b>ewww_image_optimizer_resize_upload()</b>
    resizing image from media library or attached to post
    backgrounding optimization for 303542
    <b>ewww_image_optimizer_debug_log()</b>
    16-10-15 01:08:23.000000
    background processing 303540, type: image/jpeg
    metadata is missing, requeueing 3

    =======================================================

    What’s interesting is that in the Plugin Status it never shows that optipng, jpegtran and gifsicle are enabled. see here:

    View post on imgur.com

    Yet the debug log finds and says they are enabled:

    ========================================================
    Checking/Installing tools in /www/website/public_html/wp-content/ewww/
    wp-content/ewww permissions: 0775
    ewww_image_optimizer_install_paths()
    CPU architecture: amd64
    generated paths:
    /www/website/public_html/wp-content/plugins/ewww-image-optimizer/binaries/jpegtran-fbsd
    /www/website/public_html/wp-content/plugins/ewww-image-optimizer/binaries/optipng-fbsd
    /www/website/public_html/wp-content/plugins/ewww-image-optimizer/binaries/gifsicle-fbsd
    /www/website/public_html/wp-content/plugins/ewww-image-optimizer/binaries/pngquant-fbsd
    /www/website/public_html/wp-content/plugins/ewww-image-optimizer/binaries/cwebp-fbsd
    /www/website/public_html/wp-content/ewww/jpegtran
    /www/website/public_html/wp-content/ewww/optipng
    /www/website/public_html/wp-content/ewww/gifsicle
    /www/website/public_html/wp-content/ewww/pngquant
    /www/website/public_html/wp-content/ewww/cwebp
    ewww_image_optimizer_skip_tools()
    enabled: jpegtran
    enabled: optipng
    enabled: gifsicle
    =========================================================

    Am I doing something wrong?

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

    (@nosilver4u)

    Can you post your entire debug information from the settings page please?

    Thread Starter darkcobalt

    (@darkcobalt)

    Thanks for the reply, here are the full debug log. Looking at it more closely it looks to check and find that exec is disabled, along with other shell commands. My guess is it needs those to work? Which specific commands does it need?

    =========================

    catherine
    EWWW IO version: 302.0
    WP version: 4.5.2
    PHP version: 50310
    ewww_image_optimizer_gallery_support()
    ewww_image_optimizer_admin_init()
    ewww_image_optimizer_cloud_init()
    ewww_image_optimizer_upgrade()
    ewww_image_optimizer_exec_init()
    ewww_image_optimizer_cron_setup()
    ewww_image_optimizer_tool_init()
    ewww_image_optimizer_install_tools()
    Checking/Installing tools in /www/website/public_html/wp-content/ewww/
    wp-content/ewww permissions: 0775
    ewww_image_optimizer_install_paths()
    CPU architecture: amd64
    generated paths:
    /www/website/public_html/wp-content/plugins/ewww-image-optimizer/binaries/jpegtran-fbsd
    /www/website/public_html/wp-content/plugins/ewww-image-optimizer/binaries/optipng-fbsd
    /www/website/public_html/wp-content/plugins/ewww-image-optimizer/binaries/gifsicle-fbsd
    /www/website/public_html/wp-content/plugins/ewww-image-optimizer/binaries/pngquant-fbsd
    /www/website/public_html/wp-content/plugins/ewww-image-optimizer/binaries/cwebp-fbsd
    /www/website/public_html/wp-content/ewww/jpegtran
    /www/website/public_html/wp-content/ewww/optipng
    /www/website/public_html/wp-content/ewww/gifsicle
    /www/website/public_html/wp-content/ewww/pngquant
    /www/website/public_html/wp-content/ewww/cwebp
    ewww_image_optimizer_skip_tools()
    enabled: jpegtran
    enabled: optipng
    enabled: gifsicle
    Linux/UNIX style OS, checking permissions
    ewww_image_optimizer_check_permissions()
    permissions for /www/website/public_html/wp-content/ewww/jpegtran: 0755
    permissions ok
    ewww_image_optimizer_check_permissions()
    permissions for /www/website/public_html/wp-content/ewww/gifsicle: 0755
    permissions ok
    ewww_image_optimizer_check_permissions()
    permissions for /www/website/public_html/wp-content/ewww/optipng: 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: escapeshellcmd,exec,ini_alter,parse_ini_file,passthru,pcntl_exec,popen,proc_nice,proc_terminate,show_source,shell_exec,symlink,system
    suhosin_blacklist:
    exec seems to be disabled
    ewww_image_optimizer_disable_tools()
    ewww_image_optimizer_options()
    ABSPATH: /www/website/public_html/
    WP_CONTENT_DIR: /www/website/public_html/wp-content
    home url: https://www.talkandroid.com
    site url: https://www.talkandroid.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:
    ewww_image_optimizer_skip_tools()
    enabled: jpegtran
    enabled: optipng
    enabled: gifsicle
    remove metadata: on
    jpg level: 10
    png level: 10
    gif level: 10
    pdf level: 0
    bulk delay: 0
    optipng level: 2
    pngout disabled: yes
    pngout level: 2
    ewww_image_optimizer_jpg_quality()
    parallel optimization: off
    background optimization: on
    scheduled optimization: off
    include media library: off
    max media dimensions: 0 x 0
    max other dimensions: 0 x 0
    resize existing images: off
    ewww_image_optimizer_get_image_sizes()
    Array ( [0] => thumbnail [1] => medium [2] => medium_large [3] => large )
    Array ( [thumbnail] => Array ( [width] => 150 [height] => 150 ) [medium] => Array ( [width] => 450 [height] => 500 ) [medium_large] => Array ( [width] => 768 [height] => 9999 ) [large] => Array ( [width] => 850 [height] => 600 ) )
    disabled resizes:
    thumbnail: optimization=enabled creation=enabled
    medium: optimization=enabled creation=enabled
    medium_large: optimization=enabled creation=enabled
    large: optimization=enabled creation=enabled
    skip images smaller than: 0 bytes
    skip PNG images larger than: 0 bytes
    exclude originals from lossy: off
    exclude originals from metadata removal: off
    use system binaries: no
    delete originals: off
    jpg2png: off
    ewww_image_optimizer_jpg_background()
    background: 000000
    ewww_image_optimizer_jpg_background()
    background: 000000
    png2jpg: off
    gif2png: off
    webp conversion: off
    forced webp: off
    alt webp rewriting: off
    max_execution_time: 30
    ewww_image_optimizer_stl_check()
    ewww_image_optimizer_safemode_check()
    safe_mode =
    disable_functions = escapeshellcmd,exec,ini_alter,parse_ini_file,passthru,pcntl_exec,popen,proc_nice,proc_terminate,show_source,shell_exec,symlink,system

    =========================

    Plugin Author nosilver4u

    (@nosilver4u)

    Yeah, that would do it. Are you not seeing a big warning across the top of the setting page about the exec() function being disabled?

    Thread Starter darkcobalt

    (@darkcobalt)

    This is what the top of the settings page looks like:

    View post on imgur.com

    I’ll see what we can do about exec.

    Plugin Author nosilver4u

    (@nosilver4u)

    Just replicated with no warning on my test setup. Gotta figure that one out, so folks know why things aren’t working right.
    But yeah, the plugin requires exec() unless you are using the API.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Nothing seems to optimize, debug log shows “metadata is missing, requeueing”’ is closed to new replies.