• 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)
  • 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.

    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

    There is an extensive thread here with several workarounds: https://ww.wp.xz.cn/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 )

    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

    If neither of these works for you, try reading the thread mentioned at the top to see what others have done.

    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.