Hi !

I first installed 4.6, then 4.7. Everything had worked very well, for a few days.

This morning, I tried to install breadcrumb module.
Here : http://drupal.org/node/61944.

Since then, I keep having problems. I got rid of it, but my drupal site keep crashing.

I get this kind of error message :

Fatal error: Maximum execution time of 30 seconds exceeded in d:\apache\easyphp1-8\www\drupal-4.7.0\includes\database.mysql.inc on line 101

Fatal error: Maximum execution time of 30 seconds exceeded in d:\apache\easyphp1-8\www\drupal-4.7.0\includes\session.inc on line 50

Warning: Unknown(): A session is active. You cannot change the session module's ini settings at this time. in Unknown on line 0 

Thanks for your help.



venkat-rk’s picture

That's a phptimeout error message, from what little I know. You generally change the settings in the php.ini file (set to zero, which is infinite or some other value that gives more time for the php processes to run). Are you running apache locally? Look for the php.ini file or a similar file

charlesI’s picture

Yes, it's local.

I got rid of this site.
I have been working on a few drupal "sites" these last days. So I'll work on another one.
Thanks anyway.

alex_b’s picture

add this line to your php.ini

max_execution_time = 60

yo2lux’s picture

Hi, I have the same problem.
I need to import a language file (.po) and I get an error message:

Fatal error: Maximum execution time of 240 seconds exceeded in D:\wamp\www\bsdforums\includes\database.mysql.inc on line 102

I have this lines in php.ini:

; Resource Limits ;

max_execution_time = 0     ; 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 = 8M      ; Maximum amount of memory a script may consume (8MB)

And this lines in Drupal .htacess:

# PHP 5, Apache 1 and 2
<IfModule mod_php5.c>
  php_value magic_quotes_gpc                0
  php_value register_globals                0
  php_value session.auto_start              0
  php_value max_execution_time 0

Where is the problem ? Anyone has an idea, suggestion to help me ?

Thanks !

Keith Adler’s picture

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

ini_set('max_execution_time', 0);

marcelodornelas’s picture

Thanks Keith! That worked for me.

drupal4me2’s picture


subac’s picture

It works for me buddy!!!

benahlquist’s picture

Nice...thanks to Keith =)

snick_hill’s picture

was struggling with it.
thanks a lot!

renamixtech’s picture

thank you! this worked for me too!

lameei’s picture

Shall we change the 0 to something like 60 for 60 seconds as the max exe time?

bevin’s picture

Well done. That works perfectly to me.

Maxim Rosca’s picture

brilliant dude !! you're my hero ! ;)

mayonero’s picture

Many tanks... :)

ryansoong’s picture

Thanks Keith

The Slave&#039;s Dream’s picture

I'm using a multisite set up so had to add it to the settings.php file for that /sites folder, but it worked :) Thank-you!

sakthipriyadevakumar’s picture

i cannot edit in settings.php file...help me out


Zupri’s picture

right click on settings.php file and properties, then uncheck the read only attribute. then try to edit :)

pmze2005’s picture

simply copy and paste this where you start to see ini_set. It will work for you.

ini_set('max_execution_time', 0);

sakthipriyadevakumar’s picture

i changed to 60 in max execution time...but it is not working...help me out

mithun_patil’s picture

It worked for me too..


kenorb’s picture

Try to install http://drupal.org/project/drupal_tweaks
and increase maximum execution time in PHP Tab

msrrautela’s picture

Worked for me too! Thanks a ton,Keith!

david.riches’s picture

thanks for that!!! worked a treat

Barfly’s picture

Thanks Keith^^

whan’s picture

Thanks Keith

bardill’s picture

Many thanks Keith.
Is this the right way to listing/enabling my 60 modules?
(PHP Memory Limits is 128 mb)


umanda’s picture

When you are working on Drupal in your local installation some times you get :Fatal error: Maximum execution time of 30/60 seconds exceeded on your browser.

I also got that issue and what I did, I added this code block in my settings.php.

1) open your settings.php (sites / all / default/settings.php)

2) add this code for PHP settings: line number between 147 - 168

ini_set('max_execution_time', 0);

(you may get permission error, because by default setting.php is right protected. for that you can create a new setting.php file and make sure COPY AND PAST ALL data code in old setting.php then you can replace it )

adnanhader’s picture

Thanks ini_set('max_execution_time', 0) works for me.

umanda’s picture

Welcome :)

evramanamca’s picture

Thank you........

lovelykaushik86’s picture

It worked for me thank you

markmark’s picture

Thanks Mr Keith for your help. I see many get helps from you.
But why i can;t?

I do what you do, but; unluckily there are no work out!

I can't figure it what is problem?

Listen , I have similar version which CharlesI has.

Gutscheinecke’s picture

Worked :) Thank you :)

kkalaskar’s picture

first of all Thanks Keith! That worked for me.

-after displaying this error. I DROP all tables from database(to avoid "table variable already exist).
- then in sites/defaults/settings.php

line number 301 I added ini_set('max_execution_time', 0);
like ->

ini_set('max_execution_time', 0);
ini_set('session.gc_probability', 1);
ini_set('session.gc_divisor', 100);

then refresh page of error and its working.!!!
Drupaltarzen’s picture

Thanks kkalaskar
your post worked for me :-)

vks7056’s picture

You should not set ini_set('max_execution_time', 0); It is bad practice, please always set a appropriate timestamp just like ex:- ini_set('max_execution_time', 300); or you may increase it as per your requirement.

wusel’s picture

Look at Step 2 of https://www.drupal.org/node/2347717

Good luck!


wusel’s picture

Look at Step 2 of https://www.drupal.org/node/2347717

Good luck!