adrelanos
Forum Replies Created
-
Forum: Plugins
In reply to: [EWWW Image Optimizer] PHP Notice: Undefined index: HTTP_X_FORWARDED_PROTOYes.
[Wed Apr 08 15:32:08.252679 2015] [:error] [pid 16752] [client 127.0.0.1:58864] PHP Fatal error: 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 954, referer: https://www.whonix.org/blog/wp-admin/upload.php?page=ewww-image-optimizer-bul
Forum: Plugins
In reply to: [EWWW Image Optimizer] PHP Notice: Undefined index: HTTP_X_FORWARDED_PROTOOkay. Just got that update. Same issues as earlier.
Forum: Plugins
In reply to: [EWWW Image Optimizer] PHP Notice: Undefined index: HTTP_X_FORWARDED_PROTOI don’t really know how to fetch a release tarball, install from the developers tab. So I am waiting for next release.
Forum: Plugins
In reply to: [EWWW Image Optimizer] PHP Notice: Undefined index: HTTP_X_FORWARDED_PROTOForum: Plugins
In reply to: [EWWW Image Optimizer] PHP Notice: Undefined index: HTTP_X_FORWARDED_PROTOFortunately, 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?
Forum: Plugins
In reply to: [EWWW Image Optimizer] PHP Notice: Undefined index: HTTP_X_FORWARDED_PROTOTried this in https://www.ads-software.com/support/topic/ewww-as-a-separate-php-tool-to-be-run-on-whole-whm-account?replies=20#post-6691371 – unfortunately, it didn’t solve this.
Forum: Plugins
In reply to: [EWWW Image Optimizer] PHP Notice: Undefined index: HTTP_X_FORWARDED_PROTOAs 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#
Forum: Plugins
In reply to: [EWWW Image Optimizer] PHP Notice: Undefined index: HTTP_X_FORWARDED_PROTOWeb, 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#
Forum: Plugins
In reply to: [EWWW Image Optimizer] PHP Notice: Undefined index: HTTP_X_FORWARDED_PROTORoot doesn’t make a difference.
How do I enable debugging?
Forum: Plugins
In reply to: [W3 Total Cache] Returns wrong last-modified headerFor reference, reported this bug here:
https://www.ads-software.com/support/topic/w3-total-cache-last-modified-header-broken?replies=1Forum: Plugins
In reply to: [EWWW Image Optimizer] PHP Notice: Undefined index: HTTP_X_FORWARDED_PROTOYes. Isn’t finding the extra images.
Forum: Plugins
In reply to: [EWWW Image Optimizer] PHP Notice: Undefined index: HTTP_X_FORWARDED_PROTOThe 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.
Is it still stopping after 7 seconds or so, or does it go longer now?
Still stopping after 7 seconds.
You really should be running it via wp-cli, which will remove the timeouts, and make increasing the memory limit less risky (you generally have separate php.ini files for CLI and apache)
I am willing to try. Can you tell me please the complete wp-cli command line command I have to run?
I’ve set php…
max_execution_time = 120 memory_limit = 1024M
But that didn’t help. There is more than 8 GB of free RAM. What memory limit could it be?
The environment should be fine. Debian jessie on a vserver. We should be able to do practically everything.
Symlink creation works when dropping the leading slash.
sudo -u www-data ln -sf /var/www/forum/ /var/www/blog/forum_images
sudo -u www-data ln -sf /var/www/w/ /var/www/blog/wiki_images
The folder is nicely filled up.
ls -la /var/www/blog/wiki_images
lrwxrwxrwx 1 www-data www-data 11 Mar 14 17:41 /var/www/blog/wiki_images -> /var/www/w/
ls -la /var/www/blog/wiki_images/images/0/00/Kde0_5.png
-rwxr-x--- 1 www-data www-data 362556 Nov 29 20:55 /var/www/blog/wiki_images/images/0/00/Kde0_5.png
Now, when trying to optimize, I am getting:
Operation timed out, you may need to increase the max_execution_time for PHP
Increased max_execution_time from 30 to 60. But my stopwatch says, it already shows this message after ~7 seconds. Any idea how to fix that one?