[BUGFIX] Install Tool fatal with Oracle database 46/27846/11
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Tue, 25 Feb 2014 15:40:34 +0000 (16:40 +0100)
committerSteffen Müller <typo3@t3node.com>
Tue, 25 Feb 2014 20:25:52 +0000 (21:25 +0100)
Installing TYPO3 with an Oracle database (oci8) fails.
After selecting oci8 and passing the credentials,
the install wizard crashes with:

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

Obviously $config got mixed up with $configurationManager.
Fix this typo.

Resolves: #56253
Releases: 6.2
Change-Id: I58c1bc27f56b9a527d1d8fde7cf39b4ecd3ef7b6
Reviewed-on: https://review.typo3.org/27846
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Wouter Wolters
Reviewed-by: Steffen Müller
Tested-by: Steffen Müller
typo3/sysext/install/Classes/Controller/Action/Step/DatabaseConnect.php

index 43dffce..43bcdef 100644 (file)
@@ -90,8 +90,8 @@ class DatabaseConnect extends Action\AbstractAction implements StepInterface {
                                $config = $configurationManager->getConfigurationValueByPath('EXTCONF/dbal/handlerCfg');
                                $driver = $config['_DEFAULT']['config']['driver'];
                                if ($driver === 'oci8') {
-                                       $configurationManager['_DEFAULT']['config']['driverOptions']['connectSID']
-                                               = $postValues['type'] === 'sid' ? TRUE : FALSE;
+                                       $config['_DEFAULT']['config']['driverOptions']['connectSID'] = ($postValues['type'] === 'sid');
+                                       $localConfigurationPathValuePairs['EXTCONF/dbal/handlerCfg'] = $config;
                                }
                        }