Comments (14)
@kjmartens The update appears to have fixed the issue. Thank you!
from craft-calendar.
The update fixed the issue for me as well. Thanks!
from craft-calendar.
Thank you, I will give the update a go when posted and let you know. Sorry I don't have more information I know it is frustrating when you can't replicate.
from craft-calendar.
Thank you for confirming @a-am!
from craft-calendar.
I'm experiencing the same issue. Same Craft (4.8.6) and Calendar Pro (4.0.11 -> 5.0) version. I'm also getting the authorId error when trying to view any front end page:
from craft-calendar.
I am experiencing the same error as well
from craft-calendar.
@a-am @johnnymueller @TUSAB-web
I was unable to replicate the issue last week when I briefly looked at this.
I'm back on it today but I am still struggling to replicate.
Can I please have some more info on your Calendar setups? Types of users, permissions etc. Anything specific like this would help.
Thanks
from craft-calendar.
@seandelaney here are some other plugins we are using along side Calendar,
- Redactor
- Typed link field
- Neo
- Formie
- Seomatic/Retour/Vite/Minify
- Position Fieldtype
We have tried both updating from the command line and the CP with equal results. I have had the same results on Production and Local environments both using PHP 8.2. However, these may not be apart of the issue because just trying to access the calendar gives 500 errors and events are not loaded into the calendar.
from craft-calendar.
Getting 500 errors does not sound right at all!
Can you check if the migration script ran?
Also, what does your Calendar settings look like before you upgraded to Calendar 5? Keen to find out if you had any field layouts, user permissions etc?
from craft-calendar.
- I can confirm the migration script ran:
m240319_132700_UpdateElements
. - User permission are all open.
- As far as fields several text fields, one assets field, and one NEO field, on all our Calendars.
- ICS is turned on for some not all
- Have not changed any of the standard Calendar settings or Global Calendar settings.
Here is the error message from the javascript call to get monthly calendar events in the CP
"error": "SQLSTATE[42S22]: Column not found: 1054 Unknown column 'craft_calendar_events.rrule' in 'where clause'\nThe SQL being executed was: SELECT elements.id\nFROM (SELECT elements.id AS elementsId, elements_sites.id AS elementsSitesId, content.id AS contentId\nFROM craft_elements elements\nINNER JOIN craft_calendar_events calendar_events ON calendar_events.id = elements.id\nINNER JOIN craft_elements_sites elements_sites ON elements_sites.elementId = elements.id\nINNER JOIN craft_content content ON content.elementId = elements.id\nINNER JOIN craft_calendar_calendars ON craft_calendar_calendars.id = craft_calendar_events.calendarId\nLEFT JOIN craft_users ON craft_users.id = craft_calendar_events.authorId\nWHERE ((craft_calendar_events.rrule IS NULL AND craft_calendar_events.endDate >= '2024-04-01 00:00:00')\n OR (craft_calendar_events.rrule IS NOT NULL AND craft_calendar_events.until IS NOT NULL AND craft_calendar_events.until >= '2024-04-01 00:00:00')\n OR (craft_calendar_events.rrule IS NOT NULL AND craft_calendar_events.until IS NULL)\n OR (craft_calendar_events.freq = 'SELECT_DATES')) AND (craft_calendar_events.startDate <= '2024-05-06 23:59:59' OR craft_calendar_events.freq = 'SELECT_DATES') AND (elements.archived=FALSE) AND (elements.dateDeleted IS NULL) AND (elements.draftId IS NULL) AND (elements.revisionId IS NULL)\nORDER BY calendar_events.startDate) subquery\nINNER JOIN craft_elements elements ON elements.id = subquery.elementsId\nINNER JOIN craft_elements_sites elements_sites ON elements_sites.id = subquery.elementsSitesId\nINNER JOIN craft_calendar_events calendar_events ON calendar_events.id = subquery.elementsId\nINNER JOIN craft_content content ON content.id = subquery.contentId\nINNER JOIN craft_calendar_calendars ON craft_calendar_calendars.id = craft_calendar_events.calendarId\nLEFT JOIN craft_users ON craft_users.id = craft_calendar_events.authorId\nORDER BY calendar_events.startDate",
from craft-calendar.
I'm now running Craft 4.8.6 on PHP 8.2. Calendar 5. Still not getting any errors.
You also seem to be getting different errors too. authorId
and now rrule
.
Any chance you could send me a DB backup with your calendar tables? Remove all sensitive data.
What MySQL version are you running?
Are you guys also experiencing the same errors or different errors?
Are you also running Craft 4 with PHP 8.2 ?
What MySQL version are you running?
from craft-calendar.
@a-am @johnnymueller @TUSAB-web
I'll have a PR coming soon. I've improved some subqueries to better support table prefixes - the aliases in some of the errors posted above looked wrong. Still cannot replicate an error locally. Very weird. Tested MySQL, Postgres, PHP 8.0, PHP 8.2, Table prefixes and table no prefixes. The worst bugs are the ones you cannot replicate easily.
from craft-calendar.
Just wanted to note I am receiving the same error as well. I've tried it on several different sites in the last week.
from craft-calendar.
I'm very sorry for the trouble caused by this issue. We've just released Calendar 5.0.1 now. Can you try that out and see if it resolves the issue? 🙂
from craft-calendar.
Related Issues (20)
- Custom Exporters for Calendar Events HOT 1
- Can not create event via front end "Start / End Date Cannot be Blank" HOT 1
- When running GQL query getting an Internal Server Error
- Infinite redirects on primary Calendar nav HOT 2
- Several links in the Key Features table result in 404 pages HOT 1
- Max Relations validation on multi site setup HOT 1
- Filter events based on date does not work HOT 1
- FeedMe updates all languages HOT 1
- How to fetch the events that is related to specific categories with GQL .
- Using groupedByWeek() method returns Carbon\Exceptions\UnknownMethodException error after updating to 5.0.4 HOT 2
- Deleting an event in CMS not working HOT 8
- Craft 5 multi-site install error HOT 8
- Duration objects no longer have an events property HOT 3
- Neo fields are not being copied when saving event as new event HOT 1
- Events broken after Craft 4-5 upgrade ("Argument #2 ($title) must be of type string") HOT 2
- Grouping Events by Month/Week/Day - Twig Runtime Error HOT 2
- Unable to import feed with some RRULES HOT 2
- Calendar preventing a Craft 4 => 5 upgrade
- Craft 5 - Multiple instanced fields on events will not save values
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from craft-calendar.