HTTP Error WordPress Image Upload

HTTP Image Upload Error in WordPress

HTTP error WordPress image upload occurs when users face issues in uploading images or videos through a built-in WordPress media uploader tool. The annoying thing about this error is that it doesn’t provide any information on the cause behind this, So it appears common HTTP Error Status.

How to Fix HTTP Error WordPress Image Upload

First of all, I would like to inform you. Please do not get panic and follow the below steps one by one to fix this http error. Essential steps to Fix WordPress upload http error

1. Increase Your WordPress PHP Memory Limit

The widely found cause of WordPress image upload HTTP error is a low PHP memory limit or your PHP memory limit exhausted. The default memory of any Default php memory size set to 64MB. You can increase as per your need.

To fix http error wordpress image upload, you have to increase php memory limit in WordPress

2. Ensure that HTTP error WordPress image upload is not Temporary

Refresh Your Browser

First, step is to refresh your browser, logout, and log back in and then try uploading the image again. Usually, this error comes to the website when there is ample traffic hit the site and makes your server respond late and lost the connection with the browser. It generally solved automatically. Although it’s not as common as you think it may be one of the reasons. If this doesn’t figure out the error, then try the below steps.

Upload Different Image

You should try uploading other image files. If that different image file uploads successfully, It means the problem with the image file itself.

Rename and Resize the Image

Edit your image and set it to the appropriate size, save your new image with a proper name. Make sure you are saving in the format that is supported by your WordPress. For instance, change *.png file into *.JPEG file format with the help of image editing tool after that try uploading again.

If all these methods still don’t solve WordPress upload HTTP error issue, it means the error is not temporary. Keep reading to solve the error.

3. Make Changes to .htacces file

WordPress image upload HTTP error

In this step, it enables the user to manage how Imagick utilizes server resources to process images. Many web hosting servers provide Imagick’s limit so that the users can create several threads for quicker image processing. However, this could result in HTTP error WordPress image upload, so there is a simple solution for this. Paste below-written syntax in your .htaccess file.


To do these steps are:

  • Login to your Cpanel
  • Go to your website root directory and look for .htaccess file
  • Open .htaccess file paste the code SetEnv MAGICK_THREAD_LIMIT 1
  • At last save changes

This code limits Imagick to use only 1 thread to process the image.

4. Change Default Image Processing Module

The WordPress website applies 2 PHP modules to operate images. These modules termed as Imagick and GD library. WordPress might utilize one of them, whichever is accessible.

Though, Imagick generally brings into memory issue that causes HTTP error while imaging uploading activity. It would be best if you made the GD library as your default image editor to solve this HTTP error.

Add the below-written code to the theme’s functions.php file.

theme editor function.php
  • From the top right template, section choose function.php file
  • Now paste the following code and update or save the file.
function wpb_image_editor_default_to_gd( $editors ) {
$gd_editor = ‘WP_Image_Editor_GD’;
$editors = array_diff( $editors, array( $gd_editor ) );
array_unshift( $editors, $gd_editor );
return $editors;
add_filter( ‘wp_image_editors’, ‘wpb_image_editor_default_to_gd’ );

When you add this code successfully, now again try upload images utilizing media uploader. If the error continues present on the website, then you can delete this code and try other options as described above or talk to your WordPress Hosting service provider.


So in case, you find HTTP error while uploading images in WordPress, you should not worry. http error is a common WordPress Error. When you find such an error, follow steps given in this blog. These steps help you to rectify the image upload error in WordPress. If you found difficulties in Troubleshooting of WordPress upload HTTP error let us know in the comment box, we will get back to you

If you like this article, please subscribe to our youtube channel like us on Facebook you can also find us on Twitter and Instagram.

Leave a Reply

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