Skip to content

[5.x]: migration from 4 to 5 exception at entrify_matrix_blocks #16383

@maknapp

Description

@maknapp

What happened?

Description

I am migrating from 4.13.8 to 5.5.8 (with postgresql).

Exception: Attempt to assign property "type" on null (/var/www/craft/vendor/craftcms/cms/src/migrations/m230617_070415_entrify_matrix_blocks.php:112)
#0 /var/www/craft/vendor/craftcms/cms/src/db/Migration.php(50): craft\migrations\m230617_070415_entrify_matrix_blocks->safeUp()
#1 /var/www/craft/vendor/yiisoft/yii2/console/controllers/BaseMigrateController.php(758): craft\db\Migration->up()
#2 /var/www/craft/vendor/craftcms/cms/src/console/controllers/MigrateController.php(382): yii\console\controllers\BaseMigrateController->migrateUp()

The $fieldLayoutUid layout uid does exist in the fieldlayouts table, if that helps.

$fieldLayout = $fieldLayoutUid ? $fieldsService->getLayoutByUid($fieldLayoutUid) : new FieldLayout();

Craft CMS version

5.5.8

PHP version

8.3.6

Operating system and version

Ubuntu 24.04

Database type and version

postgresql 16.6

Image driver and version

No response

Installed plugins and versions

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions