From bc2772af983c88740b78e9b73e7ca269608b27c4 Mon Sep 17 00:00:00 2001 From: mattab <matthieu.aubry@gmail.com> Date: Tue, 4 Oct 2016 15:06:18 +1300 Subject: [PATCH] Config file must be writable during upgrade so that plugins are successfully activated/deactivated otherwise Piwik can be left in a state where a warning is displayed and it's hard to troubleshoot that config is only mentionned in config file --- core/Updates/3.0.0-b1.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/core/Updates/3.0.0-b1.php b/core/Updates/3.0.0-b1.php index bb3bf57350..1ac0d4bca8 100644 --- a/core/Updates/3.0.0-b1.php +++ b/core/Updates/3.0.0-b1.php @@ -68,11 +68,8 @@ class Updates_3_0_0_b1 extends Updates ServerFilesGenerator::createHtAccessFiles(); // Renamed plugin ExampleRssWidget -> RssWidget - try { - \Piwik\Plugin\Manager::getInstance()->activatePlugin('RssWidget'); - \Piwik\Plugin\Manager::getInstance()->deactivatePlugin('ExampleRssWidget'); - } catch (\Exception $e) { - } + \Piwik\Plugin\Manager::getInstance()->activatePlugin('RssWidget'); + \Piwik\Plugin\Manager::getInstance()->deactivatePlugin('ExampleRssWidget'); } private function migratePluginEmailUpdateSetting() -- GitLab