Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
DRUPAL_ROOT is /var/www/sites.
Warning: require_once(/var/www/sites/includes/bootstrap.inc): failed to open stream: No such file or directory in /var/www/sites/all/modules/contrib/registry_rebuild/registry_rebuild.php on line 15 Fatal error: require_once(): Failed opening required '/var/www/sites/includes/bootstrap.inc' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/sites/all/modules/contrib/registry_rebuild/registry_rebuild.php on line 15
This is incorrect -- drupal root is in /var/www.
Is it maybe getting confused by the contrib folder?
Comment | File | Size | Author |
---|---|---|---|
#5 | 1342352.registry_rebuild.more-ambitious.drupal-root-hunt.patch | 1.26 KB | joachim |
Comments
Comment #1
rfayYou actually have to edit registry_rebuild.php (if you're using that technique) to tell it where DRUPAL_ROOT is if it's not in the expected location. I think this is explained on the project page. Better approaches are welcome.
Comment #2
rfayYeah
Again, alternate suggestions are welcome.
Comment #3
joachim CreditAttribution: joachim commentedHmm it's a pretty standard configuration, so maybe drupal root could sniff for index.php and if not found that many folders up, go one higher?
Comment #4
rfayOught to work.
Comment #5
joachim CreditAttribution: joachim commentedHere's a patch; not sure how best to handle an error if nothing is found.
Comment #6
rfayI like it. Committed with minor changes in http://drupalcode.org/project/registry_rebuild.git/commitdiff/4e14fc5