By hringir on
What does that mean?
Fatal error: Maximum execution time of 30 seconds exceeded in F:\hshome\hringir\adalsteinnjonsson.com\modules\adsense\adsense.module on line 21
What does that mean?
Fatal error: Maximum execution time of 30 seconds exceeded in F:\hshome\hringir\adalsteinnjonsson.com\modules\adsense\adsense.module on line 21
Comments
Maximum execution time of 30 seconds
Hringir,
This is the result of a setting in php.ini. The default value for running scripts in php is set on 30 seconds. Normally this should be enough but not when you install something large like a cms package. I.e. this takes longer then 30 seconds php will stop the script hence the error report. Now your error pointed to the script php stopped. Since php doesn't report an error on it self this will confuse you. Trust me, it had me running in circles for a while before I saw the light.
The solution: alter in php.ini the line max_execution_time=30 to max_execution_time=60. Sixty seconds should be enough.
OK, thanks
OK, thanks
How I solved this ...
I simply edited sites/default/settings.php and added the following line:
ini_set('max_execution_time', 0);
Worked a treat
Thanks, that solved the problem for me.
re: slightly dangerous
This is slightly dangerous as you could end up killing the resources on your web server with an infinite loop. Just use a large value instead.
Dave
My site: http://www.unitorganizer.com/myblog