How to fix HTTP error when upload images in WordPress

How to fix HTTP error when upload images in WordPress

In WordPress, HTTP error is a code that indicates that something went wrong during the file upload process. Generally, WordPress HTTP error occurs when you try to add an image and other types of files to the Media Library. This guide covers 9 proven solutions of this problem in no particular order. Without further ado, let us start!

7 Easy Ways to Fix WordPress HTTP Error

How to fix HTTP error when upload images in WordPress

Solution 1: Confirm the HTTP Error

There may be a WordPress HTTP error due to a temporary glitch at the server. Before you try any solution in this post, you should first ensure that the error persists.

Wait a few minutes and start by uploading the media file once again. If the second attempt is successful, it can mean that there was a temporary problem at the time of the error.

Additionally, clear the image file name, i.e., eliminate characters like apostrop and semi-colon among others. A good number of users reported the resolved error after removing the apostrophe with the file name.

However, if the problem persists, read for more resolution.

Solution 2: Switch Browsers

It is possible that the WordPress HTTP error is unrelated to the website and some more unexpected - the result of your browser may be

There are reports of HTTP error popping up while using Google Chrome. While this is an excellent browser, switching to a different will confirm you whether the problem is browser-related or not.

If the problem persists, more troubleshooting steps have been presented below.

Solution 3: Deactivate Plugins

How to fix HTTP error when upload images in WordPress

If the WordPress HTTP error appears after installing the plugin, then your best chance is to disable it. To protect you from some difficulty, image optimization plugins are considered to be the reason for this problem. As such, if you have an image optimization plugin, disable it temporarily and try uploading the image again.

If the HTTP error disappears, you can search for an optional Image Optimizer plugin. Alternatively, you can try to contact the plugin developers to troubleshoot further errors.

However, if the error persists even after disabling all the plugins, then go to the more resolution presented below.

Solution 4: Increase WordPress Memory Limit

How to fix HTTP error when upload images in WordPress

A common cause of HTTP error in memory is lack of memory. This can also be the result of many other issues, such as 503 service unavailable error. Correcting the following memory is a case of adding the following line to your wp-config.php file:

define ('WP_MEMORY_LIMIT', '256M');

The above code increases your PHP Memory Limit by 256MB. Before adding this, you should also confirm that checking the PHP information is the maximum available memory limit on your server.

Solution 5: Check Your Theme

How to fix HTTP error when upload images in WordPress

If the error occurs after installing or updating WordPress theme, then it is most likely that the offender One good way is to make a backup of your entire website and switch to the default theme (e.g., Twenty Seventeen).

If all work well with all default themes, try contacting your current theme provider or developer with details. In such a case, HTTP error may be a different topic issue or an inconsistency between the theme and the plugin.

Solution 6: Check Your PHP Version

Since php version 3.2, WordPress requires PHP version 5.2.4 or higher to run smoothly. Anything from it will get stuck with you HTTP error. Some hosts use earlier versions of PHP, which means that whatever you try, you can not upload images to the WordPress Media Library.

What to do? First of all, check with your host to make sure they are using PHP version 5.2.4 and above. Alternatively, you can join millions of other website owners at Hostinger, which provides the latest stable PHP version upon release.

Solution 7: Clear Your Caches

How to fix HTTP error when upload images in WordPress

Do you face the WordPress HTTP error even after trying out all of the above solutions? Perhaps you solved the error some time ago, but the "error" that you see comes from the local cache. Before you think that a solution does not work for you, try clearing your browser cache.

Comments

Post a Comment