• I keep getting the Error message HTTP Error come up when I try to upload images. Sometimes they will upload if I resize them but this only works occasionally. It might take one image of a certain size and then kick out the next one even though it is the same size. I am at a loss as to what to do.

    I have already been in touch with the host any they can’t find a problem and say it is a wordpress issue.

    Can anyone help?

Viewing 15 replies - 31 through 45 (of 75 total)
  • …oh, you can edit your comments, so the error in the previous comment has been corrected… but you can’t delete the post you posted to correct the previous comment!!!

    Thank you, Ahir Hemant! Solution 1 worked for me too. If you get a minute, can you tell us how/why this works? Thank you very much!

    Read my comments. I explained all this. Ahir’s solution changes WordPress from Imagick to GD for image processing.

    Thanks, David!

    THANK YOU AMIR!

    Solution 1 worked for me! Hurray! I’m on WordPress 4.5.1.

    I’m a major beginner, and didn’t know what “Put this is your themes function.php” meant. If you need more explanation, this is what I did.

    -From your dashboard go to Appearance > Editor

    -Then on the far right click the link that says Theme Functions (functions.php)

    -Now there is a ton of code written. The top line is:

    <?php

    I changed it to now say:

    <?php

    add_filter( ‘wp_image_editors’, ‘change_graphic_lib’ );

    function change_graphic_lib($array) {
    return array( ‘WP_Image_Editor_GD’, ‘WP_Image_Editor_Imagick’ );
    }

    -Then I clicked Update File, and I was able to upload my images on posts just fine again.

    Hope this helps other newbies like me. Thanks again Amir! Saved me a huge headache trying to figure this out!

    I tried all 3 methods: adding the filter to the functions.php, adding the line in .htaccess file, defining memory limit. None of these worked for me. I can upload PNGs fine, but not the JPGs. I will contact my host to try to resolve this issue. Really, this 4.5. update is breaking a lot of stuff…. I just wanted to say that I tried this on a new website I am setting up, and it is not a good thing that I lost 30 mins on just setting things up…. Really dissapointed.

    Edit: Actually it had something to do with Apache and the control panel settings. Quick call to the hosting and everything was fixed. ?? But, still dissapointed with the updates that break things.

    Exactly that …

    dissapointed with the updates that break things.

    I tried everything without success, but in the end, it appeared that the problem was with my hosting. Thanks everyone for support!

    Wanted to add my solution here. I’m on Windows 2012 running WordPress 4.5.1 on IIS 8/php v7.

    I kept getting HTTP ERROR on any media upload over 30mb. After reading article after article on how to modify the php.ini file for all the things described in this thread with nothing working I started to think maybe it could be a Windows limitation.

    After a short google on media uploads in IIS 8 I ran across this article Increasing maximum allowed size for uploads on IIS7

    Sure enough, mine was set to 30mb. I entered 200000000 for the new value which puts the max file upload size at 200mb to match my post size limit for WordPress. After a quick restart of IIS, WordPress was working just fine with my 80mb file upload. Hope this helps a windows user.

    Thank you Ahir for the solution, #1 worked for me too! And thank you David for explaining what this change actually does. Appreciate it ??

    Actually it had something to do with Apache and the control panel settings. Quick call to the hosting and everything was fixed. ?? But, still dissapointed with the updates that break things.

    DekiGk or Blazgt: Can you please expand on what the problem was with Apache? I’ve tried all the previously mentioned solutions as well with no success.

    Thanks!

    Ohh Thank you to all, My solution is working perfect and sorry i was out of town so not able to explain how it is work Thank you David for explaining.

    Thanks
    Ahir Hemant

    I have the same problem since updating to 4.5.1

    I pasted this code to the last part of my function.php is it correct?

    add_filter( ‘wp_image_editors’, ‘change_graphic_lib’ );

    function change_graphic_lib($array) {
    return array( ‘WP_Image_Editor_GD’, ‘WP_Image_Editor_Imagick’ );
    }

    A million thanks to you Ahir Hemant, it works. Your such a life saver man!

    Thanks,glad to help you!!

    I have tried every solution out there and nothing seems to be working for me. Its so frustrating how I can’t upload anything bigger then 1024px wide.

    I’m hosting with 1&1 I’ve looked at my PHP.INI settings from my control panel and max file size is at 40M

    I’ve adjusted wp-config file, .htaccess file and functions.php (not all at the same time) disabled all plugins and nothing.

    Anyone else still struggling?

Viewing 15 replies - 31 through 45 (of 75 total)
  • The topic ‘HTTP Error. when uploading images’ is closed to new replies.