Actions
Bug #42271
closedUpdate LocalConfiguration fails (Install Tool: Upgrade Wizard)
Start date:
2012-10-22
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
6.0
PHP Version:
5.3
Tags:
Complexity:
medium
Is Regression:
Sprint Focus:
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.
Actions