Closed (duplicate)
Project:
Drupal core
Version:
8.0.x-dev
Component:
install system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Mar 2012 at 19:21 UTC
Updated:
29 Jul 2014 at 20:30 UTC
Formerly, in 7.x, during the install process, specifying an incorrect database, username, or password on the install.php?langcode=en&profile=standard step would result in an error message being shown in an errorbox, and the database details entry form being re-displayed. Currently, in 8.x, that is not happening; instead, the raw PDO error message is being displayed "flat" (that is, without special formatting), and the database details form does not follow it.
Comments
Comment #1
dpovshed commentedI did a small research and can confirm that we have something weird here.
Seems that try/catch block defined in the Tasks::connect() function (defined in core/lib/Drupal/Core/Database/Install/Tasks.php ) cannot catch the exception and the exception going to very top handler.
Something might be wrong with class instantiantion.
Comment #2
David_Rothstein commentedNot sure how I missed this when I was filing my issue - sorry about that. But since the patch at #1506630: Namedspaced code throws and catches "Exceptions" which don't exist (causing the DB settings form validation to break on install) should fix this problem, let's close it as a duplicate.
Comment #2.0
David_Rothstein commentedClarifying that this is an 8.x issue, not a 7.x one (in case anyone didn't read the version tag).