• Resolved andyz

    (@andyz)


    A few days ago my self-hosted WordPress site was working fine, I was able to upload images and create posts normally.

    Then suddenly later on that same day, I was unable to upload any images. I had made no changes to settings or anything of that sort in the interim but it just stopped.

    When I try to upload an image I would get the following error message that I am sure many of you are familiar with:

    “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 am running WordPress 5.5.1 with the most recent update of the ColorMag theme.

    First I will get the obvious stuff out of the way. The image I was trying to upload was small in file size and resolution.

    I have tried several different image files and the same thing happened every time.

    Here is a list of everything I have tried so far:

    1. I went into my PHP from Cpanel and increased my memory limit to the max 512 and maxed out post size and upload size

    2. I changed my PHP to version 7.3 and did the same memory limit increases

    3. I changed my PHP to version 7.4 and did the same memory limit increases

    4. I tried turning “imagick” extension off while leaving the “GD” extension on in all versions of PHP that would work.

    5. I tried keeping “imagick” on and turning off “GD” in all versions of PHP that would work.

    6. I cleared all the caches using W3 Total Cache.

    7. I tried using the ‘Disable BIG image threshold’ plugin with each version of PHP that would work

    8. I tried adding the following lines to my functions.php page
    “function use_gd_editor($array) {
    return array( ‘WP_Image_Editor_GD’, );
    }
    add_filter( ‘wp_image_editors’, ‘use_gd_editor’ );”

    9. I tried adding “add_filter( ‘wp_image_editors’, function() { return array( ‘WP_Image_Editor_GD’ ); } );” to my functions.php page.

    10. I tried contacting my hosting provider’s tech support and telling them about the problem. They said they “increased some resources” but that also did not work.

    At the time of me writing this forum post I am on the third day of this issue continuing.

    I am by no means an IT professional. Everything I have tried so far were suggestions I found from googling and searching forums.

    If anyone else has any suggestions to something that I have not tried yet that does not involve nuking my whole site, I would appreciate it.

    Thank you

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • jack randall

    (@theotherlebowski)

    it’s an overly simple thing but have you tried reloading the page you’re uploading the image to after you get the error? bizarrely, this has worked for me on occasion…

    Thread Starter andyz

    (@andyz)

    it’s an overly simple thing but have you tried reloading the page you’re uploading the image to after you get the error? bizarrely, this has worked for me on occasion…

    Tried it. Didn’t work unfortunately.

    Thread Starter andyz

    (@andyz)

    Another update. I tried re-installing WordPress via the dashboard and that also did not work.

    Things to try:
    – Check for errors/warnings in the browser console when uploading images.
    – Enable (temporarily) logging of WordPress and PHP errors to a file. See https://www.ads-software.com/support/article/debugging-in-wordpress/ for how-to
    – Are you using any non-standard image format?
    – If you still have problems, then you could share a list of your installed plugins, etc. Under Tools → Health Check you can create one, and then post here. (Just check that you’re comfortable sharing the info.)

    Thread Starter andyz

    (@andyz)

    – Check for errors/warnings in the browser console when uploading images.
    – Enable (temporarily) logging of WordPress and PHP errors to a file. See https://www.ads-software.com/support/article/debugging-in-wordpress/ for how-to

    I’ll be honest with you. Those steps are a bit above my skill level to do on my own without accidentally messing something up.

    I tried doing it with a Debug plugin but from what I could tell, I could not see any errors pop up. That is if I was even looking in the right place.

    – Are you using any non-standard image format?

    Nope! Not using any non-standard image format. Just plain ol’ jpegs well within the file size and resolution limits.

    – If you still have problems, then you could share a list of your installed plugins, etc. Under Tools → Health Check you can create one, and then post here. (Just check that you’re comfortable sharing the info.)

    Can my plugin information be used to hack my site? If so then yeah I would rather not share it publicly. If not then I will follow up with that list

    Thread Starter andyz

    (@andyz)

    UPDATE: After waiting entirely too long. My hosting service provider fixed the problem.

    Though they did not say what caused the problem or what they had to do to fix it.

    I sent off an email asking for this information and if/when I get that info I will post it here for posterity and then mark the thread as resolved.

    Thread Starter andyz

    (@andyz)

    UPDATE: I finally heard back from my hosting provider tech support.

    To recap: When they contacted me letting me know the problem was fixed. I responded asking them if they could explain what caused the problem.

    Their response was literally a one line email that said the following:

    “Somehow the directory permissions were changed causing the problem.”

    Well, alright. I suppose not much detail is needed beyond that.

    In conclusion: If you are reading this and you had the same problem as I did and you’ve tried everything I tried, then check the permissions settings on your directories to see if it is what it should be.

    Hope this can help others!

    • This reply was modified 4 years, 2 months ago by andyz.
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Cannot upload images’ is closed to new replies.