Bug #53997
closed123 Installer tries to find database before the user is asked to select one.
0%
Description
I am confused why I get the error and nobody? I dont find similar reports.
I have downloaded the 6.1.6 dummy and source packages and opened the root in the browser.
First, there is an infinite redirect loop error (not after the first step like #51667.
After reloading TYPO3 is displaying the installer.
After filling in db user, db host and password, I get the following error:
There is no connection to the database! (Username: user, Host: localhost, Using Password: YES) Go to Step 1 and enter a valid username and password!
I debugged the following:
\TYPO3\CMS\Dbal\Hooks\InstallHook hooks the stepOutput in \TYPO3\CMS\Install\Installer::stepOutput()
In $GLOBALS[‘TYPO3_DB’] is the \TYPO3\CMS\Dbal\Database\DatabaseConnection and Installer::createDatabaseForm tries to call the method sol_pconnect of it. This returns NULL because DatabaseConnection::handler_init checks whether a database is set or not.
What am I doing wrong? Is it a bug. Is it because of the infinite redirect loop? Can I fix it?