Increase the max_input_vars in php.ini

Avatar
  • Answered
I am stuck with an error:
"Warning, your PHP configuration limits the maximum number of fields to post in a form: 1000 for max_input_vars.
Please ask your hosting provider to increase the this limit to 1318 at least or edit the translation file manually." when I try to alter some translations on my front Office. Is it possible to increase the max_input_vars from the 1000 default to 1500 ou 2000?
Avatar
Arnel C
  • Answered

Hello Daniel,

Thanks for the question about restarting the Apache service.  It depends on your account subscription.  If you're on a shared server, then you will need to contact our live technical support team.  If you're on a VPS or Dedicated server, then click on the link and you'll several ways to restart the service.

I hope that helps to answer your question! If you require further assistance please let us know!

Regards,
Arnel C.

Avatar
Scott
Hello semjonova, Thank you for your question on editing the max_input_vars for your php settings. Please make sure set your php.ini file to be recursive or it will only work in the folder in which the file resides.
Avatar
Scott
Hello, Sorry to hear you are having issues changing your max_input_vars. Be sure that your php.ini file is set to be recursive. This way the change will be for all folders and files. Kindest Regards, Scott M
Avatar
johnpaulb-imhs1
Hello phammanhthang87, Thank you for contacting us about issues increasing your PHP settings on your server. Here is a helpful link to our helpful walk-through guide on How to Change PHP settings in your hosting account. That guide walks you through changing your PHP settings in your php.ini file, instead of your .htacess file. If you do not see a file named php.ini in your public_html, please contact our Support Department and request that we create one for you. You may have to make the PHP changes recursive, meaning it affects all child folders. You can confirm the PHP setting has changed with a phpinfo page. Let us know if you have any further questions. Thank you, John-Paul
Avatar
johnpaulb-imhs1
Hello, Thank you for your question about increasing the php_value max_input_vars. This is a PHP setting you can adjust in your cPanel at any time. This is covered in depth in our guide on how to Change PHP settings in your hosting account. If you have any further questions, feel free to post them below. Thank you, John-Paul
Avatar
Scott
Hello,

I have made sure you have a copy of the php.ini file in your account under the public_html folder. I went ahead and set the max_input_vars to 7000 for you. Feel free to edit that file at any time to adjust any of the settings you need for your account.

Kindest Regards,
Scott M
Avatar
JeffMa
We are happy to help. To adjust any PHP configuration settings, you would simply need to make a change to your php.ini file. For a tutorial on how to do so, take a look at the following: How to update your local php settings As this may need to be changed across your whole site, se sure to also make your php.ini file recursive as well.
Avatar
JeffMa
As the script that requires this to be enabled deeper within your directory structure, you may need to make your php.ini file recursive as by default, it only effects the directory that it is in. Also, here is a similar question we answered, where someone had to Increase the max_input_vars in php.ini, and make it recursive.
Avatar
johnpaulb-imhs1
Hello Andre_Sa, Thank you for your question regarding your PHP settings. Here is a link to an article in our support center titled "How to update your local php settings." This helpful article explains how to modify your PHP settings. If you have any further questions, feel free to post them below. Thank you, -John-Paul