Having trouble adding a new media to your website? It was still working few days ago but you see now an HTTP error message when uploading an image to WordPress.
If your message is similar to the one below, the following tips might help you solve your problem.
Look for the error message
Usually the error messages are more explicit. This one could make you pull your hair out for hours because there is no hint to help you investigate the issue. You can still get the same error after testing your uploads with different image formats and sizes.
If the problem was related to permission issues with adding files to your content folders, you would in general see a warning message indicating that you are not allowed to upload files or create folders.
If that was the case, you will need to change the file permissions directly on your website. Your hosting provider should be able to assist you with this procedure if you need help to change the permissions.
Check if your image has been uploaded
If your problem is not related to the file permissions, you might see the icon below instead of your image.
Click on that icon to display your image URL.
Copy and paste the URL into your Web browser and verify that your image is correctly displayed: it means that your image has been uploaded despite the error that is displayed.
Two possible fixes
Problem related to a plugin
If you have recently installed a new plugin, disable it and see if it solves your upload problem. If nothing changes, you can always re-enable your plugin.
Update your PHP version
If disabling your plugins did not work, the issue could be related to a change that was proceeded in the backend by your hosting provider.
PHP is a programming language used by WordPress. Updating the version of PHP has solved the issue for me and could maybe solved yours.
[Tweet “If you have trouble uploading a new media to WordPress, check your plugins or your PHP version.”]
However, before changing anything on your website, make sure that you have a recent backup of all your data. I would advise that you get in touch with your hosting provider and see with their support team if you need to update your PHP version.
I hope that one of those two solutions will solve your problem with uploading new images to your site. If you found another fix, let us know about it by sharing your solution in the comment section below.
Leave a Reply