Issue Bug Closed

#75813DBAL fatals for table2handlerKeys

Anja Leichsenring 04/20/16, 14:05 updated 09/02/16, 19:50

Description

This dbal config is in AdditionalConfiguration:

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['dbal']['handlerCfg'] = array(
    '_DEFAULT' => array(
        'type' => 'native',
        'config' => array(
            'username' => '',  // Set by default (overridden)
            'password' => '',  // Set by default (overridden)
            'host' => '',  // Set by default (overridden)
            'database' => '' // Set by default (overridden)
        )
    ),
    'DATAPOOL' => array(
        'type' => 'adodb',
        'config' => array(
            'username' => 'xxx',
            'password' => 'xxx',
            'host' => 'xxx',
            'database' => 'xxx',
            'driver' => 'oci8',
            'driverOptions' => array(
                'connectSID' => false,
                'charSet' => 'AL32UTF8'
            ),
        ),
    ),
);

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['dbal']['table2handlerKeys'] = array(
    'TABLE_1' => 'DATAPOOL',
    'TABLE_2' => 'DATAPOOL',
);

Without the patch, go to the install tool and open the Upgrade Wizards page. It will end up in an error, redirected to the ‘deactivate extensions’ screen, that reads

Detected Fatal Error
Cannot use object of type ADODB_oci8 as array in [...]/typo3conf/ext/050_core/typo3_src-6.2.21/typo3/sysext/dbal/Classes/Database/DatabaseConnection.php on line 999

This is from a 6.2 installation, but the same code still lives in master.

Reviews 1