How do I fix this error:Fatal error: Maximum execution time of 30 seconds exceeded in ...

mathew - April 25, 2005 - 04:26

I have installed drupal 4.6, and it works find at beginning.But after one day,when I click "administer" menu, it alwasy show me error :

Fatal error: Maximum execution time of 30 seconds exceeded in e:\wwwroot\matthewlee\wwwroot\includes\common.inc on line 378

I still can create content,only "administer" cannot access.
I have checked all settings, if i drop all tabels and recreate its,it would came back to work. but i can't do this everytime .and no idea now.

any solutions?

Thanks all,

matthew

P.S web hosting is IIS + PHP 4.3.x

My web hosting provider

mathew - April 25, 2005 - 10:56

My web hosting provider helps to set max_execution_time =60 in php.ini
but it desn't help, still showing;

Fatal error: Maximum execution time of 60 seconds exceeded in e:\wwwroot\matthewlee\wwwroot\includes\common.inc on line 378

and now i found that if i use phpmyadmin to "empty" the watchdog table, it will come back to work.
I dont' know why. the mysql version is MySQL 4.0.22-nt . and I use phpMyAdmin 2.6.2 import the database.mysql for installation.

how do i do it, and it worked

Andrés Chandía - November 15, 2007 - 16:36

go to your system shell and type this command

sh# find / -name "php.ini"

should give you next lines (it could variate depending on your linux distribution)

/etc/php5/cgi/php.ini
/etc/php5/cli/php.ini
/etc/php5/apache2/php.ini

so on each of these files change the value,
(I work with nano).
crtl+w = search
Search: max_execution_time

you should find next line
max_execution_time = 30     ; Maximum execution time of each script, in seconds

where you should change 30 to whatever you think you need, remember to do the same procedure in all of the files you've found with the "find" command :-)
i hope to help.

@ch

don't forget

Andrés Chandía - November 25, 2007 - 12:11

don't forget to restart apache server
and read the comment below that speaks about .httacces, if http.conf has "override = All" that should be your solution

@ch

no one encounter similar

mathew - April 26, 2005 - 04:14

no one encounter similar question before?

max_execution_time override in .htaccess

eldarin - June 9, 2005 - 16:11

You can try and override the global PHP setting of max_execution_time in your local .htaccess configuration file in your site (docroot) directory.

In the "#Overload PHP variables" section where it says <IfModule mod_php4.c> just add the following:
   php_value max_execution_time      120

I have a local/offline copy of my site and the MySQL installation is not run at a high priority, so the large watchdog (log) table makes accessing the administer-menu quite sluggish. I recommend truncating it when not testing features where the large watchdog log is needed.

I run MySQL 4.0.24 on Windows 2000 with PHP 4.3.11 and Apache 1.3.33 to simulate my hosting environment. I recommend using MySQL Administrator 1.0.20 and Query Browser 1.1.9 or newer as well in this environment.

 
 

Drupal is a registered trademark of Dries Buytaert.