Gotta run, but go tthis when I was trying to run drush si from core/modules/statistics/config:

$ drush si
require_once(/Users/abyron/Sites/8.x/core/core/includes/config.inc): [warning]
failed to open stream: No such file or directory bootstrap.inc:289

Fatal error: require_once(): Failed opening required '/Users/abyron/Sites/8.x/core/core/includes/config.inc' (include_path='.:/Applications/MAMP/bin/php/php5.3.6/lib/php') in /Users/abyron/Sites/8.x/core/includes/bootstrap.inc on line 289

Call Stack:
    0.0011     699832   1. {main}() /Users/abyron/drush/drush.php:0
    0.0199    4706688   2. drush_main() /Users/abyron/drush/drush.php:14
    0.3680   17853120   3. _drush_bootstrap_and_dispatch() /Users/abyron/drush/drush.php:59
    0.4008   17863296   4. drush_bootstrap_to_phase() /Users/abyron/drush/drush.php:79
    0.4023   17865832   5. drush_bootstrap() /Users/abyron/drush/includes/bootstrap.inc:308
    0.4030   17867088   6. _drush_bootstrap_drupal_root() /Users/abyron/drush/includes/bootstrap.inc:185
    0.4094   19624152   7. drush_drupal_version() /Users/abyron/drush/includes/bootstrap.inc:685
    0.4165   21619888   8. require_once('/Users/abyron/Sites/8.x/core/includes/bootstrap.inc') /Users/abyron/drush/includes/drupal.inc:21

require_once(/Users/abyron/Sites/8.x/core/core/vendor/Symfony/Component/ClassLoader/UniversalClassLoader.php):[warning]
failed to open stream: No such file or directory bootstrap.inc:2909

Fatal error: require_once(): Failed opening required '/Users/abyron/Sites/8.x/core/core/vendor/Symfony/Component/ClassLoader/UniversalClassLoader.php' (include_path='.:/Applications/MAMP/bin/php/php5.3.6/lib/php') in /Users/abyron/Sites/8.x/core/includes/bootstrap.inc on line 2909

Call Stack:
    0.0011     699832   1. {main}() /Users/abyron/drush/drush.php:0
    0.0199    4706688   2. drush_main() /Users/abyron/drush/drush.php:14
    0.3680   17853120   3. _drush_bootstrap_and_dispatch() /Users/abyron/drush/drush.php:59
    0.4008   17863296   4. drush_bootstrap_to_phase() /Users/abyron/drush/drush.php:79
    0.4023   17865832   5. drush_bootstrap() /Users/abyron/drush/includes/bootstrap.inc:308
    0.4030   17867088   6. _drush_bootstrap_drupal_root() /Users/abyron/drush/includes/bootstrap.inc:185
    0.4094   19624152   7. drush_drupal_version() /Users/abyron/drush/includes/bootstrap.inc:685
    0.4165   21619888   8. require_once('/Users/abyron/Sites/8.x/core/includes/bootstrap.inc') /Users/abyron/drush/includes/drupal.inc:21
    0.4596   21618384   9. drush_shutdown() /Users/abyron/drush/includes/bootstrap.inc:0
    0.4597   21620576  10. dt() /Users/abyron/drush/includes/bootstrap.inc:1060
    0.4598   21620704  11. drupal_classloader() /Users/abyron/drush/includes/output.inc:140

Comments

webchick’s picture

Priority: Normal » Major

Hit this again today and reminded myself of this bug report.

I'm escalating this to major, because it is a regression from D6 and D7, where you can run commands such as drush en from any subdirectory.

webchick’s picture

Status: Active » Closed (duplicate)

Oops. tim informed me of #1590274: Drush does not work from within a subdirectory (e.g. /core) in Drupal 8 which is both earlier than this issue and also has a patch. Woot!