Bug #42271
closedUpdate LocalConfiguration fails (Install Tool: Upgrade Wizard)
100%
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.
Updated by Felix Oertel almost 12 years ago
Was broken, while making it non-static (http://review.typo3.org/15267). Also no error message is displayed, just "Update FAILED!".
Updated by Christian Kuhn almost 12 years ago
The update wizards converts localconf.php to LocalConfiguration.php
Within this process, LocalConfiguration.php should be freshly created:
typo3/sysext/install/Classes/CoreUpdates/LocalConfigurationUpdate.php:
// Write out new LocalConfiguration file
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Configuration\\ConfigurationManager')->writeLocalConfiguration($TYPO3_CONF_VARS);
writeLocalConfiguration() checks if the file exists with @is_file() and throws an exception if not ... so at this point, the ugrade wizard always throws exception #1346323822
One solution is to think about the file existance check in writeLocalConfiguration(), another one is to 'touch' an empty LocalConfiguration file in the wizard first. Furthermore the should show a better meaningful message if it fails (eg. the exceptions getMessage).
Updated by Christian Kuhn almost 12 years ago
- Target version set to 6.0.0-RC1
- PHP Version set to 5.3
must have!
Updated by Gerrit Code Review almost 12 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/16088
Updated by Gerrit Code Review almost 12 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/16088
Updated by Gerrit Code Review almost 12 years ago
Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/16088
Updated by Gerrit Code Review almost 12 years ago
Patch set 4 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/16088
Updated by Nicole Cordes almost 12 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset d6c90bbe90c90671f50452cf4b5bd59df5d9a91b.
Updated by Riccardo De Contardi almost 7 years ago
- Status changed from Resolved to Closed