craft-calendar icon indicating copy to clipboard operation
craft-calendar copied to clipboard

Can't save new calendar events after upgrade from Craft 4 to 5

Open brandonjjon opened this issue 3 months ago • 4 comments

What happened?

Image

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.

  1. Start on the latest version of Craft 4
  2. Make sure you have a supertable field and a matrix field on your calendar event entry type
  3. Make sure that works ok
  4. Upgrade to Craft 5
  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

brandonjjon avatar Sep 01 '25 16:09 brandonjjon

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. 🙂

kjmartens avatar Sep 10 '25 04:09 kjmartens

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?

brandonjjon avatar Sep 12 '25 14:09 brandonjjon

Found a bit of a workaround for now. Allows saving the entry with just a title, then validation works as normal after that.

Image

brandonjjon avatar Sep 15 '25 17:09 brandonjjon

Thanks for sharing this @brandonjjon. We'll review this. 🙂

kjmartens avatar Sep 15 '25 18:09 kjmartens