• I’m getting an error uploading a “large file” with the media uploader. The error is:

    Post-processing of the image failed likely because the server is busy or does not have enough resources. Uploading a smaller image may help. Suggested maximum size is 2500 pixels.

    I have read through some of the support threads. After reading the other threads, I have tried:

    1. Using the plugin
    2. Adding the filter
    3. Increasing the Memory Limit

    Nothing seems to be working. I’m just trying to upload an 11MB graphic that is 2000×2000 pixels at 300 pixels/inch.

    I’ve uploaded files this size before without any problems. Someone said it happened after the WordPress 5.3 release.

    Is there a fix for this that works? Will WordPress come up with a patch?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Yes few had similar issues when upgraded the core to 5.3.

    So I would recommend you to take a complete back-up of the current site & try upgrading to the latest stable version 5.4 & this should solve the issue.

    Hope it helps !!

    Please optimise your image for web (save for web) before upload. 11MB for 2000×2000 is too large for web display.

    The image uplooad process easily timeout because takes too long time to upload 11MB file.

    Also, try to turn off other image processing plugin if any.

    Thread Starter jason_hayes

    (@jason_hayes)

    I need to upload the large files because I sell them as dowloads.

    Thread Starter jason_hayes

    (@jason_hayes)

    Should I just ftp the files?

    Thread Starter jason_hayes

    (@jason_hayes)

    It is 5.4.2 and still has the issue.

    Hi,

    I have a number of sites all displaying the same issue, 5.4.2.

    @ Sundar, Installed a clean version of 5.4.2, also the same issue.

    Testing with images I’ve uploaded previously, I get the following message for images with a max long side of 2400.
    “Post-processing of the image likely failed because the server is busy or does not have enough resources. Uploading a smaller image may help. Suggested maximum size is 2500 pixels.”
    The image is 534kb in size.

    It does upload, a refresh of the media library page shows the image.

    According to cPanel, memory is fine however CPU usage is maxing out.

    1 of the sites was put together around January time, I don’t recall the installed version at that time, the issue was not present.

    PHP version 7.4.6 (Supports 64bit values)
    PHP SAPI litespeed
    PHP max input variables 1000
    PHP time limit 120
    PHP memory limit 512M
    Max input time 120
    Upload max filesize 12M
    PHP post max size 12M

    Imagick is also available.

    Taking off the memory limit makes no difference. The error occurs long before the execution limits as well.

    It’s returning 503 Server busy.

    I’ve tried the edit option in the media library also, that just hangs without returning anything useful atm.

    I’ve only just discovered this issue, and found this related thread so haven’t had chance to have a good dig around.

    OK. So the large image files are image downloads. Then I suggest you to FTP upload them.

    You don’t want WordPress to auto process the image (resize, compress and generate thumbnails) at media upload.

    I’ve cloned the same site over to another environment, this time running Apache, with similar PHP version, the issue goes away.
    The PHP limits for exec and memory are identical, the Apache host probably has less resources. The main difference, the production server is running Litespeed as per previous comment.
    @jason_hayes If you go to WordPress’s site health section and then the info tab, is the host running Apache or something else? I’m trying to rule out things atm.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Cannot Upload Large Images’ is closed to new replies.