Bug #56253
closedFatal Error at "Installing TYPO3 CMS"
100%
Description
Hello TYPO3 team,
installing TYPO3 with an Oracle database (oci8) fails on certain points. After selecting oci8 and passing the credentials, the install wizard crashes with a fatal error:
PHP Fatal error: Cannot use object of type TYPO3\CMS\Core\Configuration\ConfigurationManager as array in typo3/sysext/install/Classes/Controller/Action/Step/DatabaseConnect.php on line 93
Please see the attached patch file to fix the bug.
Files
Updated by Andreas Fernandez over 10 years ago
- Project changed from 1865 to TYPO3 Core
Updated by Steffen Müller over 10 years ago
- Is Regression set to No
I don't think the patch is correct.
The patch sets:
$config['_DEFAULT']['config']['driverOptions']['connectSID'] = $postValues['type'] === 'sid' ? TRUE : FALSE;
but $config is neither used below this line nor a reference.
Looking at the rest of the function, I guess something like the following is meant:
$config['_DEFAULT']['config']['driverOptions']['connectSID'] = $postValues['type'] === 'sid' ? TRUE : FALSE; $configurationManager->setLocalConfigurationValueByPath('EXTCONF/dbal/handlerCfg', $config);
Disclaimer: This is just a guess by reading the code for the first time. I never used dbal or oracle.
Can you test and reproduce this on oracle?
Updated by Andreas Fernandez over 10 years ago
- File DatabaseConnect-2.diff DatabaseConnect-2.diff added
I tried your code and didn't notice any changes. So, I guess, it still works ;). I understand your point, but instead writing the new configuration back directly, I put it into $localConfigurationPathValuePairs. This array is written back into the configuration manager at the end of the method. Please see the attached diff.
Updated by Markus Klein over 10 years ago
Instead of pushing patches here, you could push these to the review system. So we can keep track much better...
Updated by Andreas Fernandez over 10 years ago
Link to code review: https://review.typo3.org/#/c/27846/
Updated by Gerrit Code Review over 10 years ago
- Status changed from New to Under Review
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/27846
Updated by Gerrit Code Review over 10 years ago
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/27846
Updated by Gerrit Code Review over 10 years ago
Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/27846
Updated by Gerrit Code Review over 10 years ago
Patch set 9 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/27846
Updated by Gerrit Code Review over 10 years ago
Patch set 10 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/27846
Updated by Andreas Fernandez over 10 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 4da4dba52009760005095a5013245d5d169ce9a5.