I have a large, complicated form that when submitted, triggers this error. What is happening?
Fatal error: Maximum execution time of 30 seconds exceeded in /home/content/91/9895691/html/annapolisdesign/wp-content/plugins/gravityforms/forms_model.php on line 2401
Arnav Joy answers:
you have to increase max execution time in php.ini setting of your sever
ini_set('max_execution_time', 300); //300 seconds = 5 minutes
Arnav Joy comments:
see this article
http://www.clickonf5.org/11921/solution-for-wordpress-php-error-maximum-execution-time-of-30-seconds-exceeded/
Francisco Javier Carazo Gil answers:
Or better I always use this function in this cases:
set_time_limit (0);
0 is unlimited in importing data services is necessary to do it or choose a good value, big enough.
Francisco Javier Carazo Gil comments:
You have to place this code before long execution problem.
If you don't know where is it placed the problem you can include it into your php.ini, look for max_execution_time and change the value which is with it.
Look at it: http://php.net/manual/es/info.configuration.php#ini.max-execution-time
Kyle answers:
I used to get this problem when I used a g form for creating sites on a multisite network. It may be what the other two stated above, but if those don't work you may want to raise the upload memory limit and see if that works, which you can do by adding this to your wp-config near the top
define('WP_MEMORY_LIMIT', '32M');