duanliangman5398 2017-06-21 16:54
浏览 82

Drush安装给出php错误

[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                                 
  • 写回答

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

    评论

报告相同问题?

悬赏问题

  • ¥100 求三轴之间相互配合画圆以及直线的算法
  • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
  • ¥15 名为“Product”的列已属于此 DataTable
  • ¥15 安卓adb backup备份应用数据失败
  • ¥15 eclipse运行项目时遇到的问题
  • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
  • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
  • ¥15 自己瞎改改,结果现在又运行不了了
  • ¥15 链式存储应该如何解决
  • ¥15 没有证书,nginx怎么反向代理到只能接受https的公网网站