2

On a Linux system I installed Drush with Composer and when I try to use it with Drupal 8 alpha-11 I get this error. I looked around but can't find anything about it.

$ drush st

PHP Fatal error: Class 'Drupal\Core\Site\Settings' not found in /home/$USER/.composer/vendor/drush/drush/commands/core/drupal/environment.inc on line 278 Fatal error: Class 'Drupal\Core\Site\Settings' not found in /home/$USER/.composer/vendor/drush/drush/commands/core/drupal/environment.inc on line 278 Drush command terminated abnormally due to an unrecoverable error. [error] Error: Class 'Drupal\Core\Site\Settings' not found in /home/$USER/.composer/vendor/drush/drush/commands/core/drupal/environment.inc, line 278

  • I have a similar problem with Drupal 8.0.2. My error is: Fatal error: Class 'Psr\Log\AbstractLogger' not found in /Users/$USER/.composer/vendor/drush/drush/lib/Drush/Log/Logger.php on line 31 . I suppose this is related with drush running outside the Drupal tree. But I don't know how to solve this. – dxvargas Jan 8 '16 at 16:46
1

I found the same issue. Upgrading Drupal 8 to the latest change (8.x branch instead of the alpha11 version) Drush works properly.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.