• Fabrik4.5.1 for Joomla5.2.4

    Fabrik4.5.1 is out. This update is needed for J!5.2.4

    See Announcements

Fixed Calendar issue when inserting the End date element

Giobastia

New Member
Hi,

I am finalising a calendar visualisation where I allow to display into the calendar events from 3 different lists. I have set the following data:
  • Connection: site database
  • List: list 1
  • Start date element: the starting date
  • Label element: the one to be used to define the event label
  • Status element: the one to be used for the class
I have done the same settings for the other 2 lists. However, when I also set the End date element then I cannot navigate through the calendar and nothing is displayed anymore.

I also set some style rules (background/text colour) different for each event.

Am I the only one facing this issue or not? I need to solve this matter since I have some events that are lasting several days, so it is important for me to be able to have a global picture of that.

I am running
  • Joomla 5.2.3
  • Fabrik 4.5.1
  • PHP Version 8.2.27
  • MySQL Database: 8.0.41

Thank you in advance for your amazing extension and I look forward to reading soon a solution :)

Best!!!
Gbastia
 
I can't replicate.
nothing is displayed anymore
If you set an end element in the viz the event will be only displayed if it has and end date added (can be anyone, even before the start date, but must not be empty).
I'm not sure if this is intended, I think it should show the event with the defined minimum duration in this case. (
Already fixed in V4.5.2)

Navigation: Do you get JS errors in your browser console?
 
Last edited:
Hi Troester,

Thank you for your reply.

Concerning the setup of the calendar visualization, here is what I have done:
List 1 - Short events without end date
List 2 - Longer events (2 or 3 days) with end date
List 3 - Longer events (1 or 2 days) with end date

When I activate the end date for lists 2 and 3, all my events in the calendar visualization disappear.

I have tried also to publish a calendar visualisation only with list 2 and including the end date in the setup, but again, nothing appears.

So my question remains active: what am I doing wrong in my calendar or Fabrik settings?


Below the browswe console's report for errors:

Code:
Failed to load resource: the server responded with a status of 500 ()
fullcalendar.js:101 Fetch error: TypeError: Cannot read properties of undefined (reading 'statusText')
index.global.js?8b0385:3604 Uncaught (in promise) TypeError: rawEvents is not iterable
    at transformEachRawEvent (index.global.js?8b0385:3604:34)
    at transformRawEvents (index.global.js?8b0385:3593:25)
    at receiveRawEvents (index.global.js?8b0385:3573:38)
    at reduceEventStore (index.global.js?8b0385:3538:24)
    at CalendarDataManager._handleAction (index.global.js?8b0385:9016:30)
    at TaskRunner.runTask (index.global.js?8b0385:8835:22)
    at TaskRunner.drain (index.global.js?8b0385:8827:26)
    at DelayedRunner.drained (index.global.js?8b0385:166:22)
    at DelayedRunner.tryDrain (index.global.js?8b0385:148:26)
    at DelayedRunner.request (index.global.js?8b0385:111:26)
 
Last edited:
As I said:
As soon as you define an end date element in the viz each entriy in your list must have an end date set.
Entries without end date won't show up in the calendar.
 
Last edited:
Hi Troester,

I have set and defined an end date in the viz. In order to better understand if I was missing something, I also tried to have a calendar viz with only one unique list and I got the same result: all elements of the list were missing and, on top of it, I would not event navigate into the calendar (like if I had a JS error somewhere).
 
Does every record in your list have an end date value set (not NULL)?
 
Last edited:
I confirm that all end date fields of the list I am mentioning are not null, meaning that all end dates are set.

I am sending you with a direct message the link
 
What version of FullCalendar are you running? I did a lot of work on end date handling in the most recent version. You should be running V4.5.2
 
I am running
  • Joomla 5.2.3
  • Fabrik 4.5.1
  • Fullcalendar 4.5.2
  • PHP Version 8.2.27
  • MySQL Database: 8.0.41
Sorry, I deleted my previous message because it was missing the requested info :)
 
OK, just wanted to confirm. @troester will continue to assist. Unfortunately I am travelling for the next 3 weeks and not able to do any serious debugging during this time.
 
Hi Achartier,

Thank you. Please consider me at your disposal for any need to solve this.

I am aware that with such a complex extension like Fabrik, there might be sometimes issues like mine. And I am so happy that Fabrik is now back on the JED, so that it has the visibility that this great extension desearves :)
 
Forget about my remarks related to empty end dates, I had still Fullcalendar V4.5.1; empty end dates are working in V4.5.2.

Fix (see conversation) added.
 
Last edited:
Back
Top