Open nikolowry opened 1 week ago
We are experiencing the exact same issue. I tried to implement these changes but the error continued. Craft v5.4.2 Calendar v5.0.7 Calendar Edition: Pro
I have determined this issue was introduced with Craft v 5.4.0. I have tried 5.4.2, 5.4.1, 5.4.0 and each one had the same issue.
Sorry for the trouble @nikolowry and @a-am.
We are investigating the issue and hope to have a resolution soon. 🙂
@kjmartens @seandelaney confirming #322 resolves the issue for me. Thanks for the quick fix!
Describe the bug or issue you're experiencing Events field cannot be saved due to serialization issue.
Screencast of issue
https://github.com/user-attachments/assets/9109312f-1635-4f3d-86d8-c8552fcb9a16
Steps to reproduce
Stack trace
Craft & Plugin Info (please complete the following information):
Additional context
I was able to temporarily get around this issue locally with the following changes to https://github.com/solspace/craft-calendar/blob/v5/packages/plugin/src/Elements/Db/EventQuery.php:
$configHash
after "Nasty elements index hack"elements/save-draft
andelements/apply-draft
to "Nasty elements index hack" actions arrayBut our production environment was still throwing the serialization exception, the only difference is that the production instance has revisions and is on Craft v5.4.1. So I ended up writing a new patch that caught
getConfigStateHash
exceptions: