Support » Fixing WordPress » HTTP Error when Uploading Images

  • Resolved Head Goldfish

    (@shoelaced)


    This is really ridiculous and it’s driving me crazy. I’ve got in the realm of 10 WordPress installs on the same server running different sites, and I’ve never, ever, had a single problem. Now all of a sudden I have one site that I set up and right off the bat it won’t let me upload images, giving me an incredibly vague “HTTP error” message. After a lot of research nothing has worked, and now one of my other sites which was working perfectly is giving me the same error. Only that one. To make matters even more confusing, I uninstalled and re-installed WP altogether on the first site, the image uploading worked, and now all of a sudden it doesn’t again and I haven’t updated or changed anything.

    Can someone please help, and let me know whether this error tends to be in WP or serverside? I’m at my wit’s end.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Forum Moderator & Support Team Volunteer

    try

    df -h

    any file systems running short on space?

    Thread Starter Head Goldfish

    (@shoelaced)

    Thanks for replying. I’m not sure what you mean…

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Forum Moderator & Support Team Volunteer

    are you using a VPS or shared hosting? You said you have 10 sites on this server.

    Thread Starter Head Goldfish

    (@shoelaced)

    It’s hosted by a 3rd party, but it’s unlimited bandwidth and space and all that.

    Thread Starter Head Goldfish

    (@shoelaced)

    FOUND A FIX!

    Uggghhhh…..

    So my host had to create a custom .user.ini file and put it in the root directory of every one of my domains. The file is just “.user.ini” and contains just this:

    memory_limit = 1000M
    upload_max_filesize = 2000M
    post_max_size = 2000M
    max_execution_time=120
    max_input_time=120

    Hope this helps someone else!

    Hi! Could you please help me? I’m having the same problem but I don’t know how to code or any other advanced things, I’m just now building my blog. I see that you found a solution but can you explain to me what to do with it? Where do I find the root directory of a domain? Where do I paste what you wrote? Thanks in advance!

    Had this issue after moving from a shared host to a VPS.

    Tried every solution I could find that’s currently been documented – none worked.

    From enabling WPs debug mode, I saw that a plugin was giving an error whenever an image was uploaded. The plugin was WR ContactForm (https://en-gb.wordpress.org/plugins/wr-contactform/) and once deactivated the uploads worked again. Obviously something with the VPS config and that plugin together was to blame!

    The error was:
    Fatal error: Call to undefined function iconv() in /home/xxx/public_html/wp-content/plugins/wr-contactform/libraries/init/plugin.php on line 80

    • This reply was modified 4 years, 3 months ago by cokeyblokey.
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘HTTP Error when Uploading Images’ is closed to new replies.