I have a form which does not submit and have tracked the problem to the size of the $_POST array, the hidden form_id is missing coz $_POST seems to be limited to 200 items. It works fine on my local machine PHP5.2.5 but not on remote host running php4.4.8. Both systems have post_max_size set at 8M. Is there anyway I can up this limit or any other advice on how to get round this?

Thanks.

Comments

Wayne_Luke’s picture

Make sure your remote server is not running Suhosin. If it is, then you need to configure it to allow more variables. 200 is the default on many Suhosin installation. It will show up in your phpinfo() if its installed on the server.

scrypter’s picture

I added this to php.ini:-
suhosin.post.max_vars = 2048
suhosin.request.max_vars = 2048
and voila!

The hosts knowledgebase showed nothing when searching for suhosin and the phpinfo shown from the drupal/logs/status did not mention suhosin either, but it must be running.

Thanks!

www.purpleoar.co.nz/scryptik - Javascript editor with syntax error checking
www.purpleoar.co.nz - Web development, Drupal consultancy

www.purpleoar.co.nz/scryptik - Javascript editor with syntax error checking
www.purpleoar.co.nz - Web development, Drupal consultancy