By mathew on
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
My web hosting provider
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
go to your system shell and type this command
should give you next lines (it could variate depending on your linux distribution)
so on each of these files change the value,
(I work with nano).
crtl+w = search
you should find next line
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
don't forget
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
no one encounter similar
no one encounter similar question before?
max_execution_time override in .htaccess
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 120I 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.
i have the same problem and i find the solution
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.
I had the same problem, i
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
fatal error: maximum 60 seconds exceeded
try to put this code set_time_limit(1800)
the same problem in web hosting
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 :(