开发者

Maximum execution time of 30 second exceeded in c:\wamp\drupal\includes\database.mysqli.inc on line 114

开发者 https://www.devze.com 2023-04-13 08:24 出处:网络
When i extract .ZIP files(Modules e.g Ubercart,开发者_StackOverflow中文版cck) on sites/all/modules Folder in drupal 6 and try to enable it from admin->modules and when i click \'save configuration.\'

When i extract .ZIP files(Modules e.g Ubercart,开发者_StackOverflow中文版cck) on sites/all/modules Folder in drupal 6 and try to enable it from admin->modules and when i click 'save configuration.' i got the errors As shown in image.

why this happens ?? Is it require to edit database.mysqli.inc

How to correct it.. Please help.

thank you.! enter image description here


The error you're receiving is because the PHP script was executing more than it's allowed by your settings. Try setting max_execution_time=180 or higher in php.ini and restart your web server.


Either change the time limit for your scripts (e.g. using set_time_limit()), try to process chunks of data instead of one big file at once (and check up front) or try to optimize the code so it takes not so long to execute.


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

ini_set('max_execution_time', 0);

by:

Keith Adler

https://drupal.org/node/66105


I tried changing the parameters for max_execution_time=30 and setting it for a greater value. That did not work. But when I tried ini_set('max_execution_time', 0); at the top of my file, it worked and the problem was solved.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号