I'm getting an HTTP error when trying to upload an image. The image is 6MB, yet I was able to upload a 10MB image just previously. I set the following, but they did not help:

define('WP_MEMORY_LIMIT', '64MB');
define('WP_DEBUG', true); # could not start the upload
post_max_size = 12M # php.ini
upload_max_filesize = 12M # php.ini
max_input_time = 120 # php.ini

I restarted httpd. There is no message in httpd/error_log. I have Wordpress 4.0, and PHP 5.3.3.

None of the following answers were helpful.

How to Fix HTTP Error When Uploading Images?

"HTTP error" randomly on image uploads

HTTP Error when uploading images

up vote 1 down vote accepted

I updated PHP to 5.3.3-38 (el6) and that seemed to fix it for now.

  • Please note that PHP 5.3 is obsolete version and no longer maintained. For your sake (and everyone happening upon this answer) try to run latest (currently 5.6) or at least stable version (currently at least 5.4). :) – Rarst Oct 29 '14 at 8:59
  • @Rarst How is that possible? I run 'yum update' and it only goes to PHP 5.3? – Chloe Nov 7 '14 at 4:30
  • sorry, not a server person so I got not idea why it gives you something that outdated. – Rarst Nov 7 '14 at 8:55
  • 1
    @Chloe some linux distros are slow to bring packages up to the latest version in order to avoid any backwards compatibility issues. they usually apply any security fixes to the version maintained in their repos. you can update PHP by using another repo: servermom.org/upgrade-php-53-54-55-centos/1534 – karpstrucking Dec 16 '14 at 13:11

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.