I'm currently upgrading a project to Craft 4. I first updated Craft and all plugins to the latest versions of Craft 3. After that I changed all versions in composer.json, updated composer.json and tried running the migrate command.
When the migration is at the Navigation migrations I get the following:
*** applying m220428_000000_custom_node_type
> update in {{%navigation_nodes}} ... done (time: 0.004s)
> update in {{%navigation_nodes}} ... done (time: 0.000s)
> update in {{%navigation_nodes}} ... done (time: 0.000s)
> update in {{%navigation_nodes}} ... done (time: 0.000s)
> update in {{%navigation_nodes}} ... done (time: 0.000s)
> update in {{%navigation_nodes}} ... done (time: 0.000s)
> update in {{%navigation_nodes}} ... done (time: 0.000s)
> update in {{%navigation_nodes}} ... done (time: 0.000s)
> update in {{%navigation_nodes}} ... done (time: 0.000s)
> update in {{%navigation_nodes}} ... done (time: 0.000s)
PHP Compile Error 'yii\base\ErrorException' with message 'Type of modules\fields\MarginSetting::$optgroups must be bool (as in class craft\fields\Dropdown)'
I'm not sure if this is related to the Navigation plugin or not, but because the error is triggered for this migration im assuming it is.
Steps to reproduce
Not sure if you will encounter it, might be content/config related.
Update Craft + plugin(s) to latest Craft 3 versions
Sorry, I should have looked into the code/error some more.
This is a Craft project we took over from and apparently there is some custom Module code that is causing this error.
Describe the bug
I'm currently upgrading a project to Craft 4. I first updated Craft and all plugins to the latest versions of Craft 3. After that I changed all versions in composer.json, updated composer.json and tried running the migrate command.
When the migration is at the Navigation migrations I get the following:
I'm not sure if this is related to the Navigation plugin or not, but because the error is triggered for this migration im assuming it is.
Steps to reproduce
Not sure if you will encounter it, might be content/config related.
composer update
php craft migrate/all
Craft CMS version
3.8.13
Plugin version
1.4.32
Multi-site?
Yes
Additional context
composer.json: