安装Drupal 7时,我会遇到AJAX错误:为什么?
-
22-10-2019 - |
题
我尝试安装drupal 7.10,当安装完成28/29模块时,发生了一个错误:
发生AJAX HTTP错误。
HTTP结果代码:200
调试信息如下。
小路: http://localhost/drupal/install.php?profile = standard&locale = en&id = 1&op = do
statustext:确定
ResponseText:(!)
致命错误:C: wamp www drupal incrupt database mysql mysql database.inc在第153行上超过30秒的最大执行时间为30秒
致电堆栈:Time Memory Function Location 10.0004371192 {main}() ..\install.php:0 20.0043834504 install_drupal() ..\install.php:26 30.95958976424 install_run_tasks() ..\install.core.inc:79 41.929419997120 install_run_task() ..\install.core.inc:342 51.930720117440 _batch_page() ..\install.core.inc:452 61.931520124560 _batch_do() ..\batch.inc:80 71.931520124560 _batch_process() ..\batch.inc:161 81.933320214776 call_user_func_array() ..\batch.inc:284 91.933320214800 _install_module_batch() ..\batch.inc:284 101.933320215000 module_enable() ..\install.core.inc:1538 112.990422114008 module_invoke() ..\module.inc:448 122.990422114224 call_user_func_array() ..\module.inc:794 132.990422114360 standard_install() ..\module.inc:794 1420.519725138960 user_role_grant_permissions() ..\standard.install:400 1529.936125151208 MergeQuery->execute() ..\user.module:3030 1629.938825159880 DatabaseTransaction->__destruct() ..\user.module:3030 1729.938825159880 DatabaseConnection->popTransaction() ..\database.inc:1872 1829.938825159912 DatabaseConnection_mysql->popCommittableTransactions() ..\database.inc:1105
谁能帮我修复它?
解决方案
问题是超出执行时间。为了解决此问题,您应该更改php.ini文件中的最大执行时间。单击任务栏上的WAMP图标,选择php-> php.ini,查找“ max_execution_time”,然后将其从30更改为100-300,以确保即使较慢的脚本也可以在超时之前完成工作。
更改设置后,请记住要重新启动服务器。
其他提示
在Drupal安装期间,我还遇到了类似的错误,并带有响应文本“ Drupal已经安装”。我通过在php.ini中进行更改来修复它,
max_execution_time = 180
max_input_time = 180
max_input_nesting_level = 300
memory_limit = 512m
不隶属于 drupal.stackexchange