arnor@icetips.com
Member
Hi guys,
We recently upgraded to Joomla 3.8.x and Fabrik 3.8.1. We use the FullCalendar visualization and after the update we discovered that the calendar was always blank. After some debugging this morning I discovered that the calendar worked when Joomla is in Debug mode. I then found in fullcalendar.php - getEvents() method that the start date and end dates were blank when Joomla was in non-debug mode but correct when it was in debug mode:
$calStart = $input->get('startDate', '');
$calEnd = $input->get('endDate', '');
Looking for where startDate and endDate are filled in lead me to the fullcalendar.js file, starting at line 56.
What I discovered was very interesting: The minified version does NOT work, the non-minified works. I minified the non-minified file myself with two online minifiers with exactly the same results!
This screenshot is from the Chrome debugger when using the NON-minified file:
This screenshot is from the Chrome debugger when using the minified file:
Notice that the entire section that builds the URL is not there! The c and d parameters (start, end) are never used. This is the section of the non-minified file:
I'm not much of a JavaScript programmer, but this looks very strange to me.
Is this a known problem and has it been fixed?
Best regards,
Arnor Baldvinsson - Icetips Alta LLC.
We recently upgraded to Joomla 3.8.x and Fabrik 3.8.1. We use the FullCalendar visualization and after the update we discovered that the calendar was always blank. After some debugging this morning I discovered that the calendar worked when Joomla is in Debug mode. I then found in fullcalendar.php - getEvents() method that the start date and end dates were blank when Joomla was in non-debug mode but correct when it was in debug mode:
$calStart = $input->get('startDate', '');
$calEnd = $input->get('endDate', '');
Looking for where startDate and endDate are filled in lead me to the fullcalendar.js file, starting at line 56.
What I discovered was very interesting: The minified version does NOT work, the non-minified works. I minified the non-minified file myself with two online minifiers with exactly the same results!
This screenshot is from the Chrome debugger when using the NON-minified file:
This screenshot is from the Chrome debugger when using the minified file:
Notice that the entire section that builds the URL is not there! The c and d parameters (start, end) are never used. This is the section of the non-minified file:
I'm not much of a JavaScript programmer, but this looks very strange to me.
Is this a known problem and has it been fixed?
Best regards,
Arnor Baldvinsson - Icetips Alta LLC.