Uploading Images Crashes Site
-
Running 2.0 and adding images completely crashes my site. What’s going on?
-
Turn on debugging in wp-config.php, and/or check your server error logs. First thing I would try is increasing your memory limit.
Memory limit is 128MB, should be sufficient, but let me know.
When uploading, this processes hang (crashes site) and had to be killed manually:
20252 /ramdisk/php/54/bin/php54 /directory/directory/public_html/directory/wp-admin/async-upload.php
sh -c /directory/directory/public_html/directory/wp-content/ewww/jpegtran -v /directory/directory/public_html/directory/wp-content/plugins/ewww-image-optimizer/sample.jpg 2>&1
sh -c nice 2>&1
This happens when uploading images and automatically crunching. When uploading without EWW, everything works. When crunching from within the Media Libary, things seem to work fine.
Please turn on debuggin for EWWW IO, and paste the yellow section that apppears at the bottom of the settings screen (via pastebin.com preferably)
Debug Log directory EWWW IO version: 201 WP version: 3.8.4 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 /home4/directory/public_html/directory/wp-content/ewww/ wp-content/ewww permissions: 0755 ewww_image_optimizer_install_paths() CPU architecture: x86_64 generated paths: /home4/directory/public_html/directory/wp-content/plugins/ewww-image-optimizer/jpegtran-linux64 /home4/directory/public_html/directory/wp-content/plugins/ewww-image-optimizer/optipng-linux /home4/directory/public_html/directory/wp-content/plugins/ewww-image-optimizer/gifsicle-linux /home4/directory/public_html/directory/wp-content/plugins/ewww-image-optimizer/pngquant-linux /home4/directory/public_html/directory/wp-content/plugins/ewww-image-optimizer/cwebp-linux864 /home4/directory/public_html/directory/wp-content/ewww/jpegtran /home4/directory/public_html/directory/wp-content/ewww/optipng /home4/directory/public_html/directory/wp-content/ewww/gifsicle /home4/directory/public_html/directory/wp-content/ewww/pngquant /home4/directory/public_html/directory/wp-content/ewww/cwebp 64-bit linux detected while installing tools ewww_image_optimizer_md5check() /home4/directory/public_html/directory/wp-content/ewww/jpegtran-alt: 8e4a09bb04ba001f5f16651ae8594f7f ewww_image_optimizer_md5check() /home4/directory/public_html/directory/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_settings_script() images to check for savings: 18606 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 /home4/directory/public_html/directory/wp-content/ewww/jpegtran, testing... ewww_image_optimizer_md5check() /home4/directory/public_html/directory/wp-content/ewww/jpegtran: 47c39feae0712f2996c61e5ae639b706 ewww_image_optimizer_mimetype() testing mimetype: /home4/directory/public_html/directory/wp-content/ewww/jpegtran finfo_file: application/x-executable ewww_image_optimizer_tool_found() testing case: j at /home4/directory/public_html/directory/wp-content/ewww/jpegtran /home4/directory/public_html/directory/wp-content/ewww/jpegtran: Independent JPEG Group's JPEGTRAN, version 9a 19-Jan-2014 optimizer found found /home4/directory/public_html/directory/wp-content/ewww/optipng, testing... ewww_image_optimizer_md5check() /home4/directory/public_html/directory/wp-content/ewww/optipng: 31698da4f5ca00b35e910c77acae65bb ewww_image_optimizer_mimetype() testing mimetype: /home4/directory/public_html/directory/wp-content/ewww/optipng finfo_file: application/x-executable ewww_image_optimizer_tool_found() testing case: o at /home4/directory/public_html/directory/wp-content/ewww/optipng /home4/directory/public_html/directory/wp-content/ewww/optipng: OptiPNG version 0.7.5 optimizer found found /home4/directory/public_html/directory/wp-content/ewww/gifsicle, testing... ewww_image_optimizer_md5check() /home4/directory/public_html/directory/wp-content/ewww/gifsicle: 58f42368e86a4910d101d37fee748409 ewww_image_optimizer_mimetype() testing mimetype: /home4/directory/public_html/directory/wp-content/ewww/gifsicle finfo_file: application/x-executable ewww_image_optimizer_tool_found() testing case: g at /home4/directory/public_html/directory/wp-content/ewww/gifsicle /home4/directory/public_html/directory/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 /home4/directory/public_html/directory/wp-content/ewww/pngquant, testing... ewww_image_optimizer_md5check() /home4/directory/public_html/directory/wp-content/ewww/pngquant: 46bb066d676bf94cbfd78bdc0227e74e ewww_image_optimizer_mimetype() testing mimetype: /home4/directory/public_html/directory/wp-content/ewww/pngquant finfo_file: application/x-executable ewww_image_optimizer_tool_found() testing case: q at /home4/directory/public_html/directory/wp-content/ewww/pngquant /home4/directory/public_html/directory/wp-content/ewww/pngquant: 2.3.0 (July 2014) optimizer found found /home4/directory/public_html/directory/wp-content/ewww/cwebp, testing... ewww_image_optimizer_md5check() /home4/directory/public_html/directory/wp-content/ewww/cwebp: 9b6f13ce6ee5a028cbd2765e2d53a1d7 ewww_image_optimizer_mimetype() testing mimetype: /home4/directory/public_html/directory/wp-content/ewww/cwebp finfo_file: application/x-executable ewww_image_optimizer_tool_found() testing case: w at /home4/directory/public_html/directory/wp-content/ewww/cwebp /home4/directory/public_html/directory/wp-content/ewww/cwebp: /home4/directory/public_html/directory/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 /home4/directory/public_html/directory/wp-content/ewww/cwebp-custom, testing... ewww_image_optimizer_mimetype() testing mimetype: /home4/directory/public_html/directory/wp-content/ewww/cwebp-custom finfo_file: application/x-executable ewww_image_optimizer_tool_found() testing case: w at /home4/directory/public_html/directory/wp-content/ewww/cwebp-custom /home4/directory/public_html/directory/wp-content/ewww/cwebp-custom: 0.4.1 optimizer found using: /home4/directory/public_html/directory/wp-content/ewww/jpegtran using: /home4/directory/public_html/directory/wp-content/ewww/optipng using: /home4/directory/public_html/directory/wp-content/ewww/gifsicle using: /home4/directory/public_html/directory/wp-content/ewww/pngquant using: /home4/directory/public_html/directory/wp-content/ewww/cwebp-custom ewww_image_optimizer_options() ewww_image_optimizer_install_paths() CPU architecture: x86_64 generated paths: /home4/directory/public_html/directory/wp-content/plugins/ewww-image-optimizer/jpegtran-linux64 /home4/directory/public_html/directory/wp-content/plugins/ewww-image-optimizer/optipng-linux /home4/directory/public_html/directory/wp-content/plugins/ewww-image-optimizer/gifsicle-linux /home4/directory/public_html/directory/wp-content/plugins/ewww-image-optimizer/pngquant-linux /home4/directory/public_html/directory/wp-content/plugins/ewww-image-optimizer/cwebp-linux864 /home4/directory/public_html/directory/wp-content/ewww/jpegtran /home4/directory/public_html/directory/wp-content/ewww/optipng /home4/directory/public_html/directory/wp-content/ewww/gifsicle /home4/directory/public_html/directory/wp-content/ewww/pngquant /home4/directory/public_html/directory/wp-content/ewww/cwebp ewww_image_optimizer_tool_found() testing case: j at /home4/directory/public_html/directory/wp-content/ewww/jpegtran /home4/directory/public_html/directory/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 /home4/directory/public_html/directory/wp-content/ewww/optipng /home4/directory/public_html/directory/wp-content/ewww/optipng: OptiPNG version 0.7.5 optimizer found ewww_image_optimizer_tool_found() testing case: g at /home4/directory/public_html/directory/wp-content/ewww/gifsicle /home4/directory/public_html/directory/wp-content/ewww/gifsicle: LCDF Gifsicle 1.84 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: 1 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_tool_found() testing case: i at convert convert: Version: ImageMagick 6.7.9-10 2012-10-05 Q16 https://www.imagemagick.org imagemagick found ewww_image_optimizer_tool_found() testing case: n at nice nice: 0 nice found ewww_image_optimizer_jpg_background() ewww_image_optimizer_jpg_background() ewww_image_optimizer_jpg_quality()
Yeah, I would increase the memory limit to 256 if you can. You can always lower it a bit once we confirm whether or not that is actually the issue. Depending on the plugins enabled, and various other factors, I’ve seen folks needing over 500MB before they ever enabled EWWW IO. I’m not 100% sure it really IS a memory issue, but I don’t know what else to have you try at this point, since everything runs fine on the settings page.
If the memory limit doesn’t change anything, please list what settings you are using for EWWW IO.
I increased the memory size but nothing changed. The site still crashes when uploading even a single image.
Here’s the process that hangs:
sh -c /home4/gearguid/public_html/pacificrimvolleyball/wp-content/ewww/jpegtran-custom -v /home4/gearguid/public_html/pacificrimvolleyball/wp-content/plugins/ewww-image-optimizer/sample.jpg 2>&1
Also go this error in my log:
PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home4/gearguid/public_html/pacificrimvolleyball/wp-includes/class-wp-image-editor-imagick.php on line 327
Aha, now there is a useful error that makes sense to me. I suspect you are having trouble with a PNG image, which can timeout quite easily, especially if you have a bunch of resizes being created on your site. Upload the image without EWWW, then turn on EWWW IO, and turn on debugging on the plugin options page. Browse over to the media library, switch to list view, and post the metadata shown in the Image Optimizer column back here.
Here’s what I get. I’m only posting jpg btw.
Array ( [width] => 1024 [height] => 768 [file] => 2014/09/2014-Qualifier-1821.jpg [sizes] => Array ( [thumbnail] => Array ( [file] => 2014-Qualifier-1821-150x112.jpg [width] => 150 [height] => 112 [mime-type] => image/jpeg [ewww_image_optimizer] => Reduced by 62.4% (45.0 kB) ) [medium] => Array ( [file] => 2014-Qualifier-1821-300x225.jpg [width] => 300 [height] => 225 [mime-type] => image/jpeg [ewww_image_optimizer] => Reduced by 36.4% (53.4 kB) ) [blog-large] => Array ( [file] => 2014-Qualifier-1821-669x272.jpg [width] => 669 [height] => 272 [mime-type] => image/jpeg [ewww_image_optimizer] => Reduced by 24.7% (64.6 kB) ) [blog-medium] => Array ( [file] => 2014-Qualifier-1821-320x202.jpg [width] => 320 [height] => 202 [mime-type] => image/jpeg [ewww_image_optimizer] => Reduced by 36.8% (53.3 kB) ) [tabs-img] => Array ( [file] => 2014-Qualifier-1821-52x50.jpg [width] => 52 [height] => 50 [mime-type] => image/jpeg [ewww_image_optimizer] => Reduced by 88.2% (41.8 kB) ) [related-img] => Array ( [file] => 2014-Qualifier-1821-180x138.jpg [width] => 180 [height] => 138 [mime-type] => image/jpeg [ewww_image_optimizer] => Reduced by 54.1% (46.5 kB) ) [portfolio-one] => Array ( [file] => 2014-Qualifier-1821-540x272.jpg [width] => 540 [height] => 272 [mime-type] => image/jpeg [ewww_image_optimizer] => Reduced by 26.5% (62.7 kB) ) [portfolio-two] => Array ( [file] => 2014-Qualifier-1821-460x295.jpg [width] => 460 [height] => 295 [mime-type] => image/jpeg [ewww_image_optimizer] => Reduced by 27.2% (62.2 kB) ) [portfolio-three] => Array ( [file] => 2014-Qualifier-1821-300x214.jpg [width] => 300 [height] => 214 [mime-type] => image/jpeg [ewww_image_optimizer] => Reduced by 37.2% (53.0 kB) ) [portfolio-four] => Array ( [file] => 2014-Qualifier-1821-220x161.jpg [width] => 220 [height] => 161 [mime-type] => image/jpeg [ewww_image_optimizer] => Reduced by 47.6% (48.6 kB) ) [portfolio-full] => Array ( [file] => 2014-Qualifier-1821-940x400.jpg [width] => 940 [height] => 400 [mime-type] => image/jpeg [ewww_image_optimizer] => Reduced by 19.0% (81.1 kB) ) [recent-posts] => Array ( [file] => 2014-Qualifier-1821-700x441.jpg [width] => 700 [height] => 441 [mime-type] => image/jpeg [ewww_image_optimizer] => Reduced by 19.6% (78.5 kB) ) [recent-works-thumbnail] => Array ( [file] => 2014-Qualifier-1821-66x66.jpg [width] => 66 [height] => 66 [mime-type] => image/jpeg [ewww_image_optimizer] => Reduced by 82.8% (42.2 kB) ) [shop_thumbnail] => Array ( [file] => 2014-Qualifier-1821-120x90.jpg [width] => 120 [height] => 90 [mime-type] => image/jpeg [ewww_image_optimizer] => Reduced by 70.1% (43.5 kB) ) [shop_catalog] => Array ( [file] => 2014-Qualifier-1821-500x375.jpg [width] => 500 [height] => 375 [mime-type] => image/jpeg [ewww_image_optimizer] => Reduced by 23.7% (67.1 kB) ) [shop_single] => Array ( [file] => 2014-Qualifier-1821-500x375.jpg [width] => 500 [height] => 375 [mime-type] => image/jpeg [ewww_image_optimizer] => No savings ) ) [image_meta] => Array ( [aperture] => 0 [credit] => [camera] => [caption] => [created_timestamp] => 0 [copyright] => [focal_length] => 0 [iso] => 0 [shutter_speed] => 0 [title] => ) [ewww_image_optimizer] => Reduced by 24.5% (42.5 kB) )
Slightly surprising that you’re running into this with JPGs, but not completely, since it has to generate and optimize 16 resizes per image. Try increasing the max_execution_time in your php configuration file.
Increased the max_execution_time to 120 from 30. Site crashes every time I upload. Don’t know what you changed in this latest set of releases, but it’s really causing an issue for me. Never had this problem before, never had to adjust php.ini variables, etc. Always end up having to force kill the upload processes and ones like that below to get my site back online.
sh -c /usr/bin/jpegtran -v /home4/directory/public_html/wp-content/plugins/ewww-image-optimizer/sample.jpg 2>&1
Any further advice?
Also getting this error:
PHP Warning: exec(): Unable to fork [/usr/syno/bin/jpegtran -v /home4/directory/public_html/wp-content/plugins/ewww-image-optimizer/sample.jpg 2>&1] in /home4/directory/public_html/wp-content/plugins/ewww-image-optimizer/ewww-image-optimizer.php on line 938
Just so you are aware, a Warning is NOT an error technically speaking. It should not cause php to hang or stop. Do you get any other lines in your error.log file that say ‘error’?
Sure. Here’s one.
WordPress database error BIGINT UNSIGNED value is out of range in ‘(
gearguid_gearguide2012
.wp_ewwwio_images
.orig_size
–gearguid_gearguide2012
.wp_ewwwio_images
.image_size
)’ for query SELECT orig_size-image_size FROM wp_ewwwio_images LIMIT 0, 1000 made by do_action(‘wp_ajax_ewww_savings_loop’), call_user_func_array, ewww_image_optimizer_savings_loopHmm, that one is from the settings page, and is only called via ajax, so it wouldn’t crash the uploads, but it makes me wonder if there is something related going on with the uploads. See if you can find any other errors from right when you do the upload.
- The topic ‘Uploading Images Crashes Site’ is closed to new replies.