When I initially load the page my calendar lives on, I do not see any events. However, if I use the arrows on top of the calendar to navigate to the next month and then back to the current month, the events load and display.

Also noteworthy is the fact that this happens in all displays - month, week, day. Even if I switch between them, I don't see any events until I navigate to another month and then back again.

I suspected this might be an issue with caching, but the view does not have any caching enabled.

Comments

sheldonkreger’s picture

Status: Active » Fixed

Turning off Ajax in the view solved the problem.

sheldonkreger’s picture

Status: Fixed » Active

In retrospect, Fullcalendar should either work with Ajax turned on, or give some kind of warning.

marcus178’s picture

I'm having the same problem, however if I turn Ajax off the calendar won't load at all, I get an white server error page. Also when updating the calendar view page I get this error

An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /admin/structure/views/view/plug_bookings_calendar/preview/page/ajax
StatusText: Internal Server Error
ResponseText:

marcus178’s picture

Ok seem the have found the issue, I was using the Beauty Tips flyout from another post, and one of the fields was a entity reference. Removing the field seemed to solve it.

callumm’s picture

I am having the same issue but AJAX is turned off for my view.

The events initialize on load and I can see the GET requests being sent when I switch months on the calendar, but the events don't appear. Then switching away to a different month /week/day/ view refreshes things and the events appear.

I have tried turning AJAX back on and disabling lazy fetching but it makes no difference.

http://bit.ly/1g46Vh2

Have tried turning caching on and off. Have installed calendar on other servers and same result. I guess the next step is to do a clean install and see what module is interfering with it. Or is there some tinkering I can do in JavaScript?

vladsavitsky’s picture

The same issue. Nodes are shown at current (default) view but if data changed to past and navigating to previous months shows no data (empty calendar).

vladsavitsky’s picture

I was able to fix this issue at my site by removing 'Contextual Filters'. Below the export code of removed filter but I believe that this issue related to view settings so try to find "wrong" settings:

-	/* Contextual filter: Date: Date (node) */ 
-	$handler->display->display_options['arguments']['date_argument']['id'] = 'date_argument'; 
-	$handler->display->display_options['arguments']['date_argument']['table'] = 'node'; 
-	$handler->display->display_options['arguments']['date_argument']['field'] = 'date_argument';
-	$handler->display->display_options['arguments']['date_argument']['default_action'] = 'default';
-	$handler->display->display_options['arguments']['date_argument']['default_argument_type'] = 'date';
-	$handler->display->display_options['arguments']['date_argument']['summary']['format'] = 'default_summary';
-	$handler->display->display_options['arguments']['date_argument']['add_delta'] = 'yes';
-	$handler->display->display_options['arguments']['date_argument']['date_fields'] = array( 
-	  'field_data_field_appointment_datetime.field_appointment_datetime_value' => 'field_data_field_appointment_datetime.field_appointment_datetime_value', 
-	);
pjcdawkins’s picture

Issue summary: View changes

Based on the symptoms you mention - you might want to see issue #2148083: No events shown in December (now committed to -dev) and #2185449: Using AJAX results in errors when scrolling through months (working patch).

callumm’s picture

I have removed all contextual filters on the view. Still no joy. Some other fullCalendar users have reported this bit of documentation as being helpful in finding a solution but I don't know how to make sense of this within the Drupal scope. I don't believe this issue is necessarily related to Ajax, turning it off did not resolve the issue with my calendar.

http://arshaw.com/fullcalendar/docs/event_rendering/renderEvent/

dcam’s picture

Status: Active » Closed (outdated)

I've volunteered to help clean up the FullCalendar issue queue. As part of that effort I'm closing issues open for unsupported versions of the module as "Closed (outdated)". That includes any Drupal 7-compatible versions because no active maintainer is supporting them.

If this issue is still relevant for version 3.x of FullCalendar, then feel free to re-open it and update the issue version number.