Can't save new calendar events after upgrade from Craft 4 to 5
What happened?
It wants me to save the event first before adding pageHeader and pageContent but I can't save the event due to the validation errors. Definitely related to the new nesting stuff in Craft 5 but not sure what the best solve is here. pageHeader is a supertable and contentPage is a matrix. I have ran the console commands as well, fix-titles/fix-content etc. Can't really make these fields optional because they're used elsewhere. I can make Page Content optional in this calendar event entry type, but still doesn't fix the Page Header issue, would rather not make the minimum 0 on that one just to fix this. Any suggestions?
How can we reproduce this?
I'm not sure the exact steps to be honest.
- Start on the latest version of Craft 4
- Make sure you have a supertable field and a matrix field on your calendar event entry type
- Make sure that works ok
- Upgrade to Craft 5
- Test creating an event after the upgrade
Calendar Edition
Pro
Calendar Version
5.0.21
Craft Version
5.8.12
When did this issue start?
- [x] Unsure
- [ ] Fresh install of Calendar
- [x] After upgrading from older Calendar version
- [x] After upgrading from older Craft version
- [ ] After a change to hosting configuration
Previous Calendar Version
5.0.19
Sorry about this @brandonjjon, but it's a current limitation of Calendar in Craft 5.
We do have plans in the future to rewrite many parts of Calendar that will make it play nicer with Craft features. 🙂
Hey @kjmartens appreciate the update. Any idea when we could expect an update there or any sort of workaround you could suggest in the meantime?
Found a bit of a workaround for now. Allows saving the entry with just a title, then validation works as normal after that.
Thanks for sharing this @brandonjjon. We'll review this. 🙂