2017-06-21 16:54
浏览 77


[bootstrap.inc][1] [1]: https://i.stack.imgur.com/cnbLZ.png

Not sure what is going on here. It looks as if AccountInterface is already included in the boostrap.inc.

I tried updating the drush globaly and did get the latest version. In the local file however it still says I am on version 5.10.0. The composer.json within the local folder says I have it as 8.1. Thank you in advance!

vagrant@supersport:/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                                 

图片转代码服务由CSDN问答提供 功能建议

[bootstrap.inc] [1] [1]: https://i.stack.imgur.com/cnbLZ.png

不确定是什么 继续在这里。 看起来好像AccountInterface已经包含在boostrap.inc中。

我尝试更新drush globaly并获得了最新版本。 但是在本地文件中它仍然说我在版本5.10.0。 本地文件夹中的composer.json说我把它作为8.1。 提前谢谢!

  vagrant @ supersport:/ var / www / drupalvm $ drush dl basic  
 / var / www / drupalvm / core / includes / bootstrap.inc中找不到类'Drupal \ Core \ Session \ AccountInterface'
 / var / www / drupalvm / core / includes / bootstrap.inc,第63行
   \中找不到类'Drupal \ Core \ Session \ AccountInterface'  n 
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • doushe7934 2017-06-21 20:38
    1. I renamed the original drush directory to something else (example: drush5) and then re-installed drush.

    2. Deleted drush5 folder

    3. I then got a seperate php error Error: Call to undefined function Drush\UpdateService\simplexml_load_file()
      Followed this link and ran sudo apt-get install php-xml

    打赏 评论

相关推荐 更多相似问题