0

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

1 Answer 1

1

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

4
  • 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
    Commented Oct 29, 2014 at 8:59
  • @Rarst How is that possible? I run 'yum update' and it only goes to PHP 5.3?
    – Chloe
    Commented Nov 7, 2014 at 4:30
  • sorry, not a server person so I got not idea why it gives you something that outdated.
    – Rarst
    Commented Nov 7, 2014 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 Commented Dec 16, 2014 at 13:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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