I get the following errors when running drush 2.x (HEAD) within Drupal 7 sites.

Notice: Undefined variable: credentials in /Applications/MAMP/htdocs/drupalhead/sites/drupalhead/modules/drush/includes/core_commands.drush.inc on line 119

Notice: Undefined index:  driver in /Applications/MAMP/htdocs/drupalhead/sites/drupalhead/modules/drush/includes/core_commands.drush.inc on line 142

Notice: Undefined index:  username in /Applications/MAMP/htdocs/drupalhead/sites/drupalhead/modules/drush/includes/core_commands.drush.inc on line 143

Notice: Undefined index:  host in /Applications/MAMP/htdocs/drupalhead/sites/drupalhead/modules/drush/includes/core_commands.drush.inc on line 144

Notice: Undefined index:  database in /Applications/MAMP/htdocs/drupalhead/sites/drupalhead/modules/drush/includes/core_commands.drush.inc on line 145
Drush was not able to start (bootstrap) Drupal.                          [error]

It's related to #312421: Undefined DRUPAL_ROOT in Drush bootstrap
The attached patch fixes the errors for me.

CommentFileSizeAuthor
drush-DRUPAL_HEAD.patch720 bytesstella

Comments

moshe weitzman’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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