#SharePointProblems | Koskila.net

Solutions are worthless unless shared! Antti K. Koskela's Personal Professional Blog

Fixing WordPress "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." error

koskila
Reading Time 8 min
Word Count 1424 words
Comments 39 comments
Rating 4.9 (9 votes)
View

This article will go through different solutions for fixing issues with uploading pictures to your WordPress Media Library. There are plenty of reasons that could cause this issue - and a couple of different ways to run into it.

But fear not! I'll be proposing a few different ways to fix the issue in your installation. And by "a few" I mean 10. Or more, if I have updated the list after writing this paragraph!

Unlike some of the more aggravated users suggest online, this isn't likely to be a bug in WordPress - rather, it is a configuration/compatibility issue. Luckily, it's usually something you can fix yourself.

Let's get on with it, then!

Problem

So, once more, the error you see is something like the below:

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.

This error might pop up in all of these different situations (and probably others, too):

  • Pasting pictures in the WordPress Block Editor (Gutenberg)

  • Uploading pictures to Media Library using the Image-block

  • Uploading pictures to Media Library from the Admin site

So most of the time, it's something that you run into when you're uploading pictures to WordPress. So far, so good, right?

But the error is not accurate, and it won't help you. It's most likely NOT the server being too busy to serve you (it had one thing to do, right?), and uploading a smaller picture will usually not work at all. It's much more likely to be a problem in the configuration.

Workaround

Before jumping into the actual steps to fix the issue, let's quickly address a workaround that might help a bit.

At least for yours truly, a workaround was to upload pictures one-by-one directly to the Media Library from the Admin site, and refresh the page using F5 every time between uploads.

It's a crappy workaround, as it only worked about 50% of the time, but it kept the site going before I figured out the actual reason.

And now - let's move on to the actual solutions!

Solution

There are quite a few possible reasons that might cause this issue to pop up. And hence, there are quite a few possible ways to fix it.

I will try to outline some options in a simple checklist, so that you can go through it and find a fix that would work for you!

Time needed: 20 minutes.

