WordPress – How to Fix the HTTP Image Upload Error

In WordPress, to fix the HTTP error when trying to upload an image, there are 2 separate solutions depending on the reason you’re getting this generic error.

Solution 1

Add this line of code the top top of your .htaccess file:

 

Explanation: You’re likely on a shared server that, in order to prevent CPU abuse, prevents you from running multi-thread tasks, which ImageMagick does to speed things up. This tells ImageMagick to limit the thread limit to 1.


Solution 2

Now, if that doesn’t fix the issue, then the below solution will likely work:

Go to your themes functions.php file, and add this code

 

Explanation: Your server is likely running an outdated version of ImageMagick, so what this does is switch the default image editor to GD.

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *