- Issue created by @akalam
- @akalam opened merge request.
- Status changed to Needs review
over 2 years ago 8:36am 1 March 2023 - Status changed to Fixed
over 2 years ago 3:39pm 20 March 2023 Automatically closed - issue fixed for 2 weeks with no activity.
Drupal stores the settings a the service called settings, with class Drupal\Core\Site\Settings.
During the profile installation via drush, as the settings.php is included in a very early bootstrap stage, the settings are being initialized 2 times:
* The first time happens when the the site-install drush command runs.
* The second time is when you confirm you want to install the site (when you answer "yes" in the prompt).
Since we are running the command with drush, everything is running on the same php thread. As consequence the second time the include_once is not being executed a second time, so the settings are not being included. This can trigger undesired side-effects. For example I found the issue when trying to install a site from existing config, because the $settings['config_sync_directory'] didn't exist, but there can be many other issues.
Replace include by require
Fixed
10.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Automatically closed - issue fixed for 2 weeks with no activity.