3
私はdrupal_goto()を持つモジュールを持っていますが、hook_init()の年齢要件(ワインサイト)に合格しなければユーザーをリダイレクトします。モジュールはより重い重量に設定され、最後にロードされます。drush status:hookup_init()のdrupal_goto()によって発生するエラーです。
PHP 5.3では、drushアップデートが失敗します。同じコードとPHP 5.2の異なるサーバ上のDBが正常に動作します。
Drushバージョン:7.xの-4.4 PHPのバージョン:5.3例:
私は実行すると:drushの状態を、私はエラーを取得します。 debugとverboseフラグを付けた出力を示します。
$ drush -d -v status
Bootstrap to phase 0. [0.02 sec, 2.47 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [0.03 sec, 2.67 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_root() [0.06 sec, 5.49 MB] [bootstrap]
Initialized Drupal 6.22 root directory at /var/www/example.com/public_html [0.07 sec, 6.28 MB] [notice]
Drush bootstrap phase : _drush_bootstrap_drupal_site() [0.07 sec, 6.29 MB] [bootstrap]
Initialized Drupal site default at sites/default [0.07 sec, 6.29 MB] [notice]
Drush bootstrap phase : _drush_bootstrap_drupal_configuration() [0.08 sec, 6.29 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_database() [0.08 sec, 6.33 MB] [bootstrap]
Successfully connected to the Drupal database. [0.08 sec, 6.33 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_full() [0.09 sec, 6.67 MB] [bootstrap]
Drush command terminated abnormally due to an unrecoverable error. [0.34 sec, 31.38 MB] [error]
質問は今ある:なぜPHP 5.3のサーバーではなくPHP 5.2サーバー上で失敗するdrupal_goto()原因drushを行います。
更新:drushal statusはこのサーバーのdrupal 6 installで実行されますが、それ以外の場合はそのエラーが発生します。この問題をどのようにデバッグするのか分かりません。 – Coder1
これはどのバージョンのdrushですか? Drupalのインストールが有効であることを確認できますか(つまり、ブラウザでナビゲートできますか)。 --verboseと同じコマンドを実行できますか? – wiifm
-d -vで新しいステータスを実行するなど、要求したすべての情報で質問を更新しました。追加のメモを追加しました。誰かの助けを借りて、私はモジュールとPHP 5.3の間のいくつかの非互換性が疑われ始めています...サイトを実行しているときにログにエラーはありません。 – Coder1