Issue Bug Closed

#42271Update LocalConfiguration fails (Install Tool: Upgrade Wizard)

Jana Golinowski 10/22/12, 13:10 updated 10/23/17, 22:13

Description

Due to recent changes in typo3/sysext/core/Classes/Configuration/ConfigurationManager.php the Upgrade Wizard always fails when trying to migrate localconf.php to LocalConfiguration.php.

In typo3/sysext/install/Classes/CoreUpdates/LocalConfigurationUpdate.php (line 112) the new configuration shall be written like this:

\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Configuration\\ConfigurationManager')->writeLocalConfiguration($TYPO3_CONF_VARS);

But the ConfigurationManager never creates the configuration file. In typo3/sysext/core/Classes/Configuration/ConfigurationManager.php the method writeLocalConfiguration() checks if the that file exists and if it’s writable:

if (!@is_file($localConfigurationFile) || !@is_writable($localConfigurationFile)) {
    throw new \RuntimeException($localConfigurationFile . ' does not exist or is not writable.', 1346323822);
}

When I try to perform an upgrade from 4.7 to 6.0 this new LocalConfiguration.php cannot exist. Without that file check the upgrade is fine.

Reviews 0

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