• Resolved irally

    (@irally)


    Upgraded to 3.5 but image uploads now refuse to work with the ‘HTTP Error’ message. Tried switching to the browser upload but it also fails.

    Still running another version of WordPress (3.3.1) on a different site which is located on the same server and it’s working fine.

    Anyone know what I can do to fix this?

    Thanks,

    Jonathan

Viewing 15 replies - 1 through 15 (of 21 total)
  • That is interesting. Could you provide a screenshot of the error you are getting. Also check the uploads folder to see if the file has actually been uploaded.

    Thread Starter irally

    (@irally)

    Just did a little bit of testing…it appears to be related to the size (pixel dimensions) of the image.

    Any image that is 1155 pixels (or more) wide, I get the HTTP Error message. Anything that is 1154 pixels or less, it uploads fine.

    It’s not related to the actual file size of the image. I tried to upload a 30Kb image that was 1155 pixels wide – it also failed. (The original image at the same size is over 200Kb).

    Check your site’s error logs for any memory errors.

    Thread Starter irally

    (@irally)

    @tomontoast – on checking the media section, the file does appear to upload but in the info panel, it doesn’t show the image dimensions and won’t allow different image sizes to be chosen when adding to a page.

    @esmi – I’ve contacted my hosts, waiting for a response.

    Thanks,

    J

    Thread Starter irally

    (@irally)

    Just checked the log…no memory errors reported.

    Any errors in the log at all? This does sound like a server configuration issue.

    I been recently having this issue too, and I usually upload images with resolution upto 1500px by 800px.

    The actual problem was the “e-Commerce” plugin. I deactivated the plugin and got rid of the “http” error.

    Thread Starter irally

    (@irally)

    There are a few errors but they are related to me messing around while trying to find the solution to the problem. No new errors on trying to upload the image within the last 20 minutes.

    I have disabled all plugins (there are only a couple) and switched back to WordPress standard themes but still have the same issue.

    This only started on upgrading to the latest version of WordPress. The other site, which is using an older version and is hosted on the same server, is still working perfectly.

    Looks like the simplest solution might be to downgrade to an older version of WordPress? Is this easy to do?

    I wouldn’t recommend rolling back but do you have a pre-upgrade database backup?

    Thread Starter irally

    (@irally)

    OK, re errors, when I try to use the browser uploader rather than the Flash uploaded, this error is generated:

    [Mon Dec 17 16:44:07 2012] [error] [client 94.192.29.103] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 4096 bytes) in /var/www/vhosts/irally.com/httpdocs/wp-includes/media.php on line 928, referer: http://www.irally.com/wp-admin/media-new.php

    Reupload media.php maybe? A fresh copy. (Keep a copy of your current one first.)

    Aha! It a memory issue! Try increasing the memory available to PHP.

    Thread Starter irally

    (@irally)

    Great, thanks Esmi. That did the trick. As suggested in the link, I added the following line to wp-config.php:

    define(‘WP_MEMORY_LIMIT’, ’32M’);

    Thanks…headache over!

    Excellent 🙂

    i still have this problem.. always shows “failed to upload”
    I have added this too: define(‘WP_MEMORY_LIMIT’, ’32M’);

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘HTTP Error on image upload after upgrade to 3.5’ is closed to new replies.