How to Deal with HTTP Error in WordPress

You might notice the HTTP error while uploading images to your WordPress. This error happens randomly without any notice. I have also faced this type of issue. You try to upload images to your WordPress media and suddenly it stuck with saying HTTP error.


There are various reasons for this error. In this post, I am going to show you some of the reasons which may trigger this error.

#1. Check your Network Connection

This is the very first step to analyze the HTTP error. If your network connection is slow then it will create an issue with uploading images to the WordPress and shows you the HTTP error. Make sure that your internet connection is working fine and also your uploading speed is good. You can use Okhla speed test to check your internet speed.

#2. You made changes to your WordPress blog

As I have already said that the error might occur randomly. So, we cannot eliminate the possibility of the changes that you made with your blog. If the error occurs after adding new themes or installing new plugins then you might revert the files and settings. This will solve the issue for you.

Sometimes when we made changes to our blog which might not be compatible with the current versions of WordPress. Make sure that the themes and plugins you are using are compatible with the current version of WordPress.

#3. Identify the Culprit                                                        

A bad theme and plugin can be the culprit of this error. The error can occur if you did not make any changes to your blog. At this point, you have to identify the bad plugins and themes to rectify the error.

Revert your theme to WordPress default theme like twenty seventeen, sixteen, etc.  If this resolves the issue then you have to change the current theme.

Deactivate all the plugins and activate them one by one to check which plugin can cause the issue. Sometimes an outdated plugin can create conflict with the WordPress which may cause the HTTP error for you.

Always update your themes, plugins and core files of WordPress. Keep your blog’s everything up to date.

#4. Check your security settings

Sometimes security plugins can cause the HTTP error. If you have strong security or firewall settings then it might create the HTTP error. I suggest you keep your security setting moderate until you face some serious security threats.

#5.  Do not use Nulled themes and plugins

The Internet is full up with these things. You can easily find the nulled version of premium themes and plugins. It can be a great security threat for you and create lots of issue with your WordPress blog.

Nulled themes and plugins have altered code which might not work perfectly and also create HTTP error for you. One of my friends also facing the issue. It caused by a nulled plugin which he is using. I asked him to remove it immediately. When he removed the plugin, everything starts working perfectly and be able to upload images without any error.

#6. Check your images.

Sometimes a bad image can create the issue. To fix this issue upload another image and check this with 2 to 3 images. If all the images show you HTTP error then follow the above points. If you are unable to upload a particular image then consider to change it. I always suggest users upload PNG images.

#7. Increase the limit of your WordPress

By default, your hosting provider has put some limitation of the file uploads and maximum execution time. The lack of memory can trigger the error. You can ask your hosting providers to upload the file size limit for you. You can also do it manually by following ways:

Open your config.php file. Put the following code just before the following line “That’s all, stop editing! Happy blogging.”

define( ‘WP_MEMORY_LIMIT’, ‘256M’ );

By adding this code, you can increase the memory limit of your WordPress site.

#8. Your hosting must have GD Library and Imagick.

WordPress cannot work perfectly without having this two modules installed. If you don’t have these two module installed then it might create a lot of issues with your WordPress. Without these two plugins, you cannot upload images to your WordPress. For best web hosting I recommend Siteground.

Over to you

These are some basic reasons that might create HTTP error while uploading images to your WordPress site.  Just go through with these steps and I hope it will help you to sort out the issue. If you have any questions ask it by comments below. If you like the post, share it with others.







Leave a Reply

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