问题
My hosting provider is using PHP 5.2.17 and I have problems with max_input_vars that is set to 1000
I am using Prestashop and translations are not working.
I have tried to add to .htaccess:
php_value max_input_vars 6000
php_value suhosin.post.max_vars 6000
php_value suhosin.request.max_vars 6000
And after that I cannot access my page, I get I get page not found error?
Can you help me with this?
Thanks
回答1:
It should work, If you add
php_value max_input_vars 6000
php_value suhosin.post.max_vars 6000
php_value suhosin.request.max_vars 6000
to your .htaccess.
be sure, the webserver can read the .htaccess file you created and there are no other typos in that file.
If you get a blank page, check the errorlog of apache for errors:
tail -f /var/log/apache2/error.log &
and if you have the rights: check the syslog too for errors when you restart apache:
tail -f /var/log/syslog &
sudo apache2ctl restart
来源:https://stackoverflow.com/questions/14309258/max-input-vars-limited-in-php-5-2-17