由于不可恢复的错误,Drush命令异常终止

时间:2015-07-30 09:45:43

标签: drupal drupal-7 centos6 drush

我有CentOS 6.6,PHP 5.5.27和Drupal 7.34

PHP 5.5.27 (cli) (built: Jul 10 2015 23:40:40)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies

我已经尝试了最新的6,7,8个Drush分支机构。当我键入" drush -d -v status"我得到一个不可恢复的错误(所有分支的错误都是相同的):

Drush bootstrap phase : bootstrap_drupal_full() [0.19 sec, 5.13 MB]                                           [bootstrap]
Cannot modify header information - headers already sent by (output started at                                 [warning]
/root/.composer/vendor/drush/drush/includes/output.inc:38) common.inc:698 [0.96 sec, 31.89 МБ]
Drush command terminated abnormally due to an unrecoverable error. [1.06 sec, 32.8 МБ]              

我无法弄清楚出了什么问题。有人可以提出建议吗?

提前致谢。

1 个答案:

答案 0 :(得分:0)

正如另一条评论所述,寻找结束?>自定义模块末尾的标签,特别是>之后的任何空格......但只需删除?>遵守法律。

一种解决方法是逐个模块禁用模块,直到drush给你一个肯定的响应。这将缩小要审查的代码范围。

还要查看任何hook_init()函数,以查看是否有任何内容被发送到浏览器,然后检查系统表中模块的权重。如果它太低,可能会导致问题。