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

    (@nosilver4u)

    usually a Notice is not a problem. Try running without the ‘; echo $?’ portion and see what happens.

    Thread Starter adrelanos

    (@adrelanos)

    The same happens.

    sudo -u www-data wp ewwwio optimize all

    PHP Notice:  Undefined index: HTTP_X_FORWARDED_PROTO in phar:///usr/local/bin/wp/php/wp-cli.php(23) : eval()'d code on line 7
    Optimizing all with a 0 second pause between images.
    Scanning, this could take a while
    47 images in the Media Library have been selected (0 unoptimized), with 288 resizes (0 unoptimized).

    I.e. it doesn’t find any more images than in the wordpress folder.

    Plugin Author nosilver4u

    (@nosilver4u)

    Ok, I think I misunderstood the problem. It isn’t necessarily that it isn’t working, but it still isn’t finding images in the folder you symlinked and entered on Folders to Optimize, correct?

    Thread Starter adrelanos

    (@adrelanos)

    Yes. Isn’t finding the extra images.

    Plugin Author nosilver4u

    (@nosilver4u)

    Perhaps turn on debugging, and see what shows up in ewww-image-optimizer/debug.log when you run it from wp-cli

    Plugin Author nosilver4u

    (@nosilver4u)

    If you can, you might also try running it as root to see if that makes any difference.

    Plugin Author nosilver4u

    (@nosilver4u)

    did you ever get any further on this?

    Thread Starter adrelanos

    (@adrelanos)

    Root doesn’t make a difference.

    How do I enable debugging?

    Plugin Author nosilver4u

    (@nosilver4u)

    The very first option on the EWWW IO settings page turns on debugging.

    Thread Starter adrelanos

    (@adrelanos)

    Web, still:

    Operation timed out, you may need to increase the max_execution_time for PHP

    Debug Log
    www-data
    EWWW IO version: 222
    WP version: 4.1.1
    ewww_image_optimizer_admin_init()
    ewww_image_optimizer_init()
    ewww_image_optimizer_cloud_init()
    ewww_image_optimizer_exec_init()
    ewww_image_optimizer_install_tools()
    Checking/Installing tools in /var/www/blog/wp-content/ewww/
    wp-content/ewww permissions: 0755
    ewww_image_optimizer_install_paths()
    CPU architecture: x86_64
    generated paths:
    /var/www/blog/wp-content/plugins/ewww-image-optimizer/jpegtran-linux64
    /var/www/blog/wp-content/plugins/ewww-image-optimizer/optipng-linux
    /var/www/blog/wp-content/plugins/ewww-image-optimizer/gifsicle-linux
    /var/www/blog/wp-content/plugins/ewww-image-optimizer/pngquant-linux
    /var/www/blog/wp-content/plugins/ewww-image-optimizer/cwebp-linux864
    /var/www/blog/wp-content/ewww/jpegtran
    /var/www/blog/wp-content/ewww/optipng
    /var/www/blog/wp-content/ewww/gifsicle
    /var/www/blog/wp-content/ewww/pngquant
    /var/www/blog/wp-content/ewww/cwebp
    64-bit linux detected while installing tools
    ewww_image_optimizer_md5check()
    /var/www/blog/wp-content/ewww/jpegtran-alt: 8e4a09bb04ba001f5f16651ae8594f7f
    ewww_image_optimizer_md5check()
    /var/www/blog/wp-content/ewww/cwebp-alt: eb3a5b6eae54140269ed6dcf6f792d37
    Linux/UNIX style OS, checking permissions
    jpegtran permissions: 0755
    gifsicle permissions: 0755
    optipng permissions: 0755
    pngquant permissions: 0755
    webp permissions: 0755
    ewww_image_optimizer_notice_utils()
    ewww_image_optimizer_exec_check()
    disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
    suhosin_blacklist =
    ewww_image_optimizer_safemode_check()
    safe_mode =
    ewww_image_optimizer_path_check()
    found /var/www/blog/wp-content/ewww/jpegtran, testing...
    ewww_image_optimizer_md5check()
    /var/www/blog/wp-content/ewww/jpegtran: 47c39feae0712f2996c61e5ae639b706
    ewww_image_optimizer_mimetype()
    testing mimetype: /var/www/blog/wp-content/ewww/jpegtran
    finfo_file: application/x-executable
    ewww_image_optimizer_tool_found()
    testing case: j at /var/www/blog/wp-content/ewww/jpegtran
    /var/www/blog/wp-content/ewww/jpegtran: Independent JPEG Group's JPEGTRAN, version 9a 19-Jan-2014
    optimizer found
    found /var/www/blog/wp-content/ewww/optipng, testing...
    ewww_image_optimizer_md5check()
    /var/www/blog/wp-content/ewww/optipng: 31698da4f5ca00b35e910c77acae65bb
    ewww_image_optimizer_mimetype()
    testing mimetype: /var/www/blog/wp-content/ewww/optipng
    finfo_file: application/x-executable
    ewww_image_optimizer_tool_found()
    testing case: o at /var/www/blog/wp-content/ewww/optipng
    /var/www/blog/wp-content/ewww/optipng: OptiPNG version 0.7.5
    optimizer found
    found /var/www/blog/wp-content/ewww/gifsicle, testing...
    ewww_image_optimizer_md5check()
    /var/www/blog/wp-content/ewww/gifsicle: 58f42368e86a4910d101d37fee748409
    ewww_image_optimizer_mimetype()
    testing mimetype: /var/www/blog/wp-content/ewww/gifsicle
    finfo_file: application/x-executable
    ewww_image_optimizer_tool_found()
    testing case: g at /var/www/blog/wp-content/ewww/gifsicle
    /var/www/blog/wp-content/ewww/gifsicle: LCDF Gifsicle 1.84
    optimizer found
    ewww_image_optimizer_tool_found()
    testing case: p at pngout
    pngout: sh: pngout: command not found
    tool not found
    ewww_image_optimizer_tool_found()
    testing case: p at /usr/bin/pngout
    /usr/bin/pngout: sh: /usr/bin/pngout: No such file or directory
    tool not found
    ewww_image_optimizer_tool_found()
    testing case: p at /usr/local/bin/pngout
    /usr/local/bin/pngout: sh: /usr/local/bin/pngout: No such file or directory
    tool not found
    ewww_image_optimizer_tool_found()
    testing case: p at /usr/gnu/bin/pngout
    /usr/gnu/bin/pngout: sh: /usr/gnu/bin/pngout: No such file or directory
    tool not found
    ewww_image_optimizer_tool_found()
    testing case: p at /usr/syno/bin/pngout
    /usr/syno/bin/pngout: sh: /usr/syno/bin/pngout: No such file or directory
    tool not found
    ewww_image_optimizer_tool_found()
    testing case: p at pngout-static
    pngout-static: sh: pngout-static: command not found
    tool not found
    ewww_image_optimizer_tool_found()
    testing case: p at /usr/bin/pngout-static
    /usr/bin/pngout-static: sh: /usr/bin/pngout-static: No such file or directory
    tool not found
    ewww_image_optimizer_tool_found()
    testing case: p at /usr/local/bin/pngout-static
    /usr/local/bin/pngout-static: sh: /usr/local/bin/pngout-static: No such file or directory
    tool not found
    ewww_image_optimizer_tool_found()
    testing case: p at /usr/gnu/bin/pngout-static
    /usr/gnu/bin/pngout-static: sh: /usr/gnu/bin/pngout-static: No such file or directory
    tool not found
    ewww_image_optimizer_tool_found()
    testing case: p at /usr/syno/bin/pngout-static
    /usr/syno/bin/pngout-static: sh: /usr/syno/bin/pngout-static: No such file or directory
    tool not found
    found /var/www/blog/wp-content/ewww/pngquant, testing...
    ewww_image_optimizer_md5check()
    /var/www/blog/wp-content/ewww/pngquant: 46bb066d676bf94cbfd78bdc0227e74e
    ewww_image_optimizer_mimetype()
    testing mimetype: /var/www/blog/wp-content/ewww/pngquant
    finfo_file: application/x-executable
    ewww_image_optimizer_tool_found()
    testing case: q at /var/www/blog/wp-content/ewww/pngquant
    /var/www/blog/wp-content/ewww/pngquant: 2.3.0 (July 2014)
    optimizer found
    found /var/www/blog/wp-content/ewww/cwebp, testing...
    ewww_image_optimizer_md5check()
    /var/www/blog/wp-content/ewww/cwebp: 9b6f13ce6ee5a028cbd2765e2d53a1d7
    ewww_image_optimizer_mimetype()
    testing mimetype: /var/www/blog/wp-content/ewww/cwebp
    finfo_file: application/x-executable
    ewww_image_optimizer_tool_found()
    testing case: w at /var/www/blog/wp-content/ewww/cwebp
    /var/www/blog/wp-content/ewww/cwebp: /var/www/blog/wp-content/ewww/cwebp: error while loading shared libraries: libjpeg.so.8: cannot open shared object file: No such file or directory
    tool not found
    found /var/www/blog/wp-content/ewww/cwebp-alt, testing...
    ewww_image_optimizer_mimetype()
    testing mimetype: /var/www/blog/wp-content/ewww/cwebp-alt
    finfo_file: application/x-executable
    ewww_image_optimizer_tool_found()
    testing case: w at /var/www/blog/wp-content/ewww/cwebp-alt
    /var/www/blog/wp-content/ewww/cwebp-alt: 0.4.1
    optimizer found
    using: /var/www/blog/wp-content/ewww/jpegtran
    using: /var/www/blog/wp-content/ewww/optipng
    using: /var/www/blog/wp-content/ewww/gifsicle
    using: /var/www/blog/wp-content/ewww/pngquant
    using: /var/www/blog/wp-content/ewww/cwebp-alt
    ewww_image_optimizer_settings_script()
    ewww_image_optimizer_bulk_preview()
    ewww_image_optimizer_count_optmized()
    scanning for media
    fetched 47 attachments starting at 0
    counting images took 0.001431941986084 seconds
    found 47 fullsize (0 unoptimized), and 288 resizes (0 unoptimized)
    ewww_image_optimizer_aux_images()

    And also tested cli with –debug.

    root@whonix:/var/www/blog# sudo -u www-data wp ewwwio optimize --debug all
    PHP Notice:  Undefined index: HTTP_X_FORWARDED_PROTO in phar:///usr/local/bin/wp/php/wp-cli.php(23) : eval()'d code on line 7
    PHP Notice:  Undefined index: SERVER_NAME in /var/www/blog/wp-content/plugins/post2email/post2email.php on line 47
    Notice: Undefined index: SERVER_NAME in /var/www/blog/wp-content/plugins/post2email/post2email.php on line 47
    Optimizing all with a 0 second pause between images.
    Scanning, this could take a while
    47 images in the Media Library have been selected (0 unoptimized), with 288 resizes (0 unoptimized).
    root@whonix:/var/www/blog#
    Thread Starter adrelanos

    (@adrelanos)

    As root, getting Segmentation fault.

    root@whonix:/var/www/blog# wp ewwwio optimize --debug all --allow-root
    PHP Notice:  Undefined index: HTTP_X_FORWARDED_PROTO in phar:///usr/local/bin/wp/php/wp-cli.php(23) : eval()'d code on line 7
    PHP Notice:  Undefined index: SERVER_NAME in /var/www/blog/wp-content/plugins/post2email/post2email.php on line 47
    Notice: Undefined index: SERVER_NAME in /var/www/blog/wp-content/plugins/post2email/post2email.php on line 47
    Optimizing all with a 0 second pause between images.
    Scanning, this could take a while
    47 images in the Media Library have been selected (0 unoptimized), with 288 resizes (0 unoptimized).
    Segmentation fault
    root@whonix:/var/www/blog#
    Plugin Author nosilver4u

    (@nosilver4u)

    check the memory limit for php, it might need bumped up just a bit.

    Thread Starter adrelanos

    (@adrelanos)

    Plugin Author nosilver4u

    (@nosilver4u)

    do you have access to your server error logs? They should indicate why it is failing.

    Thread Starter adrelanos

    (@adrelanos)

    Fortunately, yes.

    Allowed memory size of 134217728 bytes exhausted (tried to allocate 4294961842 bytes) in /var/www/blog/wp-content/plugins/ewww-image-optimizer/ewww-image-optimizer.php on line 906, referer: https://www.whonix.org/blog/wp-admin/upload.php?page=ewww-image-optimizer-bulk

    That’s ~4 GB.

    Well, I raise set the php limit up to that, but I am not sure that would be sane and I am wondering, if you could create an update, that would work with common php memory limits?

Viewing 15 replies - 1 through 15 (of 58 total)
  • The topic ‘PHP Notice: Undefined index: HTTP_X_FORWARDED_PROTO’ is closed to new replies.