<p>Looks plugin Migration Assistant won't support craftcms 4
<a href="https://github.com/dgrigg/craft-migration-assistant/issues/51" rel="nofollow noreferrer">https://github.com/dgrigg/craft-migration-assistant/issues/51</a></p>

CC BY-SA 4.0
2023-02-13T06:51:06.023Z
2023-02-13T06:51:06.023Z
Thomas
<p>Hi need some help here.
I recently I tried to upgrade Craftcms from Craft Pro 3.7.55.2 to Craft Pro 4.3.6.1, there is no error in migration, but when I try to edit a user group, I got this error:</p>
<pre><code>[web.ERROR] [yii\base\ErrorException:2] Undefined array key &quot;permissions&quot; {&quot;trace&quot;:[&quot;#0 /app/vendor/craftcms/cms/src/web/ErrorHandler.php(79): yii\\base\\ErrorHandler-&gt;handleError()&quot;,&quot;#1 /app/vendor/craftcms/cms/src/services/UserPermissions.php(759): craft\\web\\ErrorHandler-&gt;handleError()&quot;,&quot;#2 /app/vendor/craftcms/cms/src/services/UserPermissions.php(210): craft\\services\\UserPermissions-&gt;_filterOrphanedPermissions()&quot;,&quot;#3 /app/vendor/craftcms/cms/src/controllers/UserSettingsController.php(100): craft\\services\\UserPermissions-&gt;saveGroupPermissions()&quot;,&quot;#4 [internal function]: craft\\controllers\\UserSettingsController-&gt;actionSaveGroup()&quot;,&quot;#5 /app/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array()&quot;,&quot;#6 /app/vendor/yiisoft/yii2/base/Controller.php(178): yii\\base\\InlineAction-&gt;runWithParams()&quot;,&quot;#7 /app/vendor/yiisoft/yii2/base/Module.php(552): yii\\base\\Controller-&gt;runAction()&quot;,&quot;#8 /app/vendor/craftcms/cms/src/web/Application.php(301): yii\\base\\Module-&gt;runAction()&quot;,&quot;#9 /app/vendor/craftcms/cms/src/web/Application.php(625): craft\\web\\Application-&gt;runAction()&quot;,&quot;#10 /app/vendor/craftcms/cms/src/web/Application.php(280): craft\\web\\Application-&gt;_processActionRequest()&quot;,&quot;#11 /app/vendor/yiisoft/yii2/base/Application.php(384): craft\\web\\Application-&gt;handleRequest()&quot;,&quot;#12 /app/web/index.php(84): yii\\base\\Application-&gt;run()&quot;,&quot;#13 {main}&quot;],&quot;memory&quot;:18537592,&quot;exception&quot;:&quot;[object] (yii\\base\\ErrorException(code: 2): Undefined array key \&quot;permissions\&quot; at /app/vendor/craftcms/cms/src/services/UserPermissions.php:759)&quot;} 
</code></pre>
<p>Any idea? thanks</p>
<p>Edited:</p>
<p>I output all the groups here <a href="https://github.com/craftcms/cms/blob/develop/src/services/UserPermissions.php#L759" rel="nofollow noreferrer">https://github.com/craftcms/cms/blob/develop/src/services/UserPermissions.php#L759</a>, looks it's related to another plugin Migration Assistant, no 'permissions' there</p>
<pre><code>'Migration Assistant' =&gt; [
    'createContentMigrations' =&gt; [
        'label' =&gt; 'Create content migrations'
    ]
]
18 =&gt; [
    'heading' =&gt; 'Navigation'
    'permissions' =&gt; [
</code></pre>

<craft3><craft4><upgrades>
Undefined array key "permissions" error after upgrade to Craft4
# Undefined array key "permissions" error after upgrade to Craft4

(Asked by: username_0 on 2023-02-10)

Hi need some help here.
I recently I tried to upgrade Craftcms from Craft Pro 3.7.55.2 to Craft Pro 4.3.6.1, there is no error in migration, but when I try to edit a user group, I got this error:
[web.ERROR] [yii\base\ErrorException:2] Undefined array key "permissions" {"trace":["#0 /app/vendor/craftcms/cms/src/web/ErrorHandler.php(79): yii\\base\\ErrorHandler->handleError()","#1 /app/vendor/craftcms/cms/src/services/UserPermissions.php(759): craft\\web\\ErrorHandler->handleError()","#2 /app/vendor/craftcms/cms/src/services/UserPermissions.php(210): craft\\services\\UserPermissions->_filterOrphanedPermissions()","#3 /app/vendor/craftcms/cms/src/controllers/UserSettingsController.php(100): craft\\services\\UserPermissions->saveGroupPermissions()","#4 [internal function]: craft\\controllers\\UserSettingsController->actionSaveGroup()","#5 /app/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array()","#6 /app/vendor/yiisoft/yii2/base/Controller.php(178): yii\\base\\InlineAction->runWithParams()","#7 /app/vendor/yiisoft/yii2/base/Module.php(552): yii\\base\\Controller->runAction()","#8 /app/vendor/craftcms/cms/src/web/Application.php(301): yii\\base\\Module->runAction()","#9 /app/vendor/craftcms/cms/src/web/Application.php(625): craft\\web\\Application->runAction()","#10 /app/vendor/craftcms/cms/src/web/Application.php(280): craft\\web\\Application->_processActionRequest()","#11 /app/vendor/yiisoft/yii2/base/Application.php(384): craft\\web\\Application->handleRequest()","#12 /app/web/index.php(84): yii\\base\\Application->run()","#13 {main}"],"memory":18537592,"exception":"[object] (yii\\base\\ErrorException(code: 2): Undefined array key \"permissions\" at /app/vendor/craftcms/cms/src/services/UserPermissions.php:759)"} 

Any idea? thanks
Edited:
I output all the groups here https://github.com/craftcms/cms/blob/develop/src/services/UserPermissions.php#L759, looks it's related to another plugin Migration Assistant, no 'permissions' there
'Migration Assistant' => [
    'createContentMigrations' => [
        'label' => 'Create content migrations'
    ]
]
18 => [
    'heading' => 'Navigation'
    'permissions' => [

**Tags:** craft3, craft4, upgrades


---

## 1 answers

### Answer by username_0 on 2023-02-13. Score: 1

Looks plugin Migration Assistant won't support craftcms 4
<https://github.com/dgrigg/craft-migration-assistant/issues/51>


---

