I am running my new development drupal install on wamp . However i am suddenly beginning to get a time out error which goes like this :

Fatal error: Maximum execution time of 30 seconds exceeded in C:\wamp\www\mydevsite\includes\common.inc on line 474

This must be easy to sort out but my PHP is not that hot.
Thanks

Comments

beautifulmind’s picture

You must make change in your .conf file to solve this problem.
Add following entry in your .conf file.
set_time_limit()
In bracket, enter time in miliseconds.
Hope this will help you.

Beautiful mind

Regards.
🪷 Beautifulmind

electronicmonkey’s picture

... i have changed the time resource limit variables in the .conf . I have doubled it o 60 seconds ; restarted services and i still get the same error

extexan’s picture

@beautifulmind

Add following entry in your .conf file.
set_time_limit()

Do you mean the httpd.conf in the apache folder(s)? If so, I don't see a setting for that in there - or should I just add it anywhere?

I have changed my php.ini file and set the max_execution_time = 120 - but the error message still says "30 seconds". Why would that not fix the problem? I'm actually getting this error in phpMyAdmin (in the left column when it's displaying tables in a database), so it's not really a Drupal issue (oops - hehe), but this forum seems to have the most helpful and responsive group (how far will flattery get me?). The point of saying that though is that I know it's not a settings.php issue. But in any case, the max_execution_time in my settings.php is 120 as well.

It's never too late to have a happy childhood. ;-)

Gui-’s picture

In doing the above said what are you exactly doing and what's the meaning of the error.Even i am having the same trouble

beautifulmind’s picture

Make following changes in your php.ini file

max_execution_time = "your value in seconds"

Also increase the memory limit
memory_limit = "your value in MB"
Beautiful mind

Regards.
🪷 Beautifulmind

najibx’s picture

WampServer 2.0c [05/05/2008]
Includes :
- Apache 2.2.8
- MySQL 5.0.51b
- PHP 5.2.6

I used to be able to do this, but not anymore. No sure what's missing ...pls enlighten me :-)

----Php.ini -------------------------------------------
max_execution_time = 100 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
memory_limit = 70M ; Maximum amount of memory a script may consume (8MB)

However, I notice there are several *.ini in the wamp/bin/php/php5.2.6 folder i.e phpForApache.ini

Even stop/restart service .... still getting error.

For now I am using the following but I read it's not that secure and more hussle that I have to edit all my settings.

edited sites/default/settings.php and added the following line:

ini_set('max_execution_time', 100);

srikanth538’s picture

So much thanks najibx,the command "ini_set('max_execution_time', 100);" helped me a lot
Have a nice day.....................

krisp1’s picture

Adding the line ini_set('max_execution_time', 100); worked for me. Many thanks.

phengnhou’s picture

Consider increasing your PHP memory limit to 16M to help prevent errors in the installation process. Increase the memory limit by editing the memory_limit parameter in the file C:\wamp\Apache2\bin\php.ini and then restart your web server.

tree2009’s picture

//

addicted_to_drupal’s picture

I had the same problem, i went on the net and after a lot pages i found this one

the soluce

And it works. You have to go one location of drupal/sites/default folder then found the file defaulf.setting and add new line on it

ini_set('max_execution_time', 0);

You can also use others one like
ini_set('session.cookie_lifetime', 2000000);
it's as you wish

I hope it help's you

canciller’s picture

Your solution fix the problem .. thnx a loooooooooT !!!

rajeevk’s picture

Problem is not solved by doing this...

Rajeev Kumar,
@drupler@bihar.social (ActivityPub)

Hendrik53’s picture

The are more php.ini files present.
Edit the file php.ini in the WAMP directory: x:\wamp\bin\apache\apachte2.x.x\php.ini.

Change to this by expample:
;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

; Maximum execution time of each script, in seconds
; http://php.net/max-execution-time
; Note: This directive is hardcoded to 0 for the CLI SAPI
max_execution_time = 240

It worked for me on a fresh and newest WAMP install with just one Drupal site on a fast i7 16GB computer. Default of 30 seconds did not work on this new system too. Now it does.

Kirru’s picture

Thank you Hendrik53, your advise helped me. I tried to install Drupal via Wamp and struggeled seriously with the Fatal error. Different lines 2168, 2038, 1154, mostly 2168. I went to ini file described in upper comment and that solved my issue.