5

I have multiple versions of drush and cannot make an archive-dump of my site.

drush8 ard/drush8 archive-dump returns

[error] The drush command 'ard' (and/or 'archive-dump') could not be found. Run drush cache-clear drush to clear the commandfile cache if you have installed new extensions.

drush6 ard/drush6 archive-dump returns

Drush 6.6.0 does not support Drupal . See http://drupal.org/project/drush for more information.
[error] Command archive-dump needs a higher bootstrap level to run - you will need to invoke drush from a more functional Drupal environment to run[error] this command. The drush command 'archive-dump' could not be executed.

drush ard/drush archive-dump returns

PHP Fatal error: Class 'Drupal\Core\Session\AccountInterface' not found in /var/www/mywebsite/core/includes/bootstrap.inc on line 60


drush8 = * remote origin Fetch URL: https://github.com/drush-ops/drush.git Push URL: https://github.com/drush-ops/drush.git

drush6 = * remote origin Fetch URL: https://github.com/drush-ops/drush.git Push URL: https://github.com/drush-ops/drush.git

drush = Drush Version:6.2.0


If I run drush8 status on my local site it returns

Drush:9.0-dev-g9bbddb2

If I run drush6 status on my local site it returns

Drush 6.6.0 does not support Drupal . See http://drupal.org/project/drush for more information.

If I run drush status on my local site it returns

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

  • PHP 5.6.3-1+deb.sury.org~trusty+1 (cli) – fndtn357 Feb 7 '17 at 2:47
  • 4
    Only Drush 8+ supports Drupal 8. Drush install docs – ponies Feb 7 '17 at 4:13
  • 1
    this is exactly the mental nudge I needed. I went back into drush8 and checked out the 8.x version of drush and it works as expected. – fndtn357 Feb 7 '17 at 13:04
  • 1
    Please highlight this in your post, so people won't have to read in the comments! – ssibal Sep 17 '18 at 14:33

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.