Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 294539

DB related errors not visible when installing with Drush

$
0
0

Problem/Motivation

When you try to install Drupal from CLI with Drush and you have an issue related to the DB or DB configuration instead of the proper errors you will see Database: Array

This is only happens when you already have settings.php provisioned and configured.

The reason of this is SiteSettingsForm::getDatabaseErrorsTemplate() - it formats error list with Twig inline_template which is suitable for the installer form context but not for CLI/Drush.

Steps to reproduce

Copy default.settings.php into settings.php
Fill access details for the DB, but make a typo in the user/pass
Run drush site:install

Proposed resolution

Modify getDatabaseErrorsTemplate() of the core/lib/Drupal/Core/Installer/Form/SiteSettingsForm.php in a way that will allow errors to be visible in both installer UI and Drush.

Remaining tasks

Agree approach
Patch
Review
Manual testing
Commit

User interface changes

none

API changes

None

Data model changes

None

Release notes snippet

TDB


Viewing all articles
Browse latest Browse all 294539

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>