Reputation: 1035
I have a form that submited 3500 fields via a POST. This used to work with a few ini_set();
defined but since having the server rebuilt to include suhosin
it no longer works.
I've made these additions into the .htaccess to rectify this and make it work.
php_value suhosin.perdir pr
php_value max_execution_time 600
php_value max_input_vars 6000
php_value max_input_time 300
php_value post_max_size 320M
php_value suhosin.post.max_vars 6000
php_value suhosin.request.max_vars 6000
The values are higher than whats needed as this can be built upon by the client in the CMS, and may be needed in the future.
These can be seen to have an affect when using phpinfo();
but the form still only posts a certain amount of fields.
What is it i'm missing? I've trawlled stack overflow and it appears i've done everything i need to.
Upvotes: 0
Views: 176
Reputation: 1035
@carbontwelve There is a limit set on Apache mod_security for SecRequestBodyNoFilesLimit which was set to 128KB. This was a recent change made by our hosting provider to improve security. I got them to change it and BOOM, it worked like it used to.
Upvotes: 1
Reputation: 1100
It could be that that your PHP installation does not allow modification of the Suhosin Post variables on a per directory basis.
If you wish to update Suhosin ini settings on a per directory basis via .htaccess then you need to add suhosin.perdir = "p"
to your php.ini
Upvotes: 0