max_input_vars limited in PHP 5.2.17

不问归期 提交于 2020-01-10 03:51:47

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!