Drupal 7をインストールすると、Ajaxエラーが発生します:なぜですか?
-
22-10-2019 - |
質問
Drupal 7.10をインストールしようとしましたが、インストールが28/29モジュールを行ったときにエラーが発生しました。
AJAX HTTPエラーが発生しました。
HTTP結果コード:200
デバッグ情報が続きます。
道: http://localhost/drupal/install.php?expemile = standard&locale = en&id = 1&op = do
Statustext:OK
回答テキスト:(!)
致命的なエラー:C: wamp www drupal include database mysql database.inc on 153で30秒の最大実行時間を超えました
Stackを呼び出す: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