Category Archives: .htaccess

How Can I Change max_input_vars From Godaddy Server

I cannot access php.ini file to edit max_input_vars. How can I change it from my webroot? I had created php5.ini file within my root and added the following.

You can simply set max_input_vars via htaccess

php_value max_input_vars 2000

if you got 500 error, you should use following

<IfModule mod_php5.c>

 php_value max_input_vars 2000

</IfModule>

More methods can be checked by following link

How to Increase max_input_vars

How To Fix Prestashop max_input_vars Error In Template Translations

I have got error message when translating templates like following: Attention! Your PHP configuration limits the number of fields in the form of post 1000 max_input_vars. Please ask your hosting provider to increase this limit to at least xxxx, or you will have to edit the translation files

You can fix this issue when you increase default value of max_input_vars.

e.g via .htaccess

php_value max_input_vars 2000

More methods can be checked by following link

How to Increase max_input_vars

How to Increase max_input_vars

How can I change the value of max_input_vars

there are several ways

1.you can add following codes in your php file

ini_set('max_input_vars', 2000);

2.Adding the directive into php.ini

max_input_time = 2000

If a Suhosin PHP extension is installed, you should also check these:

suhosin.post.max_vars = 2000
suhosin.request.max_vars = 2000

3.placing following lines into .htaccess

php_value max_input_vars 2000
php_value suhosin.get.max_vars 2000
php_value suhosin.post.max_vars 2000
php_value suhosin.request.max_vars 2000

if you got 500 error, you can use following

<IfModule mod_php5.c>

 php_value max_input_vars 2000

</IfModule>

If your Server API = CGI/FastCGI , you should create the “.user.ini” file. The file should contain:

max_input_vars = 2000
suhosin.post.max_vars = 2000
suhosin.request.max_vars = 2000