- πΊπΈUnited States smustgrave
Can the MR be updated for 10.1 please.
- π¦πΊAustralia cafuego
This issue is now making my drush calls fail on Drupal 10.1 because my skeleton settings.php used require_once to grab pretty much *all* actual config from a place I manage with config-as-code tools. When I run drush I get:
In Settings.php line 171: Missing $settings['hash_salt'] in settings.php.
Of course, when Drupal is accessed through the web server, it bootstraps fine and everything works as expected.
- π©πͺGermany szeidler Berlin
We're running into the same issue as #19. The error is triggered when using `include_once`. With `include` it works just fine.
For us the error message only happens when using Drush 12. With Drush 11 it works fine.
In Settings.php line 171: Missing $settings['hash_salt'] in settings.php.
- πΊπΈUnited States brad.bulger
A colleague reports discovering a problem with require/require_once in 10.3. Our settings.php file requires default.settings.php and then adds some customization. What we found:
BUT instead it HAS TO BE
"require('default.settings.php')". During a cache clear request
\Drupal\Core\Site\Settings.php gets initialized twice (once before clearing,
once after). Each time Settings::initialize() invokes "require
sites/default/settings.php". It has to return the exact same information both
times. But the require_once line meant that the second time around it was
dropping default.settings.php.