I am using Drush 5.4 on my ubuntu system. Drush works fine for D6 and D7. But whenever I run any drush command or simlpy run drush, I always get following PHP fatal error in D8,

PHP Fatal error: Uncaught exception 'Exception' with message 'The configuration directory type active does not exist.' in /var/www/d8/core/includes/bootstrap.inc:535
Stack trace:
#0 /var/www/d8/core/includes/bootstrap.inc(2442): config_get_config_directory('active')
#1 /var/www/d8/core/includes/bootstrap.inc(2713): drupal_container()
#2 /var/www/d8/core/includes/bootstrap.inc(1494): language('language_interf...')
#3 /usr/share/php/drush/includes/output.inc(142): t('Initialized Dru...', Array)
#4 /usr/share/php/drush/includes/bootstrap.inc(696): dt('Initialized Dru...', Array)
#5 /usr/share/php/drush/includes/bootstrap.inc(185): _drush_bootstrap_drupal_root()
#6 /usr/share/php/drush/includes/bootstrap.inc(345): drush_bootstrap(1, 3)
#7 /usr/share/php/drush/commands/core/help.drush.inc(260): drush_bootstrap_max(3)
#8 [internal function]: drush_core_help()
#9 /usr/share/php/drush/includes/command.inc(324): call_user_func_array('drush_core_help', Array)
#10 /usr/share/php/drush/includes/command.inc(19 in /var/www/d8/core/includes/bootstrap.inc on line 535
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Uncaught exception 'Exception' with message 'The configuration directory type active does not exist.' in
/var/www/d8/core/includes/bootstrap.inc:535
Stack trace:
#0 /var/www/d8/core/includes/bootstrap.inc(2442): config_get_config_directory('active')
#1 /var/www/d8/core/includes/bootstrap.inc(2713): drupal_container()
#2 /var/www/d8/core/includes/bootstrap.inc(1494): language('language_interf...')
#3 /usr/share/php/drush/includes/output.inc(142): t('Initialized Dru...', Array)
#4 /usr/share/php/drush/includes/bootstrap.inc(696): dt('Initialized Dru...', Array)
#5 /usr/share/php/drush/includes/bootstrap.inc(185): _drush_bootstrap_drupal_root()
#6 /usr/share/php/drush/includes/bootstrap.inc(345): drush_bootstrap(1, 3)
#7 /usr/share/php/drush/commands/core/help.drush.inc(260): drush_bootstrap_max(3)
#8 [internal function]: drush_core_help()
#9 /usr/share/php/drush/includes/command.inc(324): call_user_func_array('drush_core_help', Array)
#10 /usr/share/php/drush/includes/command.inc(19 in /var/www/d8/core/includes/bootstrap.inc, line 535

This is happening from last couple of weeks. I keep updating my system using git pull so that I always have latest code. Not sure whether Drush is compatible with D8 or not.

CommentFileSizeAuthor
#2 drush-1822722.patch1.16 KBjonhattan

Comments

marcingy’s picture

Project: Drupal core » Drush
Version: 8.x-dev »
Component: other » Base system (internal API)
Priority: Major » Normal
jonhattan’s picture

Status: Active » Needs review
StatusFileSize
new1.16 KB

The compatibility with drupal 8 is being worked in the master branch of drush.

I think we should explicitly drop any drupal 8 support in drush 5.x. Here's a start

greg.1.anderson’s picture

Status: Needs review » Reviewed & tested by the community

Looks like a good idea to me.

jonhattan’s picture

Title: PHP Fatal error when I run any drush command » Drop drupal 8 support in drush 5.x
Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Chris Charlton’s picture

Issue tags: +D8

Can someone update the README and/or project page to point out D8 is dropped from Drush 5.x, please.

moshe weitzman’s picture

I updated the project page. The README files are already correct for drush5 and drush6

greg.1.anderson’s picture

I added a link to the git instructions for cloning the master branch, to guide folks to the development branch for Drush6.