How to Fix HTTP Error When Uploading Images to WordPress

Published: 16 November 2016
on channel: Raqib Zaman
36,786
45

So far, I have found that changing the image extension from .png to .jpg eliminates the HTTP error that I get when I try to upload an image to WordPress. Tell me if it works for you!
---
My Gear (づ⌐■ ͜ʖ■)づ
✪ I need to buy this webcam: http://amzn.to/2fWi3b7
✪ I like this keyboard a lot: https://therevisionist.org/reviews/th...
✪ This is the mic that I use now: http://amzn.to/2gqS6AO
♥ I love My SSD, so fast!: https://therevisionist.org/reviews/pn...
✪ HDD vs SSD Reliability: https://therevisionist.org/reviews/ss...
✪ SSD vs HDD power consumption: https://therevisionist.org/reviews/ss...
Follow me ┴┬┴┤( ͡° ͜ʖ├┬┴┬
✪ My Subreddit:   / bio_hacking  
✪ Facebook: https://www.facebook.com/profile.php?...
✪ Twitter:   / raqib_zaman  
✪ Google+: https://plus.google.com/+RaqibZaman
---
I believe many people encountered this HTTP error when uploading images to WordPress. I thought to share with you several solutions that may help you solve this problem.

This error appears after the image is struggling to upload for a while. Sometimes, the image is uploaded even if the error appears. Most of the time it’s the image’s size (height and width) that causes this, so trying to upload big images could trigger the issue.

Sometimes, the error can appear just once, for a particular image, but if it persists, try the following solutions or talk to your host.

Now let’s get to our solutions:

1. Decrease the image’s size. Don’t add a 2000 x 1500 image, for example. If your post content area is 700px wide, don’t add an image larger than that.

2. Change the image’s extension from .png to .jpg, or vice versa, then upload it again.

3. If the problem appears after installing a plugin, deactivate it and try it again. Some plugins can trigger the error.

4. Increase your PHP memory. Add this code define('WP_MEMORY_LIMIT', '64M') into your wp-config.php file. This setting may not work if your host does not allow you to increase the PHP memory limit, so I suggest talking to your support directly and ask them to change the limit for you. You’ll skip the hassle.

5. Check with your hosting company to make sure that they are using PHP 5.2.4+. Once, when we were on HostGator, someone from support was checking out an issue and discovered that we didn’t have the correct version of PHP. So, it’s a good thing to “bug” your hosting support and ask them.

6. Make sure you don’t have an apostrophe in the image file’s name (e.g. mary‘s-wedding.png), because that will trigger the error as well.

7. If you’re using an image optimizer plugin, deactivate it and see if that solves the issue. If the plugin was the cause, try different configuration settings or contact the plugin developer.

We’ve experienced such an issue with the EWWW Image Optimizer plugin, which triggered the HTTP error when we were uploading PNG files. It was working fine with JPEG files, but PNGs are better in some cases, so we really wanted to fix the issue, which we did, with the help of the developer.


Watch video How to Fix HTTP Error When Uploading Images to WordPress online without registration, duration hours minute second in high quality. This video was added by user Raqib Zaman 16 November 2016, don't forget to share it with your friends and acquaintances, it has been viewed on our site 36,786 once and liked it 45 people.