There are many commonly-seen WordPress errors which have caused much trouble for beginners, and the WordPress HTTP error on image uploads is among the most annoying ones. When this error happens, you just cannot upload images or any other kind of media files.
The causes for this error vary. So it is easy to find a fix that works for others having the same problem, but it could be rather hard to get one that works for you. This is where the difficulty lies in.
Considering this situation, we have detailed several possible solutions that you can try if you are stuck with the error. Hopefully, there is at least one method working for your blog. Remember to be careful when trying as some of the solutions require modification of important files.
Solution 1: Change the File Permissions of the Uploads Folder
One of the most common causes of the error is the incorrect file permissions. If the file permissions are changed accidentally, the uploads folder might not be writable or readable, which leads to image upload problems.
To correct the file permissions, you have to connect to your server with an FTP client or a web-based file manager. Note that the details below are based on the File Manager in cPanel.
First of all, find the uploads folder with the path /wp-content/uploads/. Right-click on the folder name and choose “Change Permissions”.
On the pop-up window, change the permissions to “744” and then click on the button saying “Change Permissions”. You can also try “755” later if “744” does not fix your problem.
Now upload some new images to your blog to see whether the HTTP error has disappeared.
Solution 2: Disable the Flash Uploader
The built-in Flash based file uploader is easy-to-use, but it has been found to cause some problems with certain WordPress installs. Therefore, one of the first methods to try is to disable this uploader if you have ever met troubles when using it, and then try the browser uploader.
This has worked for a large number of bloggers. You can simply switch to the browser uploader by following the link given on the upload screen or disabling the Flash uploader completely.
Solution 3: Exclude Flash Uploader from Access Protection
If you are using htpasswd (or password protected directory) with .htaccess, your web server might be stopping the /wp-admin/async-upload.php file from executing properly. In this case, you can add the following code snippet into your .htaccess file to make sure the Flash uploader is excluded from the authentication.
Note that the code above also excludes WordPress Cron and SXLRPC since they could not be handled correctly, either. If you do not want these rules, just remove them from the code.
Solution 4: Change the File Upload Path
To make images well-sorted, you may have defined custom paths for images and files to be uploaded, and this could also be the root of the HTTP error. To resolve this issue, you need to get the media settings back to the default so that images are all uploaded to the /wp-content/uploads/ folder instead of sub-folders.
The settings can be changed by going to “Settings” > “Media” in the admin area of your blog. Make sure there is no organization options are selected in the “Uploading Files” section. This is one of simplest while most effective solutions.
Solution 5: Change the PHP Version
If all of the methods above do not work, you can still try switching the PHP version you are using to a newer one, for example, changing from PHP 4.x to 5.x or from PHP 5.0 to 5.1. This has also fixed the HTTP error for many people. Most web hosts allow you to change the PHP version in your control panel.
Solution 6: Disable the Plugins on Your WordPress Site
Plugins are helpful, while they usually bring troubles, too. You can deactivate the plugins on your blog, and then re-check the image uploads. If the error is gone, then it should be caused by a plugin. At this time, you need to spend more time testing each plugin until finding the one that causes problem.
If the plugin giving rise to trouble is important and you do not want to delete it, you should seek help from the plugin author as soon as possible. The author might be able to offer you a solution.
Solution 7: Contact Your Hosting Provider
It is possible that the error is caused by some server configurations made by your hosting provider. For instance, they may have applied some new security measures which accidentally stopped your image uploader from working, or they have recently run an upgrade which changed the file permissions of your uploads folder. No matter which the case is, asking the support team for help does no harm.
The result could be happier if you are dealing with a good WordPress hosting provider which is kind enough to investigate the problem for you and then offer you a solution even if the fault is not theirs.