Title: HTTP Error when uploading to WordPress
Last modified: January 30, 2017

---

# HTTP Error when uploading to WordPress

 *  [blizeH](https://wordpress.org/support/users/blizeh/)
 * (@blizeh)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/http-error-when-uploading-to-wordpress/)
 * Hi,
 * When writing a post and trying to upload photos via ‘Add Media’ I get a HTTP 
   Error.
 * The file itself uploads just fine, but there’s no thumbnail, no other data, and
   I cannot view it from the add media screen.
 * I have tried:
 * – Adding the mod_security information to wp-admin/.htaccess
    – Changing theme
   back to default – Disabled all plugins
 * But still no luck.
 * The photo I’m trying to upload is just 1.82mb and 4000×3000.
 * Running WordPress 4.2.7 on PHP 5.3.29.
 * Thank you

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/http-error-when-uploading-to-wordpress/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/http-error-when-uploading-to-wordpress/page/2/?output_format=md)

 *  [dimitris33](https://wordpress.org/support/users/dimitris33/)
 * (@dimitris33)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/http-error-when-uploading-to-wordpress/#post-7307549)
 * Hi,
 * did you check the ‘temp’ folder of your server? you can try clearing it.Can i
   ask which version of Imagick you have?
 *  [Joe McGill](https://wordpress.org/support/users/joemcgill/)
 * (@joemcgill)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/http-error-when-uploading-to-wordpress/#post-7307560)
 * Hi [@blizeh](https://wordpress.org/support/users/blizeh/)
 * This sounds a lot like the same issue being discussed in [this thread](https://wordpress.org/support/topic/http-errors-on-media-uploads-after-45-update/page/2?replies=36#post-8308255).
 * Could you try adding the following line to the .htaccess file in the main WordPress
   directory on your server and see if that resolves your issue?
 * `SetEnv MAGICK_THREAD_LIMIT 1`
 * Thanks,
    Joe
 *  Thread Starter [blizeH](https://wordpress.org/support/users/blizeh/)
 * (@blizeh)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/http-error-when-uploading-to-wordpress/#post-7307583)
 * [@joe](https://wordpress.org/support/users/joe/) McGill – Thank you, my .htaccess
   now looks like this:
 *     ```
       AddHandler php53 .php
       Action php53 /cgi-bin/php53.cgi
   
       SetEnv MAGICK_THREAD_LIMIT 1
   
       # BEGIN WordPress
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteBase /
       RewriteRule ^index\.php$ - [L]
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule . /index.php [L]
       </IfModule>
   
       # END WordPress
       ```
   
 * But I’m still getting the same error unfortunately.
 * [@dimitris33](https://wordpress.org/support/users/dimitris33/) – thank you, unfortunately
   I don’t have access to the server’s temp folder, how do I check the Imagick version?
   I can’t see anything under phpinfo.
 * Thanks again
 *  Thread Starter [blizeH](https://wordpress.org/support/users/blizeh/)
 * (@blizeh)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/http-error-when-uploading-to-wordpress/#post-7307603)
 * Just tried adding this to my theme’s functions.php file:
 *     ```
       add_filter( 'wp_image_editors', 'change_graphic_lib' );
   
       function change_graphic_lib($array) {
       return array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' );
       }
       ```
   
 * Still getting the same http error 🙁
 *  [dimitris33](https://wordpress.org/support/users/dimitris33/)
 * (@dimitris33)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/http-error-when-uploading-to-wordpress/#post-7307604)
 * @blize
 * this is a temp fix, please try this plugin
 * [https://github.com/getsource/default-to-gd](https://github.com/getsource/default-to-gd)
 * > [@dimitris33](https://wordpress.org/support/users/dimitris33/) – thank you,
   > unfortunately I don’t have access to the server’s temp folder, how do I check
   > the Imagick version? I can’t see anything under phpinfo.
 * with a phpinfo or asking your hosting company.Don’t you have access to the server?
   can you ask the person who does?
 *  Thread Starter [blizeH](https://wordpress.org/support/users/blizeh/)
 * (@blizeh)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/http-error-when-uploading-to-wordpress/#post-7307606)
 * Ah, thank you so much! The plugin worked 🙂
 *  [torndownunits](https://wordpress.org/support/users/torndownunits/)
 * (@torndownunits)
 * [10 years ago](https://wordpress.org/support/topic/http-error-when-uploading-to-wordpress/#post-7307730)
 * I tried every tip in all the threads mentioned with no luck. Then the second 
   last post in one of the threads before it was closed recommended to deactivate
   EWW Image Optimizer if you had it installed. That solved my problem instantly.
 *  [blstone](https://wordpress.org/support/users/blstone/)
 * (@blstone)
 * [10 years ago](https://wordpress.org/support/topic/http-error-when-uploading-to-wordpress/#post-7307731)
 * I have had the same problem and tried 5 or 6 methods (including .htaccess edits)
   I found from forums and posts, which did not work.
    Great news is that GetSource
   plugin worked and solved this issue. I think at this point this is the real solution
   to this issue. Some are even saying this is a bug in the latest version WP.
 * Thanks, VM dimitris33!
 * Version: WordPress 4.5.2
 *  [idewpsupport](https://wordpress.org/support/users/idewpsupport/)
 * (@idewpsupport)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/http-error-when-uploading-to-wordpress/#post-8304900)
 * I use dreamhost.
 * Adding the code to the functions.php file did not work for me. Neither did modifying
   the .htaccess file.
    After perusing couple for a couple hours, I was finally 
   able to solve the problem by switching PHP Mode from **PHP 5.6 FastCGI** to **
   PHP 5.6 CGI** in Dreamhost’s account. For some reason PHP 5.6 FastCGI was causing
   the media uploader to flake out. I hope this works for some of you.
    -  This reply was modified 9 years, 7 months ago by [idewpsupport](https://wordpress.org/support/users/idewpsupport/).
 *  [hitechbiniou](https://wordpress.org/support/users/hitechbiniou/)
 * (@hitechbiniou)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/http-error-when-uploading-to-wordpress/#post-8329373)
 * Would be nice to tell us how to use [https://github.com/getsource/default-to-gd](https://github.com/getsource/default-to-gd)
   because I’ve tried it and it did nothing to fix HTTP error.
 * Thanks for explaining how to use this plugin as this is my only LAST resource
   to fix this problem of HTTP error uploading files to media library.
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [9 years, 7 months ago](https://wordpress.org/support/topic/http-error-when-uploading-to-wordpress/#post-8329653)
 * The HTTP error can be a lot of things. If installing and using the default to
   GD plugin fixes it, then the issue is that your images are not able to be properly
   processed by ImageMagik (which is the default option for WP and images).
 * The ‘common’ fixes are, in order:
 * 1. Make SURE you’re on at least PHP 5.6. DreamHost has PHP 7. I personally recommend
   it.
 * 2. Check if your tmp folder is full. If you don’t know how, ask your host to 
   make sure it’s not overfull 🙂
 * 3. Upload a SMALL image. A JPG or PNG of less than half a meg, not very large.
   I keep a 900kb gif handy for those tests.
 * If that magically works, check the size of the image. WordPress on Shared Hosting
   packages often has issues with large images. By which I mean file size _and_ 
   dimensions. If your image is over 1600px in any one direction, on shared, it 
   will probably fail because PHP is unable to resize it 🙁
 * If NONE of those work, install the GD plugin. No settings. Just instal, activate,
   and let it go. That will default to the slower, less optimal, but more fault 
   tolerant GD image libraries.
 *  [hitechbiniou](https://wordpress.org/support/users/hitechbiniou/)
 * (@hitechbiniou)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/http-error-when-uploading-to-wordpress/#post-8329703)
 * Hey thanks.
 * I will investigate further…
 * I’ve also sent this reply to my server manager.
 * regards
    Mario Bruneau
 *  [hitechbiniou](https://wordpress.org/support/users/hitechbiniou/)
 * (@hitechbiniou)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/http-error-when-uploading-to-wordpress/#post-8331111)
 * OK so here is my story about the HTTP error uploading files in media library.
 * I am using WordFence Security on ALL my websites and this newly created website
   on a addon domain WAS NOT USING WORDFENCE YET but since the .htaccess from the
   master domain name/website had all the codes pertaining to WordFence, all the
   addon domains are seeing the root .htaccess with the WordFence codes. So I got
   the HTTP error thing.
 * Hope this will help someone else using WordFence for their root domain and have
   multiple addon domain names and website on the same server.
 * regards to all the WordPress community.
    Mario Bruneau
 *  [technifreak](https://wordpress.org/support/users/technifreak/)
 * (@technifreak)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/http-error-when-uploading-to-wordpress/#post-8336097)
 * You can disable the Firewall setting for “Malicious File Upload (PHP)” in the
   Firewall section of Wordfence to fix this.
 *  [aslam7](https://wordpress.org/support/users/aslam7/)
 * (@aslam7)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/http-error-when-uploading-to-wordpress/#post-8362017)
 * GO TO DASHBOARD
 * SETTINGS > MEDIA
 * CHANGE THE LARGE SIZE ( THIS SIZE SHOULD BIGGER THAN IMAGE YOUR UPLOADING)
 * PLS REPPLY IF IT WoRKS

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/http-error-when-uploading-to-wordpress/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/http-error-when-uploading-to-wordpress/page/2/?output_format=md)

The topic ‘HTTP Error when uploading to WordPress’ is closed to new replies.

## Tags

 * [HTTP](https://wordpress.org/support/topic-tag/http/)
 * [http error](https://wordpress.org/support/topic-tag/http-error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 18 replies
 * 11 participants
 * Last reply from: [technifreak](https://wordpress.org/support/users/technifreak/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/http-error-when-uploading-to-wordpress/page/2/#post-8548705)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
