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

Comments

mathew’s picture

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.

andrés chandía’s picture

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

@ch

andrés chandía’s picture

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

@ch

mathew’s picture

no one encounter similar question before?

eldarin’s picture

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.

ice3wtt’s picture

when i add admin menu module ,and get the same error ,Fatal error: Maximum execution time of 30 seconds exceeded.and i find here (http://summapro.com/drupal-tutorials/fatal-error-maximum-execution-time-...) can solve this problem.

This solutions are reliable in our experiences. Adding the below code in settings.php file, located in sites / all / default folder.

ini_set('max_execution_time', 0);

Look at the position on screenshot above to where you put this code.

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

feaeatresse’s picture

try to put this code set_time_limit(1800)

cmysite’s picture

I have the same problem when installing in the web hosting.
This is not good solution you try to work in a localhost and setting parameters of php.ini, however you would to have a problem with a limitation of the configuration in the web hosting service. Nothing there a free web hosting service provides you change the configuration with your desire, unless you take a paid service :(