-
Notifications
You must be signed in to change notification settings - Fork 396
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
Default local settings using incorrect namespace [Drupal\Core\Installer\Exception\InstallerException] #4271
Comments
Makes sense, although I'm curious at what point this broke. Presumably in Drupal 9.0, but I'd expect to have found this before now. |
I see where the But I can't reproduce the error you describe, and I've never heard of anyone having this problem before, which is a little puzzling given how long those namespaces have existed. Regardless... I think the namespace is superfluous, so if it's causing anyone trouble perhaps we should just remove it: #4287 |
I had a note to add to this. I got this issue when I was upgrading from BLT 11 to BLT 12. I think maybe I chose to ignore the changes to the default local settings file when I did the upgrade. Changing my namespace as @b-sharpe suggested in the default local settings and re-running Note I am running Docksal. This might also be a factor. Adding exception trace so folks can find it with a search engine.
|
Describe the bug
The current default.local.settings.php is using the incorrect namespace for the mysql driver, causing an error during installation.
To Reproduce
Steps to reproduce the behavior, ideally starting from a fresh install of BLT:
composer create-project acquia/drupal-recommended-project --no-interaction
Detailed error output
[info] Undefined index: value install.core.inc:2300 [info] Array to string conversion install.core.inc:2300 In install.core.inc line 2304: [Drupal\Core\Installer\Exception\InstallerException] Database settings: Array
Additional context
If you comment out the DB settings and re-run
blt setup
, it will create the proper settings and work, in which you can see the different namespace.Currently used in BLT:
'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql',
What it should be:
'namespace' => 'Drupal\\Driver\\Database\\mysql',
The text was updated successfully, but these errors were encountered: