-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calendar preventing a Craft 4 => 5 upgrade #305
Comments
Is there and progress or update on this? We are still awaiting this solution so that we can update to Craft 5. Thanks, |
Sorry for the delay @dMediaJam. We're releasing an update this week, probably today. 🙂 |
This should be resolved in Calendar 5.0.8 now. 🙂 |
This is not resolved. Please re-open. I'm getting the same issue, and have heard from a fellow developer that they were only able to upgrade to craft 5 if then completely uninstall your Calendar Module. Please advise. Dwayne |
Issue still exists. Still getting the same error. Can this error be re-opened? Or do I start a new issue in GitHub?
The issue goes away if I completely uninstall Calendar Plugin, according to a craft support staff communication to me.
Please advise,
Thanks,
Dwayne
|
Sorry about this @dMediaJam. I have reopened the issue and we'll continue to investigate. 🙂 |
What steps are you doing to trigger this error on your end? Can you outline them here, so I can do exactly what you are doing on my end. The steps I took to replicate the issue was: Installed Calendar The steps I took to test the issue was fixed: Restored my DB backup. |
I have another PR pending with some more improvements. New steps to follow when Calendar Restore your DB backup (with Calendar You should be good now, with Craft 5 and Calendar 5 both installed. I will ping here once Calendar |
Okay. Thank you.
|
Sorry for the wait @dMediaJam, We have released Calendar 4.0.16, which includes the a new console command to search for duplicates and repair them.
Please let me know if you continue to experience any issues. |
Yes. I still get the error.
d
…________________________________
From: Kelsey Martens ***@***.***>
Sent: 17 October 2024 16:57
To: solspace/craft-calendar ***@***.***>
Cc: Dwayne Jamieson ***@***.***>; Mention ***@***.***>
Subject: Re: [solspace/craft-calendar] Calendar preventing a Craft 4 => 5 upgrade (Issue #305)
Sorry for the wait @dMediaJam<https://github.com/dMediaJam>,
We have released Calendar 4.0.16, which includes the a new console command to search for duplicates and repair them.
1. Back up your database.
2. Open up your CLI app.
3. Update to Calendar 4.0.16.
4. Run the following command: calendar/calendars/fix-field-layout-tabs-elements-uids --rebuildProjectConfig.
5. That should be it -- you should be able to upgrade to Calendar 5 and Craft 5 without issue. 🙂
Please let me know if you continue to experience any issues.
—
Reply to this email directly, view it on GitHub<#305 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BEPKUBGDOK7636TIWEPYYYLZ4AQCJAVCNFSM6AAAAABLRKSY4WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRQGU2TSMZXG4>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@dMediaJam Are you restoring your DB back to its original state (with Calendar 4.0.14 on Craft 4.10.6 installed) first? |
I'll try again. perhaps I'm missing something in the process. |
Steps here #305 (comment) |
Still an error. There's nothing to 'fix' when the uuid command runs. Worth Noting:
So I've been using the Calendar on the current versions (5 and above) for a while. I suspect this my be causing an issue. Six months agoAny chance I'm correct in this? Our Site has been plugging away on Calendar version 5 for these past 6 months. So if relevant, what are my steps to resolve this? Steps that I keep trying #305 (comment) don't work for me. Thanks, |
Sorry for the continued trouble, @dMediaJam. This might be a case where we just manually fix it in the database for you. Are you able to share that with us so we can make the fix? If so, please create a new private ticket by emailing [email protected]. 🙂 |
Okay.
Thank you. I just shared that with you via wetransfer.
Thanks,
Dwayne
|
Got it, thanks @dMediaJam. I'll have a developer check into it shortly. 🙂 |
Hi @dMediaJam, We made another update to the console command to find additional orphaned rows. We then set up your site locally and tested the command and upgrade process to ensure it would work fully. 🙂 Here's the steps to follow on your side:
Please let me know how it goes. 🙂 |
Excellent, thanks @dMediaJam. 🙂 You'll just want to run this command in your console and it'll be good:
|
Thank you. That fixed the title issue. d |
Debugging a customer’s failed Craft 4 => 5 upgrade.
It keeps failing with this stack trace:
Running the
utils/fix-field-layout-uids
CLI command on Craft 4 doesn’t fix the issue.That
utils/fix-field-layout-uids
CLI command specifically looks to clean up duplicate UUIDs from project config data.Calendar doesn’t appear to store field layout UID info in project config, but the database.
After debugging, it looks like all of the duplicate UIDs are Calendar element types.
Our guess is that this happens when duplicating a Calendar and it’s copying field layout elements for each tab verbatim without updating to unique UIDs.
craft-calendar/packages/plugin/src/Controllers/CalendarsController.php
Lines 140 to 148 in c5fe3d8
If you can’t reproduce it based on that information, I’ll check with the customer to see if we can share a database dump and files with you.
Craft & Plugin Info (please complete the following information):
The text was updated successfully, but these errors were encountered: