Fixing the WordPress HTTP Error Image Upload

Johnny Greaves

Congratulations, you have crafted the perfect post for your WordPress site! However, when you hit “Upload Image”, a pesky HTTP error crops up over the media you included and what was once a good post now has an error across it. Why has this happened and how do you fix it? Keep reading to find out!

 

Why is There an Error?

There are actually several things which can go wrong when you are attempting to add media to a WordPress post. Things can often get a little bit jumbled in the media uploader and, if the software cannot figure out the cause, it will spit out the generic WordPress HTTP error image upload notification. This can be incredibly frustrating as you are given few indicators about what was actually wrong with the media. From images to give the post clarity to instructional videos, there is a whole host of reasons why you would want to include media in your posts. You need to try your best to work out what has happened and how you can fix it.

Double-Check It isn’t Temporary

Sometimes, errors happen for reasons outside of our control. When faced with a WordPress HTTP error image upload message, you should always wait a few minutes and then attempt to upload it again. You should also try to change the image if you can; making it smaller or putting it into a different format might also help. If you still keep getting the error message, this is not just a temporary issue and will require further fixes.

Increase WordPress’s Memory Limit

More often than not, your issue is due to a lack of memory on WordPress. Luckily, the fix for this is relatively simple. All you need to do is head to your wp-config.php file and add in this line of code:

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

This will increase your WordPress memory to 256MB. This is usually all that it takes to fix any memory issues you may be facing.

Try Another Media Uploader

The default media uploaders for WordPress are not the best and they can often run into memory issues and other glitches. There are many third-party plug-ins which can offer you better service than what is offered by the default WordPress services. Switching to one of these might be an option if you frequently run into HTTP problems. You can also code WordPress to make GD Library your default image editor over Imagick. This allows you to still use the default WordPress software but will hopefully avoid any further HTTP issues.

Fix Imagick

There is a fix for Imagick if you want to keep using it. You frequently encounter problems using this service as shared hosting can limit its ability to process images quickly. Access your .htaccess file and add this code: SetEnv MAGICK_THREAD_LIMIT 1This will hopefully fix the issue and allow Imagick to function as normal. Hopefully, one of the methods above has helped you to troubleshoot your WordPress HTTP error within the image upload function. Remember them for next time; you never know when you might need to solve this problem again! If your still having problem, contact our team and we will ask one of our WordPress developers to take a closer look!

Johnny Greaves

Author Johnny Greaves

Johnny has been building websites for 9 years, from small family-run company websites to internal web-apps for large enterprises. He has a management degree from the University of Manchester and likes to break things to see how they work. As far as we’re aware he can function solely on coffee and jelly-beans.

More posts by Johnny Greaves