Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quick-Drupal: require_once(docroot//includes/bootstrap.inc): failed to open stream #3240

Closed
kenorb opened this issue Dec 12, 2017 · 2 comments
Labels

Comments

@kenorb
Copy link
Contributor

kenorb commented Dec 12, 2017

Here are the reproducible steps on empty folder:

$ composer require drush/drush
  - Installing drush/drush (8.1.15)
$ php vendor/drush/drush/drush qd --yes --no-server --core=drupal-7 --root=docroot/
...
require_once(docroot//includes/bootstrap.inc): failed to open stream: No such file or directory DrupalBoot7.php:63                        [warning]

Fatal error: require_once(): Failed opening required 'docroot//includes/bootstrap.inc' (include_path='.:') in /Users/kenorb/temp/composer/drupal/vendor/drush/drush/lib/Drush/Boot/DrupalBoot7.php on line 63
...
@weitzman
Copy link
Member

Thats not how Composer works. You have to install drupal via composer as well. See https://github.com/drupal-composer/drupal-project/. Composer and QD should not be used together. Thats one reason QD is out of Drush9.

@kenorb
Copy link
Contributor Author

kenorb commented Dec 18, 2017

I just wanted to clarify that this command works fine, so I didn't have to download Drupal 7 via composer:

php vendor/drush/drush/drush qd --yes --no-server --core=drupal-7

but not when running with --root=docroot/ parameter.


$ php vendor/drush/drush/drush qd --yes --no-server --core=drupal-7
Project drupal (7.56) downloaded to                                              [success]
/Users/kenorb/temp/composer/drupal/quick-drupal-20171218112622/drupal-7.
Project drupal contains:                                                         [success]
 - 3 profiles: testing, standard, minimal
 - 4 themes: stark, seven, garland, bartik
 - 47 modules: drupal_system_listing_incompatible_test,
drupal_system_listing_compatible_test, user, update, trigger, translation,
tracker, toolbar, taxonomy, system, syslog, statistics, simpletest, shortcut,
search, rdf, profile, poll, php, path, overlay, openid, node, menu, locale,
image, help, forum, filter, file, field_ui, text, options, number, list,
field_sql_storage, field, dblog, dashboard, contextual, contact, comment, color,
book, blog, block, aggregator

You are about to create a /Users/kenorb/temp/composer/drupal/quick-drupal-20171218112622/drupal-7/sites/default/settings.php file and CREATE the 'sites/default/files/quick-drupal-20171218112622.sqlite' database. Do you want to continue? (y/n): y
Starting Drupal installation. This takes a while. Consider using the --notify    [ok]
global option.
Installation complete.  User name: admin  User password: 2DovBm3zpx              [ok]
default does not appear to be a resolvable hostname or IP, not starting browser. [warning]
You may need to use the --uri option in your command or site alias to indicate
the correct URL of this site.
http://default/user/reset/1/1513596382/QfaDar4vzuD3eLPsffScxH4c1iCoPnzfFxHy70ytUIU/login
Login URL: 

$ php vendor/drush/drush/drush qd --yes --no-server --core=drupal-7 --root=docroot/
Project drupal (7.56) downloaded to /Users/kenorb/temp/composer/drupal/docroot.  [success]
Project drupal contains:                                                         [success]
 - 3 profiles: testing, standard, minimal
 - 4 themes: stark, seven, garland, bartik
 - 47 modules: drupal_system_listing_incompatible_test,
drupal_system_listing_compatible_test, user, update, trigger, translation,
tracker, toolbar, taxonomy, system, syslog, statistics, simpletest, shortcut,
search, rdf, profile, poll, php, path, overlay, openid, node, menu, locale,
image, help, forum, filter, file, field_ui, text, options, number, list,
field_sql_storage, field, dblog, dashboard, contextual, contact, comment, color,
book, blog, block, aggregator

require_once(docroot//includes/bootstrap.inc): failed to open stream: No such    [warning]
file or directory DrupalBoot7.php:63

Fatal error: require_once(): Failed opening required 'docroot//includes/bootstrap.inc' (include_path='.:') in /Users/kenorb/temp/composer/drupal/vendor/drush/drush/lib/Drush/Boot/DrupalBoot7.php on line 63

So I believe the problem is with --root parameter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants