Fatal error: Maximum execution time of 30 seconds exceeded

Fatal error: Maximum execution time of 30 seconds exceeded

by Niraj Shahi -
Number of replies: 3

After the install on a windows machine I am getting this following message. I can not go beyond after getting this message.

Fatal error: Maximum execution time of 30 seconds exceeded in C:\Users\nshahi\Documents\APOLLO WORK\MOODLE\MoodleWindowsInstaller-latest-25\server\moodle\lib\moodlelib.php on line 8360

 

 

Average of ratings: -
In reply to Niraj Shahi

Re: Fatal error: Maximum execution time of 30 seconds exceeded

by Ken Task -
Picture of Particularly helpful Moodlers

http://lmgtfy.com/?q=Fatal+error%3A+Maximum+execution+time+of+30+seconds+exceeded

The 'short' answer ... find the php.ini file on your system.  Edit the file with NotePad.  Search for max_execution_time and replace 30 with 160.  Save the file.

Restart Apache web server.

TIA (try it again!).

'spirit of sharing', Ken

Average of ratings:Useful (3)
In reply to Ken Task

Re: Fatal error: Maximum execution time of 30 seconds exceeded

by angel terron -

secuencia que indicas no esta en mi php.ini

In reply to Ken Task

Re: Fatal error: Maximum execution time of 30 seconds exceeded

by Matt Bury -
Picture of Particularly helpful Moodlers Picture of Plugin developers

Hi Ken,

Thanks for a very helpful post smile

To add some extra details, if you try to install a plugin in Moodle 2.x and get a blank screen on moodle/admin/index.php, it's probably a memory or code execution problem. If you remove the new plugin directory and all it's files, i.e. revert the changes that are triggering the error, you can then access your site admin settings:

Site administration > Development > Debugging

Set Debug messages to DEVELOPER: extra Moodle debug messages for developers

Then try to install the plugin again. You should get a PHP stack trace that will tell you something like: Maximum execution time of XX seconds exceeded

If this is the case, then following Ken's advice and upping the max_execution_time in php.ini and restarting your server's services should resolve the issue.

Alternatively, you might get a memory exceeded type message, in which case finding and upping the memory_limit setting in php.ini should cure the problem. I usually put it up to memory_limit = 1024M

I hope this helps! smile

Average of ratings:Useful (2)