How to fix "Post-processing of the image failed likely because the server is busy or does not have enough resources." when uploading pictures to WordPress Media Library?

  1. Try uploading your file using another browser

    A quick and easy thing to start with - try uploading your file using another browser, or maybe just clear your cache to see whether that helps. Using the Incognito/Private browsing mode might also do the trick!

    As pointed out by Jason in the comments -section below, it's sometimes this easy :)

  2. Rename your file

    Don't use weird file names! Apostrophes, quotation marks, exclamation marks - stuff like that is risky. Even in the 2020s, servers still don't always understand anything more than your basic Latin character set.

    Try renaming your file to something that only has a-z and numbers, and see if it helps.

  3. Remove all of the cookies for the site

    This is something a few people in the comments section have brought up: a quick thing you can try is to remove all cookies for your WordPress site. That'll force you to sign in again, but there's a fair chance it'll actually fix the issue, and let you upload media files again.

    Give it a try (and let me know if it works for you)!

  4. Verify your upload limit

    Your upload file size limit might be too low, so it makes sense to check this next - just open your Media Library and navigate to "Upload Files".

    Verify, that the "Maximum upload file size" is something meaningful - e.g., not "1 MB" or something.

    Upload limit visible on WordPress Media Library's Upload-tab.
    In case you DO have something ridiculously small here, you need to increase the limit to something borderline unreasonable like 128MB.

    There are multiple ways to change this. If you have access to the php.ini file, you can configure it right there. If you don't have access to it (maybe you're on shared hosting?), you can also edit your .htaccess file to add something like this:

    # BEGIN Increase upload max filesize According to this: https://www.koskila.net/fixing-issues-with-uploading-pictures-to-wordpress-media-library/ php_value upload_max_filesize 128M php_value post_max_size 128M # END

    You can remove the rows starting with a hash (#), they're just comments clarifying to your future self why you have added this part to the configuration!

  5. Verify your server resources

    Verifying WordPress is able to use the server resources it wants makes sense. The error directly says this, after all:
    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.

    Hmm - despite what the error says, the server resources running out is almost never the reason for the issue. However, it's simple to verify, so next, we'll take a look at your web hosting plan!

    Navigate to cPanel (or whatever server/account management software is available to you) and check out the "Statistics" section (or equivalent) to see if the memory usage is anywhere close to maximum.

    In case your server resources seem seriously underutilized, it might be a good idea to enable your WordPress installation to use a bit more of the resources. If you can edit your php.ini file, you can add this to the file:
    memory_limit = 512M

    You can also try and add this to .htaccess:
    # BEGIN Increase memory limit According to this: https://www.koskila.net/fixing-issues-with-uploading-pictures-to-wordpress-media-library/ php_value memory_limit 512M # END

    Or alternatively, you can add this in your wp-config.php file:
    define( 'WP_MEMORY_LIMIT', '512M' );

  6. Select a supported PHP version

    I've read a lot of people complaining about this on PHP 7.3 or PHP 7.4. While it DOES in fact work for me with PHP 7.3, you could try and see if downgrading to PHP 7.2 helps you.

    At the very least that'll help you narrow the issue down a bit!

  7. Enable required PHP modules

    You need to ha e certain PHP modules enabled as well.

    Verify, that your PHP version has a module called "Imagick" enabled. This can be done by finding your PHP modules in your web hosting provider's configuration panel and combing through them to find them.

    This is different for each configuration panel, though!

  8. Enable required Apache modules

    I didn't even have access to Apache modules in my case, so couldn't verify - but I've seen a suggestion that a module called mod_fcgid needs to be enabled.

    Even that didn't help? On to the (even more) more exotic solutions!

  9. Bypass GD Editor (whatever that even means)

    Some people report adding this to your functions.php can help:

    function use_gd_editor($array) { return array( 'WP_Image_Editor_GD', ); } add_filter( 'wp_image_editors', 'use_gd_editor' );

    It didn't help me, but I thought I'd include it for the odd chance it might help someone else.

  10. Disable or bypass Cloudflare if you're using it

    The issue could also be caused or exacerbated by Cloudflare.

    This might be useful just for narrowing down the issue. Cloudflare will act as a proxy for your site, so while it might not break anything in itself, your WordPress installation might still misbehave. And Cloudflare might end up omitting the error messages you need to debug the issue!

    If everything works just fine without Cloudflare, then you know they're messing with something in your installation. What is it? Don't ask me - just contact their support, because they're fantastic.

  11. Disable SecFilterEngine and SecFilterScanPost using .htaccess

    Ah - this is a fun one! My issue (yes - I went through everything above, first) was resolved by disabling mod_security.

    This is a bit unfortunate - but for whatever reason, it seems like it's messing with Cloudflare (at least with the current WordPress version I'm running - 5.4.2). I suggest undoing this hack as soon as possible.

    Anyway - here's what I had to add to my .htaccess file:

    # BEGIN a horrible hack to fix upload errors # See this: https://www.koskila.net/fixing-issues-with-uploading-pictures-to-wordpress-media-library/ SecFilterEngine Off SecFilterScanPOST Off # END a horrible hack

And that's about it! That's the article. Hope it helps - it's helped me a few times already! :)

References

Comments

