Support » Localhost Installs » The server cannot process the image. This can happen if the server is busy or do

  • I am running the latest version of WordPress on a self installation (Ubuntu) and noticed that I always see this error with certain images I have yet to find a solution. I have increased Memory Limit to 256M in php and also Maximum upload file size to 1 GB and no luck.

    The server cannot process the image. This can happen if the server is busy or does not have enough resources to complete the task. Uploading a smaller image may help. Suggested maximum size is 2560 pixels.

    Again, things I have tried:

    • Memory Limit increased to 256M
    • Maximum upload file size to 1 GB
    • Renaming the file to test.jpg
    • Verifying the file size (currently testing a JPG at 1.1M)

    I ran out of things to try. Any ideas?

Viewing 15 replies - 1 through 15 (of 20 total)
  • Hello @junior , I would be more than happy to assist you with the issue of certain images not loading.

    Have you verified that the image is not larger than 2560 pixels? Depending on your OS, looking at the properties of the image should provide the pixel size for height and Width. If you are able to share the image, I would be willing to test this out with my wp install test environment.

    Joey

    Thread Starter Lee

    (@junior)

    @joecoyle, I have verified that the image is not longer than 2560. I am sure of that since I am photographer and always resize my images by 1000 at the longest edge. Funny thing is only some images do that. Today I resized and exported three and one of them failed to upload. This image had the size of 1.1MB while the others just a few Kilobytes.

    Could this be the issue? My install is set to allow uploads up to 1GB.

    @junior 1.1 MB is much smaller than your 1GB limit. I cannot see why this would be causing the issue. Once a image fails to upload, does it always fail or will it upload if you try to upload again the same image? What are your image size settings under Settings/Media? The default large image size is 1024 for both width and height. What version of wp are you using? If you compare an image that successfully uploads and one that fails, what is the difference in the image properties? Is the image resolution the same?

    Thread Starter Lee

    (@junior)

    Once it fails to upload, it always fails. My image sizes are all at default. I tried increasing the large size to 3000×3000 and no luck. If I compare the images, everything is nearly the same besides the size. One is 1.1MB and the other just a few KBs.

    I am on Version 6.3.2. Strange correct?

    Yes, that is strange but if the images that upload without any issue are few KBs in size then it would seem there is some issue with larger. Do you have any size limitation under your hosting account?

    Thread Starter Lee

    (@junior)

    I don’t as I self host everything at my own home on my own servers.

    joecoyle

    (@joecoyle)

    If you provide an example of an image that will not upload, I will upload to my test wp site to see if I have a similar issue.

    Also, have you tried uploading the image using an ftp client like FileZilla FTP to rule out an issue with wp?

    Thread Starter Lee

    (@junior)

    Sorry for the delay. That’s the workaround I’ve been using. I am uploading using FTP and using a plugin to bring it into my media.

    Here’s the photo I am talking about:

    Link directly to it https://imgur.com/2u5fVTW
    • This reply was modified 3 months ago by Lee.
    joecoyle

    (@joecoyle)

    I was able to upload that image us wp without any issue. I doubt this is a wp issue. It seems to be more related to your server or possible your ISP. I wish I had a better answer.

    Thread Starter Lee

    (@junior)

    Thanks for your assistance. I just ran a test where I tried to upload 3 images all over 1MB in size and each of them failed so I assume there’s a setting somewhere keeping me from uploading anything over 1MB. Again, I am self hosting WordPress using Apache behing a NGINX reverse proxy.

    Thread Starter Lee

    (@junior)

    By mentioning that I am running NGINX, I ended up doing a quick search on the subject and turns out I needed to have client_max_body_size in my NGINX configuration.

    Thanks for all your help with this matter. I really appreciate your time and effort.

    I have the same issue with a simple graphic that is 34KB. I’ve resized, renamed and tried other graphics with no success. I’ve tried other browsers and changed my PHP setting. Advice, please?

    Message:The server cannot process the image. This can happen if the server is busy or does not have enough resources to complete the task. Uploading a smaller image may help. Suggested maximum size is 2560 pixels.

    Thread Starter Lee

    (@junior)

    My solution was adding that line to NGINX. I am self hosting WordPress so it may be different for you. Hopefully someone else can chime in and be of more assistance.

    Same thing with my situation, yesterday I could upload any image, today all the same images, gives this error, max image upload in php.ini is 256M

    shesuabry

    (@shesuabry)

    Same thing here, other images of the same size have uploaded except these few and it ony started doing this today, wordpress should look into this problem, the must be some bug somewhere. hope someone fix this

Viewing 15 replies - 1 through 15 (of 20 total)
  • You must be logged in to reply to this topic.