How to Fix HTTP Error When Uploading Images in WordPress – While uploading images on your WordPress site, maybe some of you have encountered an error message HTTP Error. When this error occurs, you cannot upload images or other types of media files.
The causes for this error to occur are varied. There may be one solution that worked for you, but it may also not work for other users.
In this article, I will provide some solutions that you might try if there is an HTTP Error. Hopefully, there is one method that works for your blog. Remember to be careful when trying some of the solutions below, because some solutions require modification of important files.
Solution 1: Change File Permission from Upload Folder
One of the most common causes of HTTP Error errors is incorrect file permissions. If the file permissions are changed intentionally, the upload folder may not be able to write or read, which causes problems when uploading images.
To repair file permissions, you will need to connect to your server with an FTP client or your hosting control panel. Note that the details below are based on the File Manager in cPanel.
First of all, enter the upload folder path / wp-content / uploads /. Right click on the uploads folder name and select “Change Permissions”.
In the pop-up window, change the permissions of “744” and then click on the button that says “Change Permission”. You can also try changing to “755” if “744” doesn’t fix the problem.
After you make changes like the image above, feel free to try uploading some new images for your blog to see if the HTTP error doesn’t happen again.
Solution 2: Disable Flash Uploader
The built-in flash based file uploader is easy to use, but has been found to be the culprit for some issues with certain WordPress. Therefore, one of the first methods you should try is to disable this uploader if you haven’t encountered any problems while using it, and then try browser uploader.
This method has been proven to work a lot for a large number of bloggers. You can only switch to the browser uploader by clicking the link “browser uploaderOn the upload screen or completely disable the flash uploader.
Solution 3: Exclude Flash Uploader from Access Protection
If you use htpasswd (or a password protected directory) with .htaccess, your web server may terminate the
/wp-admin/async-upload.php work well. In that case, you can add the following code snippet into your .htaccess file to ensure the Flash uploader is excluded from authentication.
Note that the above code also excludes WordPress Cron and SXLRPC because they cannot be handled properly. If the above code doesn’t work to solve the HTTP Error problem on your WordPress site, please delete it again.
Solution 4: changing the file upload path
Maybe you’ve changed the directory path to save the images you upload to your WordPress site, this could also be the root of the HTTP Error. To solve this problem, you need to set the media back to the default settings so that all pictures are uploaded to the folder
/wp-content/uploads/ not a sub-folder.
Settings can be changed by going to Settings »Media on your blog admin page. Ensure that no preferred organization is selected in “Upload File“.
Solution 5: changing PHP version
If all the above methods don’t work, you can still try changing the PHP version you are using to a newer version, for example, changing from PHP 4.x to PHP 5.x or from PHP 5.0-5.1. Most web hosts allow you to change the PHP version in the control panel.
Solution 6: Disable the plugin
Plugins do make your WordPress site a powerful site and help you get features beyond just a blog, but some plugins usually bring problems. You can deactivate the plugin on your blog, and then re-check upload images. If the HTTP Error disappears then of course it is caused by a plugin. After that, do the test by activating one by one the plugins that you have disabled until you find which plugin is causing the HTTP Error problem.
Solution 7: Contact Your Hosting Provider
It is possible that the error is caused by some server configuration created by the provider hosting service You. For example, they may have implemented some new security measures that prevented your image uploader from working, or they recently ran an upgrade that changed the file permissions of your uploads folder.
The above are some of the solutions you can use if your WordPress site has an HTTP Error while uploading an image. Please try and good luck solving the problem. 🙂