Issue Bug Closed

#79089UpgradeWizard (8.5) does not work with alternative cache configuration

David Greiner 12/23/16, 17:38 updated 10/17/17, 18:08

Description

The upgrade wizard seems not to work while updating from 8.4.1 to 8.5. using an alternative cache configuration. In my case i am using redis as caching backend.

The following error occures if i try to start the upgrade wizard:

array_merge() expects at least 1 parameter, 0 given 

TypeError thrown in file
../TYPO3.CMS/typo3/sysext/core/Classes/Database/Schema/SchemaMigrator.php in line 271.

My cache configuration:

$config = array(
    'hostname' => '127.0.0.1',
    'database' => 2
);

$tables = array(
    'cache_hash',
    'cache_pages',
    'cache_pagesection',
    'cache_runtime',
    'cache_rootline',
    'cache_imagesizes',
    'extbase_object',
    'extbase_reflection',
    'datamapfactory_datamap',
    'extbase_reflection',
    'extbase_datamapfactory_datamap',
    'extbase_typo3dbbackend_queries',
    'extbase_typo3dbbackend_tablecolumns',
);

foreach ($tables as $table) {
    $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'][$table]['backend'] = \TYPO3\CMS\Core\Cache\Backend\RedisBackend::class;
    $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'][$table]['options'] = $config;
}

Removing the cache configuration makes it possible to use the upgrade wizard.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.