Open simonda86 opened 1 month ago
I've hit an error while upgrading a site to Craft 4, whilst running the migrations. I'm running version 2.4.2 of the plugin. Any ideas what I can do to fix the problem?
[ERROR] Undefined array key "edition" yii\base\ErrorException in /var/www/html/vendor/ryssbowh/craft-activity/src/recorders/Plugins.php: 51 ▓ ▓ Stack trace: ▓ ▓ #0 /vendor/ryssbowh/craft-activity/src/recorders/Plugins.php(51): yii\base\ErrorHandler->handleError(2, 'Undefined ▓ array...', '/v...', 51) ▓ #1 /vendor/ryssbowh/craft-activity/src/recorders/Plugins.php(28): ▓ Ryssbowh\Activity\recorders\Plugins->onChanged(Object(craft\events\ConfigEvent)) ▓ #2 /vendor/craftcms/cms/src/services/ProjectConfig.php(1159): ▓ Ryssbowh\Activity\recorders\Plugins->Ryssbowh\Activity\recorders\{closure}(Object(craft\events\ConfigEvent)) ▓ #3 [internal function]: craft\services\ProjectConfig->handleChangeEvent(Object(craft\events\ConfigEvent)) ▓ #4 /vendor/yiisoft/yii2/base/Component.php(641): call_user_func(Array, Object(craft\events\ConfigEvent)) ▓ #5 /vendor/craftcms/cms/src/models/ProjectConfigData.php(85): yii\base\Component->trigger('updateItem', ▓ Object(craft\events\ConfigEvent)) ▓ #6 /vendor/craftcms/cms/src/services/ProjectConfig.php(1149): craft\models\ProjectConfigData->commitChanges(Array, ▓ Array, 'plugins.enupal-...') ▓ #7 [internal function]: craft\services\ProjectConfig->handleChangeEvent(Object(craft\events\ConfigEvent)) ▓ #8 /vendor/yiisoft/yii2/base/Component.php(641): call_user_func(Array, Object(craft\events\ConfigEvent)) ▓ #9 /vendor/craftcms/cms/src/models/ProjectConfigData.php(85): yii\base\Component->trigger('updateItem', ▓ Object(craft\events\ConfigEvent)) ▓ #10 /vendor/craftcms/cms/src/services/ProjectConfig.php(530): craft\models\ProjectConfigData->commitChanges('1.2.0', ▓ '2.0.0', 'plugins.enupal-...', true, 'Update plugin s...', true) ▓ #11 /vendor/craftcms/cms/src/services/ProjectConfig.php(490): ▓ craft\services\ProjectConfig->_setInternal('plugins.enupal-...', '2.0.0', 'Update plugin s...', true, false) ▓ #12 /vendor/craftcms/cms/src/services/Plugins.php(865): craft\services\ProjectConfig->set('plugins.enupal-...', ▓ '2.0.0', 'Update plugin s...') ▓ #13 /vendor/craftcms/cms/src/console/controllers/MigrateController.php(378): ▓ craft\services\Plugins->updatePluginVersionInfo(Object(enupal\backup\Backup)) ▓ #14 [internal function]: craft\console\controllers\MigrateController->actionAll() ▓ #15 /vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array) ▓ #16 /vendor/yiisoft/yii2/base/Controller.php(178): yii\base\InlineAction->runWithParams(Array) ▓ #17 /vendor/yiisoft/yii2/console/Controller.php(180): yii\base\Controller->runAction('all', Array) ▓ #18 /vendor/craftcms/cms/src/console/ControllerTrait.php(90): yii\console\Controller->runAction('all', Array) ▓ #19 /vendor/yiisoft/yii2/base/Module.php(552): craft\console\controllers\MigrateController->runAction('all', Array) ▓ #20 /vendor/yiisoft/yii2/console/Application.php(180): yii\base\Module->runAction('migrate/all', Array) ▓ #21 /vendor/craftcms/cms/src/console/Application.php(91): yii\console\Application->runAction('migrate/all', Array) ▓ #22 /vendor/yiisoft/yii2/console/Application.php(147): craft\console\Application->runAction('migrate/all', Array) ▓ #23 /vendor/craftcms/cms/src/console/Application.php(122): ▓ yii\console\Application->handleRequest(Object(craft\console\Request)) ▓ #24 /vendor/yiisoft/yii2/base/Application.php(384): ▓ craft\console\Application->handleRequest(Object(craft\console\Request)) ▓ #25 /craft(22): yii\base\Application->run() ▓ #26 {main}
Thanks for reporting,
I can't reproduce this but I've implemented a fix on 2.4.3 which should work for you
I've hit an error while upgrading a site to Craft 4, whilst running the migrations. I'm running version 2.4.2 of the plugin. Any ideas what I can do to fix the problem?