Search our database

How to increase max_input_vars value for your web directory

The Problem:

If you are using web applications such as prestashop or magento, it is common that you encounter error like below:

Warning: your hosting provider limits the maximum number of fields to post in a form:
1000 for max_input_vars

The Solution:

By default the max_input_vars will be 1000, this is some kind of security prevention from the PHP module. Therefore if your application would require higher number of max_input_vars, you may increase the defined value slightly higher than the requirement by adding the line below to the .htaccess file in the web files main page directory.

php_flag max_input_vars 1234

Replacing ‘1234’ with the value you want to set

Tags: