• Hi all
    Site was working perfectly last night. did some updates then updated to 4.3. Today I get errors when uploading images:
    Maximum execution time of 30 seconds exceeded in /home/content/**/*****/html/wp-includes/class-wp-image-editor-imagick.php on line 294
    Will give me an error when uploading via media manager or from pages. Images do seem to upload though, in spite of the error message, but without a thumbnail, and when I try to add them to pages they don’t display.
    HELP!!! Major crunch time fo this site.

Viewing 15 replies - 1 through 15 (of 15 total)
  • Seems to be the same here https://www.ads-software.com/support/topic/media-library-not-showing-thumbnails-1?replies=4

    I seem to have the same problem. I sshed in and tried to fix permissions, but all seems to be fine. The uploaded image is there where it should be and also the downscaled versions where created. Still, the media library does not show the image but lists the name. When I click the name in the media library I even see the image but if I trie tomodify` it, it fails and tells me that there is no image.

    I even can add it to a page via the visual editor, but it does not show online.

    Thread Starter simplytaty

    (@simplytaty)

    Hi gue-at
    Would be, but haven’t moved or changed anything except update to 4.3.
    Old content is fine, but uploading new pictures is an issue. I have added
    set_time_limit(60);
    to wp-config.php
    and now I can upload one picture but try another one (both below 2mb) and I get:
    HTTP error followed by

    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    Please contact the server administrator and inform them of the time the error occurred, and the actions you performed just before this error.
    More information about this error may be available in the server error log.

    Sorry my quotes messed up my “postedit”. I also did only an update to 4.3. and nothing else. I will try the set_time_limit(60); fix.

    Tried it, does not work for me. Also another thing I just noticed. When I try to upload an image. It fails and adds the entry twice into the Library with the same name except the filename gets added a “1” (to avoid duplicates is suppose).

    Thread Starter simplytaty

    (@simplytaty)

    It appears on the library after the errors for me as well, but cannot add to posts. And some images upload fine, which makes no sense, really.

    I thought after reading the first sticky post about what to do first before posting I did test my plugins.

    So, I guess I did not. After I deactivated ALL my plugins, media upload worked again.

    Hello, I’m experiencing similar issues on all my blogs after updating to 4.3

    Similar for me too. Just getting that HTTP error occasionaly (more than occasional…75% of tries i would say)

    Opened topic for it as i didn’t find this one: https://www.ads-software.com/support/topic/wp-43-http-error?replies=2

    Hmm my hosting somehow fixed the issue. “We applied another php settings for your account, you can test the upload now. As we see the corresponding error logs for your account.” the hosting is namecheap. Images are loading up now.

    Follow up from namecheap (awesome guys, by the way) “We have changed PHP version to the newer one for your hosting account, from 5.3 to 5.4 and disable ‘suhosin’ in PHP settings. You can see it in your cPanel by accessing ‘Select PHP version’ option.”

    I have a long execution time setting and uploads over 1mb are hanging for about 2 minutes. I’m also already on php 5.4. Do you guys mind sharing your phpinfo() url if you have this issue fixed?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Let’s wait for @simplytaty to reply. Alternatively open a new thread to discuss your own issues.

    I’ve been working with my host for a few days, created some sandboxes, did some diffs and we believe we’ve narrowed it down.

    ImageMagick 6.8.8-7 is an older version that apparently has some security concerns, however it’s the version that isn’t afflicted with what appears to be an infinite loop. We saw the issue with PHP 5.3 and 5.4, as well as WP 4.2.4 and 4.3.

    ImageMagick 6.9.2-1 is the newer more secure version which runs a loop and hits max_execution_time several times. It seems for some people this causes an image upload failure. For me it just hangs for about 2 minutes before eventually showing the uploaded image.

    Changing PHP settings to use GD instead of imagick “fixes” the issue (by circumventing it), but this isn’t an option for shared hosts. The host doesn’t consider downgrading imagick an option due to security concerns so now I’m looking for a way to disable imagick through WordPress settings or php.ini. The fastest way around the issue would just be switching to a VPS, which I may end up doing.

    Ok, so after more testing, it seems the version of imagemagick is irrelevant. The problem is with an imagemagick PHP API called magickwand. When enabled, images over 1MB cause an infinite loop. A newer server with the same host doesn’t seem to be affected by the issue with magickwand enabled so it seems to be a conflict of certain combinations of versions.

    We could be talking about totally separate issues, but there’s a chance your experience has the same cause as mine.

    HI All

    Having the same problem on site, Add Media button completely unresponsive. Any suggestions?

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Images upload fails after update to 4.3’ is closed to new replies.