To keep it clear I'll give as much info as I can to solve this issue.
I tried importing a database today and got the message that my max_input_vars
was on 1000
and it needed to be upped in php.ini
.
I changed it to many numbers starting from 2000
up to 10000
. But everytime I changed it it would not update the max_input_vars
and would keep giving me the same error.
I tried restarting the server and looking around the internet but could not find a fix. I hope someone here can help me out with this problem.
If you created your own PHP. ini file, then add the same code inside it: max_input_vars = 5000 Simply change the value to the recommended value. For example, 5000. Save your changes, and reboot your localhost or your server.
The PHP setting max_input_vars determines how many input variables may be accepted (limit is applied to $_GET, $_POST and $_COOKIE superglobal separately). If there are more input variables than specified by this directive, an E_WARNING is issued, and further input variables are truncated from the request.
By default, the maximum number of input variables allowed for PHP scripts is set to 1000. You can change this amount by setting the max_input_vars directive in a php. ini file. To verify the current value of the max_input_vars directive and other directives, you can use the phpinfo() function.
Three things you might have overlooked:
If you've never updated that parameter, it's probably commented out like this:
; max_input_vars = 1000
So make sure you remove this sneaky semicolon at the beginning of the line.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With