Closed larsboldt closed 4 months ago
I'm unable to reproduce this; if possible, could you please send your composer files and database backup to plugins@spicyweb.com.au and we'll have a look.
Files sent!
Thanks for sending those. It looks like some block types from the same field have somehow been assigned the same sortOrder
in the database, so our migration in Neo 4 to convert the sortOrder
values in the project config to ordered arrays stored at the neo.orders.<field uid>
path would not include some of the affected block types. Since those block types then have neither a sortOrder
value nor an item in the neo.orders.<field uid>
array in the project config, this error occurs.
Unfortunately, I'm not really sure why some block types have ended up with the same sortOrder
- maybe an old Neo bug that I can't remember - but I think the best way to resolve it would be to temporarily revert to your Craft 3 composer files, and resave the Neo field with the affected block types, without making any changes, which should then force them to have different sortOrder
values. Then upgrade to Craft 4, and this error should be gone. (Without wanting to give away too much publicly, the last letter in the affected Neo field's name is e
.)
I'll close this issue for now, but please let me know if the above does not resolve the issue.
Did as suggested and it seems to have worked. Thanks!
Bug Description
Upgrading from CraftCMS 3.9.10 to 4.8.0 and Neo from 2.13.19 to 4.0.6 gives the following exception when applying project config:
Steps to reproduce
Expected behaviour
No response
Neo version
4.0.6
Craft CMS version
4.8.0
What is the affected Neo field's propagation method?
No response
Does this issue involve templating, and if so, is eager-loading used?
This is not a templating issue