Interactive comments not implemented yet. Showing legacy comments migrated from WordPress.
Khalid Nasrat
2020-11-21 13:17:53)
Before doing any of these, be sure to delete all cookies related to that wordpress website. if problem solved then you are good to go, You may also do it after trying any of the solutions above.
Antti K. Koskela
2020-11-24 14:12:02
Thanks for your comment Khalid! That's an interesting point - I haven't yet run into a situation where clearing cookies would fix the media upload issue. Do you have direct experience or a great resource on that? Cheers!
chris
2022-01-29 13:35:06
This cookie removal, forcing me to sign in again and then going back to the media upload totally worked for me! Thanks
Md Anwar Hossain
2020-12-07 22:05:25)
Love you brother ..solved my problem..
Antti K. Koskela
2020-12-09 22:10:29
Thanks for your comment - happy to hear it was helpful!
2021-03-02 18:38:33)
Im using DIVI, so I had a similar issue caused by mixed content (https://web.dev/what-is-mixed-content/) I force to use only HTTPS!
Antti K. Koskela
2021-03-09 22:31:57
Hi Manuel, Thanks for your comments! That's an interesting case - did you really run into exactly the same error - "Post-processing of the image failed likely because the server is busy or does not have enough resources..."? Sounds ridiculously inaccurate error message in that case!
Jason Seigler
2021-04-09 02:19:07)
For whatever it might be worth to future travelers.....I had this problem for a half day. Then switched to a different browser (from Chrome to Brave) and had no further trouble. Which isn't to say any browser was the cause/cure, but that the nature of the issue could be local, rather than deep in the grubby gizzard of your server config. G'luck.
Antti K. Koskela
2021-04-18 21:29:13
Thanks, Jason - that's a useful tip; at least verifying whether it works in another browser is really quick, so it's probably the best way to start the investigation. I'll be sure to add it in the how-to! 😊
2021-05-11 20:16:30)
I did some testing. PHP 7.2 on my server had mbstring extension active - uploads worked fine while running 7.2. PHP 7.4 did not have mbstring active - installed mbstring for 7.4 and uploads started working. Not 100% sure that was issue, but with mbstring active on 7.4 media uploads working again.
Antti K. Koskela
2021-05-14 22:44:18
Hi Terry, Thanks for your comment! That's a pretty strong indicator that said extension is the culprit... After a quick googling, I found a few discussions but nothing conclusive - I wonder if you have an active plug-in that hooks into the uploads, and would require said extension? 🤔
2021-05-12 01:45:11)
Thank you for this article! I tried a number of these steps and I am pretty sure the one that solved it was #8 "HBypass GD Editor" that worked for two different sites. One was on Hostmonster and one on BlueHost, which are the same company.
Antti K. Koskela
2021-05-14 21:32:26
Hi David, and thanks for your comment! Happy to hear it helped! Makes me happy I included it in the list even though it didn't work for me... :D I believe Hostmonster and BlueHost are both owned by EIG? I got such bad experience with them circa 2016, I think I'll grimace just a little bit any time I'll run into any webhost they're currently in the process of bleeding dry...
shivam kumar
2021-05-17 09:10:18)
Thanks for shearing information helpful
Antti K. Koskela
2021-05-17 16:50:58
My pleasure, shivam! Happy it was of use :)
Monisha
2021-05-18 12:54:52)
Thanks for the help. It worked for me when I tried in incognito mode. :)
Antti K. Koskela
2021-05-19 11:26:12
Thanks for your comment, Monisha! Happy it worked out for you!
Monisha
2021-05-19 08:16:23)
Thanks for the help. It worked for me when I tried in incognito mode. :)
2021-05-20 06:56:41)
THANK YOU - just spent the last 8 hours trying to fix the issue, then came across this post - number 8 worked for me. Thank you!!!!
Antti K. Koskela
2021-05-25 12:34:12
Thanks for letting me know, Neal! Really happy to hear I didn't include it in vain :D
2021-06-03 20:37:33)
In my case the problem was in the functions.php of the child theme. There wasn't ?> (end of php script) in the end of the file.
Antti K. Koskela
2021-06-08 14:30:18
Hi Margus, Thanks for your comment! That's actually a bit surprising - one would think an issue like that would manifest itself in a plethora of ways, most far more noticeable than just uploads failing 😲
Kate
2021-08-05 10:45:36)
Thank you! Removing an apostrophe fixed the problem for me.
Antti K. Koskela
2021-08-19 16:11:58
Thanks for your comment, Kate! Good to hear that :)
2021-09-16 20:15:04)
Thanks for this! All I needed to do was clear the cache and use incognito!
Antti K. Koskela
2021-10-03 22:58:40
My pleasure - happy that worked out for you!
2021-09-21 15:44:24)
I was trying to fix the image uploading issue for 2 days. While Googling landed on this awesome page. Trick No 8 worked for me. Gratitude Antti for sharing valuable tweaks.
Antti K. Koskela
2021-10-03 22:58:05
Thanks for your comment, Laxmikant - phew, you made me happy I included that one in the list!
2021-11-01 21:04:06)
Changing memory limit to 512M and even 256M worked for me. Thank you for your help.
2021-11-03 12:06:43
Superb! Thanks for the comment, happy to hear it was helpful :)
2022-05-17 15:48:09)
Thanks for sharing it. 
2022-06-11 20:56:04
My pleasure, Sheran!
2022-07-26 00:38:57)
Number 8 changing memory_limit from "256" to "512" worked for me. I went to settings -> wp Htaccess Editor and just change 256 that is right opposite MEMORY_LIMIT to 512 and saved it.
Antti K. Koskela
2022-08-05 16:28:35
Thanks for your comment Olakanmi - happy to hear it was helpful!
2022-12-14 12:53:24)
Thank you very much
Antti K. Koskela
2023-01-13 13:25:51
Happy to be of help!
Whitewater Magpie Ltd.
© 2025
Static Site Generation timestamp: 2025-08-26T05:15:49Z