Tuesday, 30 August 2011

Drupal Error - PHP Warning: Unknown: POST Content-Length of 796 bytes exceeds the limit of -2147483648 bytes in Unknown on line 0

The following error appears in your apache log and it's not possible to do a lot on your drupal site....

PHP Warning:  Unknown: POST Content-Length of 796 bytes exceeds the limit of -2147483648 bytes in Unknown on line 0

This was caused by changing the values in the php.ini for the file upload max size.  Ensure that you encase all values in speech marks.

post_max_size = "1024M"
upload_max_filesize = "1024M"

1 comment:

  1. Hi, i'm so glad i run into this post, i changed the ini file way back ago developing a new upload script and i forgot that i did change it, today the single simplest post action doesn't seem to be working, all fixed now!
    i'm happy i found this tip, thanks for sharing!

    ReplyDelete