Save 50% on web hosting @ Bluehost with FREE domain.

How to increase Max Input Vars on GoDaddy shared hosting account

When setup some of the WordPress themes, you may see Maximum Input Vars notification. It asks you to increase Max Input Vars in your host to be able to use the theme. After searching for help, you may find several options. But in my case for a WordPress installation on GoDaddy shared hosting account, only one works.

What is max_input_vars

PHP obtains input variables from HTML forms (through GET and POST requests), as well as from any cookies enabled on a page. By default, the maximum number of input variables allowed for PHP scripts is set to 1000.

You are advised to change this amount by setting the max_input_vars directive in a php.ini file.

While working on a website hosted on GoDaddy shared hosting package, adding it to php.ini doesn’t work. What works for me is to add this in .user.ini file at www root folder, i.e., public_html. Yes, you read it correctly, it is “.user.ini“. The line is simple:

This increase the value from 1000 to 3000.

One advice is to add following code in .HTACCESS file

In my case, this brings the website down and throws a 500 error.

Leave a Reply

Your email address will not be published. Required fields are marked *

Post Navigation