Site icon Anthony Carbon

How to increase PHP Max Input Vars?

How to increase PHP Max Input Vars? Most common errors I’ve encountered is when I’m adding an menu items in menu dashboard. Some hosting company is easy to fix, something like using php.ini, or .user.ini file. In my case I’m using WP Engine hosting company and I’ve tried this two and I guess its not my luck using this two. I used .htaccess to increase the PHP Max Input Vars and it works perfectly. Its up to you if any of them can work on your end. Anyway, I’ll put the code below in 3 different ways.

.user.ini

max_input_vars = 5000;

php.ini

max_input_vars = 5000;

.htaccess

php_value max_input_vars 5000
Exit mobile version