• Hello,
    I’m using WordPress 4.5. From the last week, an error occurred when I upload an image.
    Help me ……!!!

Viewing 8 replies - 1 through 8 (of 8 total)
  • does image appear in media library? have you checked?

    first thing to check will be if you have enough space on your hosting account, 2nd i will advise to enable error logging to file and check for any error after uploading a image.

    Enabling Error Log in wordpress

    Thread Starter dipanshud54

    (@dipanshud54)

    No image don’t appear in the media library.And I have more than 10gb space.
    I deactivating all plugins and then activate them, but nothing happened.
    I changed the file permission from File Zilla, but nothing happened.
    , Please tell me another method.

    WP 4.5 introduced some issues with uploading images. Many people are experiencing problems. There is an extensive thread here with several workarounds: https://ww.wp.xz.cn/support/topic/http-error-when-uploading-images-17/

    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 likeCode 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.

    Can confirm about the HTTP Error problem. As poster above mentioned this appears to be widespread.

    BE SURE TO CHECK YOUR MEDIA LIBRARY even if you get the error. I upload, get the HTTP Error but the images still appear in my media library anyway.

    I have faced the same problem while uploading images in [redacted]
    I have changed JPG images to PNG,then the problem has solved.
    When you get problem in uploading or crunching,change the image format from jpg to png and viceversa.
    Hope this helps.
    Thankyou

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    if2009bha:

    Thanks for your reply. There’s no need to have left so many. You triggered the forum’s spam filters. I’ve allowed one of your messages to publish and removed the rest.

    Hey,
    I had an issue too and found out that my share host was running php version 5.5.36. I had to add ”AddHandler application/x-httpd-php56 .php” to the .htaccess file to get the server to run php 5.6

    I hope this helps

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

The topic ‘Http error occur while uploading image in media library’ is closed to new replies.