Project

General

Profile

Actions

Bug #75813

closed

DBAL fatals for table2handlerKeys

Added by Anja Leichsenring about 8 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Should have
Category:
Database API (Doctrine DBAL)
Target version:
Start date:
2016-04-20
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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.

Actions

Also available in: Atom PDF