Title: http error on image upload
Last modified: November 7, 2016

---

# http error on image upload

 *  Resolved [Dave](https://wordpress.org/support/users/dvaer/)
 * (@dvaer)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/http-error-on-image-upload-resolved/)
 * When trying to upload images to the media library an unspecified ‘http error’
   appears, and an empty image thumbnail shows up. The image can be edited and opening
   the image path, shows the fully uploaded image.
 * PHP Version 5.5
    max_execution_time 30 memory_limit 256M
 * To correct this ‘http error’ I’ve added the following line to the top of my .
   htaccess file:
 * `SetEnv MAGICK_THREAD_LIMIT 1`
 * This fixes the problem in my case.
    -  This topic was modified 9 years, 7 months ago by [Dave](https://wordpress.org/support/users/dvaer/).

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Thread Starter [Dave](https://wordpress.org/support/users/dvaer/)
 * (@dvaer)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/http-error-on-image-upload-resolved/#post-8408674)
 * This doesn’t always solve the problem. Another possible solution might be to 
   add the following code to functions.php:
 *     ```
       function change_graphic_lib($array) {
       return array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' );
       }
       add_filter( 'wp_image_editors', 'change_graphic_lib' );
       ```
   
 * Source: [https://core.trac.wordpress.org/ticket/36534#comment:25](https://core.trac.wordpress.org/ticket/36534#comment:25)
 *  [isakengstrom](https://wordpress.org/support/users/isakengstrom/)
 * (@isakengstrom)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/http-error-on-image-upload-resolved/#post-8497413)
 * Hi,
 * This solution solves the HTTP-issue for me, but instead it causes a problem with
   the thumbnails on my site.
    See this image, the thumbnail of the post “Gemenskap
   genom tid och rum” is uploaded after I added the code to functions.php: [https://www.dropbox.com/s/xsducxrosckh8jh/thumbnails.png?dl=0](https://www.dropbox.com/s/xsducxrosckh8jh/thumbnails.png?dl=0)
 * Any ideas of how to solve this?
 * / Isak
 *  Thread Starter [Dave](https://wordpress.org/support/users/dvaer/)
 * (@dvaer)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/http-error-on-image-upload-resolved/#post-8497715)
 * I see what you mean. Could it be that the final image has a different aspect 
   ratio?
 *  [isakengstrom](https://wordpress.org/support/users/isakengstrom/)
 * (@isakengstrom)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/http-error-on-image-upload-resolved/#post-8497917)
 * Before I added the code to functions.php the layout theme showed all images in
   the same aspect ratio, regardless of what the original aspect ratio of the image
   was (like the three other pictures in the image I linked to in my previous post).
   Now that I’ve added the code på functions.php the theme seems to show the pictures
   in the original aspect ratio.
 * I’ve tried to regenerate my thumbnails, but then all pictures gets their original
   aspect ratios… The page also seems to be very heavy to load, just like the pictures
   is all shown in their original size but fitted into the space the theme gives
   theme.
 *  Thread Starter [Dave](https://wordpress.org/support/users/dvaer/)
 * (@dvaer)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/http-error-on-image-upload-resolved/#post-8498246)
 * OK, so with Imagick switched off your thumbnails aren’t being generated properly
   anymore. This could be specific to your theme.
 * This is currently a know bug in WordPress and I see you’re following the discussion
   here [https://core.trac.wordpress.org/ticket/36534](https://core.trac.wordpress.org/ticket/36534).
   So I propose to follow along there. Make sure you give enough info there such
   as your server setup so that you can receive help with this.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘http error on image upload’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: Dave
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/http-error-on-image-upload-resolved/#post-8806526)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
