• Resolved paross2

    (@paross2)


    Running WordPress 5.7 with PHP 7.4 on Windows IIS 10.0.14393.0

    Uploading an image produces the following error:

    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 did the following to troubleshoot:

    Using a small test image (much smaller than 2500px)

    Clearing the cache in Chrome.

    Using a different PC on a different network.

    Removing odd characters from file names.

    Using a different theme.

    Increasing Upload Size and Max File Size to 20M in php.ini

    Increasing Sites Memory from 128M to 512M

    Downgrading PHP to 7.2 (reverted to a fresh copy of 7.4)

    Installing the PHP Image Magick plugin on server (again)

    Disabling php_gd2.dll (re-enabled after failing)

    Telling WP to use GD_editor by editing the functions.php (Reverted after failed)

    Updating WordPress DIVI theme.

    Disabling all WordPress plugins.

    Scanning the server for malware or hacking.

    Scanning and repairing the MySQL Database with WordPress plugin.

    Using a plugin to “add from server”, then downloading images directly to the server. This plugin fails too.

    Updating the server itself (it runs Windows Server 2016).

    Rebooting the server and restarting the site in IIS after each relevant change or step.

    Opening Port 3306 on the Firewall for MySQL.

    Finally the issue went away when rolling things back to PHP 7.1 and WordPress 5.5.3.

    This bug is worth looking into, lots of people report it and the error message seems to be misleading as the image size doesn’t seem to have anything to do with whatever the underlying issue is.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    You said this:

    Downgrading PHP to 7.2 (reverted to a fresh copy of 7.4)

    But also this:

    Finally the issue went away when rolling things back to PHP 7.1 and WordPress 5.5.3.

    Did you try PHP 7.1 on WP 5.7? Or WP 5.6.2?

    Thread Starter paross2

    (@paross2)

    I have not tested PHP 7.1 on WP 5.7 yet, I stopped when I got a working combination. I’m one of those rookies who doesn’t have a testing environment and puts everything on just a production server, once we get our stuff sorted, I’ll test PHP 7.4 with WP 5.5.3 then if it works, I’ll step up to WP 5.6.2. Since we’ve had no trouble with image uploads until the newest WP update, I now assume it wasn’t PHP, but I’ve already demonstrated I’m no authority, that’s pure conjecture.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Since we’ve had no trouble with image uploads until the newest WP update, I now assume it wasn’t PHP

    It could be a combo, which is why I asked ??

    PHP installs vary from server to server, and it could be that your server’s version of PHP 7.2+ is the issue.

    fccbrla

    (@fccbrla)

    I just downgraded to 7.1 with WP 5.7 and was finally able to upload an image.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Okay! So this suggests that the issue is probably with your image software and PHP! WP uses ImageMagick to handle images, and that is some of the more annoying debugging I ever have done ?? I hate image debugging….

    But. The reason is “Your server can’t compress images properly on newer versions of PHP, likely due to the compression software we rely on (ImageMagick).”

    And the fix… would be to figure out what versions of ImageMagick do and don’t work — you should be able to see the version of it if you make a PHPInfo file … and redo ALL the tests, yeah I know.

    Is this a server build you made or is it your hosts? If it’s a host, tell ’em that they need to look into properly updating ImageMagick.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Image Uploading Error’ is closed to new replies.