Fatal error (maximum execution time exceeded) when using Drupal on WAMP

Have you had this error while developing a Drupal site on a WAMP server?  Its common, and relatively easy to fix.

<strong>Fatal error</strong>:  Maximum execution time of 30 seconds exceeded in <strong>C:\wamp\www\&lt;mysite&gt;\includes\database.mysqli.inc</strong> on line <strong>108</strong>

It normally seems to appear when trying to display the admin or modules page, and this is simply because of the module tasked with checking for updates - a process which can take a painful amount of time while developing (hint: install the Admin Module and bypass the admin page - it saves a massive amount of time and makes life much easier).

So the first option is to disable the module responsible for checking for updates (of course, this means you will get no warnings about new updates).  Navigate to Admin - Site Building - Modules and uncheck the Update Status module.  This should speed up the rendering of the modules page considerably.

Alternatively, if you want to keep the Update Status module in operation, then we need to remove the 30 second timeout to allow Drupal to compile the information it needs and render it on the screen.  The only way I have had success with this is to add the following line to the PHP Settings section of the sites/default/settings.php file:

<strong>ini_set('max_execution_time', 0);</strong>

I hope this helps others who come up against this problem.

 

Reference: http://drupal.org/node/66105

 

Thanks

Thanks alot......

Thanks very much! This helps

Thanks very much! This helps a lot!

thanks a lot......

thanks a lot......

Thank you!

Thank you!

Thank you! That fixed it:)

Thank you! That fixed it

:)

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <drupal6>, <html>, <java>, <javascript>, <php>, <python>. The supported tag styles are: <foo>, [foo], [[foo]].
  • Syntax highlight code surrounded by the <pre class="brush: lang">...</pre> tags, where lang is one of the following language brushes: bash, cpp, css, jscript, java, php, python.

More information about formatting options

CAPTCHA
This question is to prevent automated spam submissions. Upper or lower case does not matter. If you can't read it properly, just submit what you believe it says and if its wrong you will be presented with a new captcha image.
Image CAPTCHA
Enter the characters shown in the image.