2017-06-21 70 views
0

[bootstrap.inc] [1] [1]:https://i.stack.imgur.com/cnbLZ.pngDrush install给php错误

不知道这里发生了什么。它看起来好像AccountInterface已经包含在boostrap.inc中。

我试着更新了globaly的drush,并没有得到最新版本。但在本地文件中,它仍然表示我在版本5.10.0上。本地文件夹中的composer.json表示我将它设为8.1。 提前谢谢!

[email protected]:/var/www/drupalvm$ drush dl basic                         

PHP Fatal error: Class 'Drupal\Core\Session\AccountInterface' not found in 
/var/www/drupalvm/core/includes/bootstrap.inc on line 63     
Drush command terminated abnormally due to an unrecoverable error.                   
[error] Error: Class 'Drupal\Core\Session\AccountInterface' not found in 
/var/www/drupalvm/core/includes/bootstrap.inc, line 63         

回答

0
  1. 我改名原来drush目录到别的东西(例如: drush5),然后重新安装drush。

  2. 删除drush5文件夹

  3. 然后我得到了一个单独的PHP错误 错误:调用未定义功能Drush \ UpdateService \使用simplexml_load_file()
    遵循了这一link 跑命令和apt-get安装PHP的XML