How to Increase PHP max_input_vars

If your PHP app displays the following error:

Warning: Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0

you have exceeded the maximum input variables for your app.

Don't worry; you can easily resolve this with a .user.ini file.

First, create a file named .user.ini in your app's web root directory using Cyberduck of Filezilla sftp client.

apps/APPNAME/public/.user.ini

cyberduck sftp

 

Then, enter the following line with the new value for your app's maximum input variables:

max_input_vars = 5000

The example above increases the maximum input to 5,000 variables.

You can confirm this customization is correct by creating another PHP script that contains only the following line:

<?php phpinfo(); ?>

Request that file through your browser, and you should see the new local value for your modified setting when you search the page for max_input_vars.

Alert: For Control Panel Help & Tutorials, click here: Panel Tutorials
  • 0 משתמשים שמצאו מאמר זה מועיל
?האם התשובה שקיבלתם הייתה מועילה

מאמרים קשורים

Customizing the PHP Configuration on your Server

Careful! We can't provide support for customizations or for any errors, downtime, or...

Disable the PHP Opcache on your Server

PHP 5.5, 5.6, and 7.0 have a built-in opcache that is enabled by default. The entire purpose of...

How to Change PHP max_execution_time

The PHP setting max_execution_time is the number of seconds PHP will allow a script to run before...

How to Change the PHP Timezone

The default timezone for PHP is UTC regardless of your server's timezone. This is the timezone...

How to Install PHP PECL Extensions

PECL extensions are third-party compiled extensions for PHP. Install the Compiler As PECL...