- This topic has 0 replies, 1 voice, and was last updated 2 years, 6 months ago by
Ankit Srivastava.
How to set the max_input_vars variable for your entire web hosting account?
-
There can be times when you are attempting to edit some file and trying to save that file, you may get a strange error :
12345Warning, your PHP configuration limits the maximum number of fields to post in a form:<strong class="bbc">1000</strong> for max_input_vars.Please ask your hosting provider to increase the this limit to 5000 at least or edit the translation file manually.It seems that the default setting of the php version our customer have chosen was set to a lower value (I believe it was 1000) and this was causing an issue with the script used for verifying the language file edits.
Solution :
The resolution of this issue seems to be quite a simple one. In order to resolve this issue I added the following code to the .htaccess file used by the client’s Prestashop application.
1php_value max_input_vars 5000That solved the issue and I was able to perform the changes in the language files used by the client’s website.
Why the default limit is so low:
The max_input_vars variable should be a lower value as if it is greater one it opens the door to abusive behaviour mostly with DDoS attacks hash collisions. This is the reason why we keep that variable lower on all our shared hosting packages.
If you are getting the same error message and the suggested fix does not resolve the issue for you please contact our technical support team as they will investigate and surely resolve this issue for you.
You must be logged in to reply to this topic.