Scroll to top
651 N Broad St, Suite 206,
MiddleTown, New Castle,
Delaware - 19709
635 Ashprior Avenue,
Mississauga, Ontario,
Canada - L5R3N6
34, Shiwanshu Bunglows
Vadodara, Gujarat - 390007

How to fix HTTP Error Uploading Image In WordPress Site.

93 / 100

There is a possibility that you might come across a gazillion of errors while using WordPress. And for rookies who do not have much knowledge about WordPress errors, this could be a bit annoying. Errors could be anything like the White Screen of Death, 404 error, mixed SSL content error, etc. But you can go through this guide which has listed all the errors of WordPress along with its solutions.

How to fix HTTP error Uploading Image in WordPress site

We all love images, don’t we? Images make sites more engaging. Without images, your site would just be another piece of text and would not attract the target audience. But there are many chances that you come across HTTP errors while uploading Image in your WordPress site. This is very common and faced by most of the users.

So today let’s dive into the common HTTP errors and learn the hacks of fixing it.

What is an HTTP Error?

You would normally make this error if something goes wrong when you try to upload an image by using the built-in media library tool. Let me tell you that WordPress errors can be a little frustrating as it hampers your workflow. 

If you come across HTTP errors, then it would be a bit confusing especially for newbies as there is no proper information provided regarding the error.

Common HTTP errors that you would come across:

The first thing you need to make sure that this issue is temporary or permanent when you get an HTTP error in the picture or other media file upload. Suppose you upload an image and you get an example of this problem.

You have to reload the page and wait to upload the file again for a while. If you see that the issue no longer exists, that suggests that it only happened temporarily. But if it exists again, that implies that the file has problems to solve. So now, let’s move ahead.

The types of HTTP error Uploading image in a WordPress site that you might face and also their solutions.

1. File-Name:

I would advise you to check the file-name if you are trying to upload an image, and you come across this kind of error. This error can be solved by removing the apostrophe. There could be any special characters such as an apostrophe or a semicolon, but you can always use a dash.

WordPress will automatically append a number if you try to duplicate a file. However, if you are trying to rename a file that is already uploaded, WordPress will simply not allow this. So you will have to change the name of the file locally, and then only you can upload it.

file name error

2. Deactivate the Plugins:

There is a possibility that you might get an HTTP error if you have installed a plugin. If this is the case, then you can try to deactivate the plugin and check whether the error persists or not. That occurs when you try to upload image optimization plugins. Once you deactivate the plugin, upload the image again to see whether the problem is solved.

You might be wondering that you might lose your data if you deactivate a plugin. But that’s not the case. The fact is you will not lose any data if you deactivate a plugin. To do this, head over to your “Plugins” option on your dashboard and then select “Deactivate” from the bulk actions menu. By doing so, all your plugins will be deactivated.

Also read: Best 3 WordPress Security plugins in 2020 –

deactivate a plugin

3. Increase Memory Limit

Another cause for the WordPress HTTP error could be that your server lacks the memory required to complete the background upload process. It is one of the most common issues if you are using a shared WordPress hosting. You have to increase the amount of PHP memory to get it working. 256MB works best.

increase memory limit

You can increase the Memory limit by copying the following code in the wp-config.php file.

define( 'WP_MEMORY_LIMIT', '256M' );
If your host is using cPanel, then you can achieve this in two places.
  1. Click on “Select PHP version” and then click on “Switch to PHP Options”. Then click on “memory_limit” to change the value.
  2. Click on the “MultiPHP INI Editor” tool. It allows you to modify the php.ini file. Scroll down to where it says “memory_limit” and input a higher value.

4. Image Editor Library

Two image processing modules are supported by WordPress, namely GD Library and Imagick.  Both these modules are amazing, but let me inform you that few resources are allocated to Imagickto for causing the HTTP error. 

Image editor Settings

You can add the following code to the top of your .htaccess file, changing the thread limit value to something higher.


Also, you can simple use GD Library and add the following code to your functions.php file:

function hs_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', ‘hs_image_editor_default_to_gd' );

If the error persists after adding the code, then you can rollback the changes and try out the other solutions.

5. Resize the file

To solve the HTTP error, you can also go about by resizing your image file or decreasing the height/width of your image. You can make use of third-party image optimization plugins to do this. These plugins will automatically reduce and resize your image when it is uploaded.

Resize the file

You can also upload high-resolution images depending on your needs. But a bit of quick advice here is that try to keep your image size under 100kB and not more than your website’s content div length.

6. Talk to your WordPress host

If the error persists and you have tried and tested all the methods, then you can contact your WordPress host for guidance before you proceed further. Sometimes it happens that you are not aware of those additional troubleshooting steps which are advanced so you can resort to your host provider to check on it.

hosting service contact for http error

7. Remove custom media library path

If your media library path isn’t set up correctly, the chances of an HTTP error are high. It usually occurs when a user migrates the local development site to the production. 

Remove custom media library path in WordPRess

Go to “Media” and under, “Settings” you will see a file path value listed, so you need to delete this file path and save the changes. The media will be stored in the default /wp-content/uploads folder.

8. Clear your cache

If you still have the HTTP error, then you can try to clear your cache. You might have forgotten to clear the cache in the midst of performing the various methods. So clearing the cache would solve the problem.

clear browser cache in web browser

Also read: 10 WordPress Cache plugins you need to improve your site speed (2020)


Coming across an issue like an HTTP error would be quite frustrating at times. But I hope that the methods that I have curated for you will surely help you to solve your most annoying image upload problems. With this article you can find the right solution and the real reason behind the error. 

Besides these errors, have you faced any other kind of error while uploading an image to your WordPress site? If yes then please share your experience with us in the comment section.

If you found this article helpful, let us know in the comments section below. And make sure you follow WP Uber for the latest updates on themes and plugins. 

WP Uber is a WordPress management agency that provides detailed site health reports and customized security solutions for WordPress sites.

Author avatar
Tim Michaels
I am into WordPress and web development for the last 10 years. I use my experience to help people just starting with WordPress. Follow my blog at WP Uber for everything related to WordPress.
We use cookies to give you the best experience.
Do NOT follow this link or you will be banned from the site!