1. Home
  2. Help Center
  3. Getting Started
  4. Increase PHP values

To adjust on your own, here are some methods to try. Be aware that this section requires advanced knowledge.

Increase the Max Input Vars Limit

The max_input_vars directive can be configured in .htaccess, php.ini or wp-config.php file. We recommend to increase default value to 3000. Here is how you can do it:

In .htaccess

php_value max_input_vars 3000

In php.ini

max_input_vars = 3000

In wp-config.php

@ini_set( 'max_input_vars' , 3000 );

Increase Maximum Execution Time

You may receive a message such as “Maximum execution time of 30 seconds exceeded” or “Maximum execution time of 60 seconds exceeded”. This means that it is taking to longer for a process to complete and it is timing out. There are a number of ways to fix this error.

In .htaccess

php_value max_execution_time 300

In php.ini

max_execution_time = 300

In wp-config.php

set_time_limit(300);

Increase Memory Limit

In .htaccess

php_value memory_limit 256M

In php.ini

memory_limit = 256M

In wp-config.php

define('WP_MEMORY_LIMIT', '256M');

Troubleshooting

Should you not feel comfortable in trying the above methods, or the above did not work for you, you need to talk to your hosting about having them increase your PHP values.

Was this article helpful?

Related Articles