Bug #56257
closedCall to a member function qstr() on a non-object
100%
Description
Hello TYPO3 team,
installing TYPO3 with an Oracle database (oci8) fails on certain points. After passing the credentials, the installation crashes with a fatal error:
PHP Fatal error: Call to a member function qstr() on a non-object in typo3/sysext/dbal/Classes/Database/DatabaseConnection.php on line 1882
At this point, $this->handlerInstance is an empty array. The property is filled in the method handler_init($handlerKey). As far as I understood the code, $cfgArray is a merged array from ['DB'] and ['EXTCONF']['dbal']['handlerCfg']['_DEFAULT'] as defined in LocalConfiguration.php. But under certain circumstances, the merge is not complete and the following condition matches, resulting an empty array:
if (!$cfgArray['config']['database']) { // Configuration is incomplete return; }
When putting the DB configuration into the dbal configuration, the bug does not occur:
'EXTCONF' => array( 'dbal' => array( 'handlerCfg' => array( '_DEFAULT' => array( 'config' => array( 'driver' => 'oci8', 'driverOptions' => array( 'connectSID' => '', ), 'database' => 'typo3', 'host' => 'localhost:1521', 'password' => '*****', 'username' => 'johndoe', ), 'type' => 'adodb', ), ), ), ),
Updated by Andreas Fernandez over 10 years ago
- Project changed from 1865 to TYPO3 Core
Updated by Steffen Müller over 10 years ago
- Category set to 999
- Is Regression set to No
Updated by Steffen Müller over 10 years ago
- Category changed from 999 to Install Tool
Updated by Gerrit Code Review over 10 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/28045
Updated by Gerrit Code Review over 10 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/28045
Updated by Gerrit Code Review over 10 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/28045
Updated by Gerrit Code Review over 10 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/28045
Updated by Gerrit Code Review over 10 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/28045
Updated by Xavier Perseguers over 10 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset c5f4b18bbcd327c25b88741d4b8c4925a75a09a3.