Not sure if this is the right place for this - if not, sorry!
I was happily running a Drupal 8.0.1 install with Drush Version 8.1-dev ,
I ran drush up to go to 8.0.2 this afternoon, and all of a sudden Drush is broken for me. The site works just fine and is a happy 8.0.2 install. Nothing else was changed (other than by the up command).
But now on any Drush command for this install I get:
Fatal error: Cannot redeclare class Drupal in /home/(my path)/web/core/lib/Drupal.php on line 79
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Cannot redeclare class Drupal in /home/(my path)/web/core/lib/Drupal.php, line
79
I have tried deleting and re-installing Drush dev with composer, but with the same result. I tried deleting ~/.drush but again, no dice.
I grepped (installdir)/web for 'class Drupal {' and got the expected result (just one declaration)
I'm confused - can someone point me at some docs that might shed some light?
Thank you in advance.
Comments
For what its worth: I am only
For what its worth: I am only running version 8.0.1 of drush with drupal-8.0.3-dev with no current issues.
Thanks for your reply!
Thanks for your reply!
In the same boat ...
Drupal 8 can be a pain to run an update on.
Trying to figure out WHY this is happening.
"It is a damn poor day when you don't learn something!" - Mr. Jones, teacher
Probably: Use Composer, not Drush, to update Drupal core
http://drupal.stackexchange.com/questions/167922/what-is-the-correct-com...
benjamin, Agaric
Update - all working properly again
After manually updating the site to the most recent release and updated drush to 8.0.3 and all seems to be working again.