Title: media library http error
Last modified: August 31, 2016

---

# media library http error

 *  [johnroughley](https://wordpress.org/support/users/johnroughley/)
 * (@johnroughley)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/media-library-http-error/)
 * I’ve started getting http error when uploading images to the media library. The
   thumbnail also doesnt display in the list of files in the library. When you insert
   the image it doesnt display, but when you look at the text the `width="1"` and`
   height="1"`. The image then displays when you change the values.

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

 *  [beingboston](https://wordpress.org/support/users/beingboston/)
 * (@beingboston)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/media-library-http-error/#post-7332363)
 * I’m also having the same issue on a brand new WordPress site and I haven’t installed
   a single plugin yet. I tried it on 4.5.1 and it became such an issue that i reverted
   to 4.4.x and I’m still getting the 1 pixel issue, but I’m able to upload images
   finally.
 * Please let me know if more info is needed.
 *  [caboodlekids](https://wordpress.org/support/users/caboodlekids/)
 * (@caboodlekids)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/media-library-http-error/#post-7332364)
 * IM having the saem issue. Ive had to make images smaller and smaller to upload
   them but then is affecting the quality in my blog when I try and make them larger
 *  [hmclean](https://wordpress.org/support/users/hmclean/)
 * (@hmclean)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/media-library-http-error/#post-7332377)
 * There is an extensive thread here with several workarounds: [https://wordpress.org/support/topic/http-error-when-uploading-images-17/](https://wordpress.org/support/topic/http-error-when-uploading-images-17/)
 * It’s my understanding that WP 4.5 does so much more processing with images and
   especially on shared hosting, it’s creating problems. There are two distinct 
   workarounds that many have had success with. I tried the htaccess method and 
   it solved the problem for me.
 * 1) Add this to your .htaccess file at the root of your WordPress installation
   just before the `# BEGIN WordPress` line:
 * SetEnv MAGICK_THREAD_LIMIT 1
 * OR
 * 2) add this to your themes functions.php file (**actually add to a child theme
   functions.php file or use a plugin like [Code Snippets](https://wordpress.org/plugins/code-snippets/)**)
 *     ```
       add_filter( 'wp_image_editors', 'change_graphic_lib' );
   
       function change_graphic_lib($array) {
       return array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' );
       }
       ```
   
 * Alternatively, you may install this plugin instead to change the default image
   editor:
    [default-to-gd](https://github.com/getsource/default-to-gd)
 * If neither of these works for you, try reading the thread mentioned at the top
   to see what others have done.
 *  [beingboston](https://wordpress.org/support/users/beingboston/)
 * (@beingboston)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/media-library-http-error/#post-7332381)
 * The memory size fixed my issue!
 * > If anyone has this same problem, please try verifying that you have enough (
   > 64MB+) server memory allocated to Apache/PHP in your server configuration settings.
   > 
   > You can also add this to your wp-config.php file:
   > `define('WP_MEMORY_LIMIT', '64MB');`
 * Now i’m able to upload images, see the correct size, and add them to my articles
   with their proper size.

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

The topic ‘media library http error’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 4 participants
 * Last reply from: [beingboston](https://wordpress.org/support/users/beingboston/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/media-library-http-error/#post-7332381)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
