php 致命错误:第 551 行的 c:\wamp\www\drupal2\includes\common.inc 中超出了 30 秒的最大执行时间

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7793217/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-26 03:23:03  来源:igfitidea点击:

Fatal Error: Maximum execution time of 30 seconds exceeded in c:\wamp\www\drupal2\includes\common.inc on line 551

phpdrupalconfigurationini

提问by user999051

when I go to admin option in drupal 6. I get following error on my Browser

当我转到 drupal 6 中的管理选项时。我的浏览器出现以下错误

Fatal Error: Maximum execution time of 30 seconds exceeded in c:\wamp\www\drupal2\includes\common.inc on line 551

致命错误:第 551 行的 c:\wamp\www\drupal2\includes\common.inc 中超出了 30 秒的最大执行时间

This error has started occuring after i install 'Views' module in my drupal 6 sites/all/modules folder.

在我的 drupal 6 站点/所有/模块文件夹中安装“视图”模块后,此错误开始发生。

why this is happening? Please Help. Thank you.

为什么会这样?请帮忙。谢谢你。

回答by Bhavin Rana

Using wampits pretty simplething , Click on the wamp icon on taskbar, go to php and go to php.ini and then find max_execution_timeand make 30 to 500or more what u are comfort with.

使用WAMP很简单的事情,点击图标WAMP在任务栏上,去PHP和去为php.ini,然后找到max_execution_time并作出30 to 500以上什么ü是舒适性。

enter image description here

在此处输入图片说明

回答by mbouzahir

in the wamp menu (click open the php.ini file and search for

在 wamp 菜单中(单击打开 php.ini 文件并搜索

max_execution_time = 30 

and change 30 to 180 or more, than restart your apache

并将 30 更改为 180 或更多,然后重新启动 apache

回答by James Williams

Something about the 'Views' module is taking longer than 30 secs to process (Line 551). You can try to increase the maximum execution time by adding the following to your php script:

“视图”模块的处理时间超过 30 秒(第 551 行)。您可以尝试通过将以下内容添加到您的 php 脚本来增加最大执行时间:

set_time_limit(int $seconds);

By default php is set to 30 seconds. Using the above command you can increase it incrementally to see if it will run. If you continue to get the same error I would suggest Isolating and fixing the script or uninstalling it.

默认情况下,php 设置为 30 秒。使用上面的命令,您可以逐步增加它以查看它是否会运行。如果您继续遇到相同的错误,我建议隔离并修复脚本或卸载它。

回答by Muhammad Muazzam

Add following line in settings.php and then it will work without error

在 settings.php 中添加以下行,然后它将正常工作

ini_set('max_execution_time', 0);