当我尝试从命令行运行Drush时,我得到以下错误:
Drush command terminated abnormally due to an unrecoverable error
我不确定为什么会发生这种情况,我也不知道它出了什么问题。当我运行drush -d -v status时,我得到以下输出:
$ drush -d -v status
Bootstrap to phase 0. [0.04 sec, 1.87 MB][bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [0.04 sec, 1.98 MB] [bootstrap]
Cache HIT cid: 6.2.0-commandfiles-0-db3247e83fac7ae8173ddf4f9e97733a [0.05 sec, 2[MB][debug]
Bootstrap to phase 0. [0.15 sec, 5.25 MB][bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_root() [0.19 sec, 5.25 MB] [bootstrap]
Initialized Drupal 7.35 root directory at /home/cms/production/website [0.21 sec, 6.14 MB][notice]
Drush bootstrap phase : _drush_bootstrap_drupal_site() [0.21 sec, 6.15 MB][bootstrap]
Initialized Drupal site default at sites/default [0.21 sec, 6.15 MB][notice]
Cache MISS cid: 6.2.0-install_profile-66ecfeb9791a023150773849f1550c5d [0.22 sec, 6.15 MB][debug]
Cache HIT cid: 6.2.0-commandfiles-2-90b5571ff64221f80c3320ec33b2ed28 [0.22 sec, 6.15 MB][debug]
Drush bootstrap phase : _drush_bootstrap_drupal_configuration() [0.22 sec, 6.44 MB][bootstrap]
Drush command terminated abnormally due to an unrecoverable error. [0.25 sec, 7.61 MB][error]想知道是否有人遇到过这个问题并找到了解决方案。
发布于 2015-09-04 16:14:17
发布于 2016-06-20 22:32:46
也许这是旧的这条信息,但我发现这篇文章非常有用,它对我也很有效。
首先检查你的站点是否有自定义模块之外的drupal_goto,这些调用应该检查drupal是否在cli模式下,如果没有,那么你可以发出一个"drupal_goto“指令。
完整列表:
发布于 2015-09-04 04:46:38
这很可能发生在某个已启用的模块上。不幸的是,调试输出没有给出任何关于它是哪个模块的进一步信息。
如果这是在开发环境中,我建议您开始逐个禁用贡献的模块,直到这个错误消失。我会从任何特别期望浏览器使用的模块开始,可能是像'mobile tools‘这样的模块,也可能是一个可能重定向用户的贡献模块。
https://stackoverflow.com/questions/32380388
复制相似问题