From 357547db48a63fb09327111eb7f3d26516d42834 Mon Sep 17 00:00:00 2001 From: Susanne Moog <susanne.moog@typo3.com> Date: Tue, 12 Dec 2017 13:09:30 +0100 Subject: [PATCH] [BUGFIX] Repopulate localconfig before cache reload in ext mgr Reloading caches requires the ext_localconf files. If in an ext_localconf the extension configuration is accessed this will fail directly after installation as the configuration is not reloaded yet. The patch changes the order to first write the new configuration, then read the new configuration into the global array and finally reloading the caches. Change-Id: I9e2cd70078b2038aa30f2b4706aec46243ab2a9d Resolves: #83300 Related: #82368 Releases: master Reviewed-on: https://review.typo3.org/55045 Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de> Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de> --- .../extensionmanager/Classes/Utility/InstallUtility.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/typo3/sysext/extensionmanager/Classes/Utility/InstallUtility.php b/typo3/sysext/extensionmanager/Classes/Utility/InstallUtility.php index f335ec38f366..2e173f4b826e 100644 --- a/typo3/sysext/extensionmanager/Classes/Utility/InstallUtility.php +++ b/typo3/sysext/extensionmanager/Classes/Utility/InstallUtility.php @@ -14,6 +14,7 @@ namespace TYPO3\CMS\Extensionmanager\Utility; * The TYPO3 project - inspiring people to share! */ +use TYPO3\CMS\Core\Core\Bootstrap; use TYPO3\CMS\Core\Database\Schema\SchemaMigrator; use TYPO3\CMS\Core\Database\Schema\SqlReader; use TYPO3\CMS\Core\Service\OpcodeCacheService; @@ -161,6 +162,8 @@ class InstallUtility implements \TYPO3\CMS\Core\SingletonInterface } else { $this->cacheManager->flushCachesInGroup('system'); } + $this->saveDefaultConfiguration($extensionKey); + Bootstrap::getInstance()->populateLocalConfiguration(); $this->reloadCaches(); $this->processExtensionSetup($extensionKey); @@ -177,7 +180,6 @@ class InstallUtility implements \TYPO3\CMS\Core\SingletonInterface $this->importInitialFiles($extension['siteRelPath'], $extensionKey); $this->processDatabaseUpdates($extension); $this->processRuntimeDatabaseUpdates($extensionKey); - $this->saveDefaultConfiguration($extensionKey); } /** -- GitLab