After installing FullCalendar and setting up a block and page as a calendar view, I am getting the following error message:

Notice: Undefined index: raw in fullcalendar_prepare_events() (line 242 of /var/www/cc/sites/all/modules/fullcalendar/theme/theme.inc).

In searching for help on the issue, there was a patch for a dev version of this module in December. Was the patch included in the RR beta3 version? If not, what do I need to do to fix it?

Thanks in advance!

Comments

rtvWebServicesLibrarian’s picture

Status: Active » Closed (cannot reproduce)

Closing issue, I restored from a backup copy, re-installed the module, and the problem went away.

jhedstrom’s picture

Version: 7.x-2.0-beta3 » 7.x-2.0-rc1

I saw this behavior on a site that had the Fences module installed. After unchecking a bunch of defaults set by that module (on the views field settings form, specifically, changing default value to customize markup), this error went away and events once again appeared on the calendar.

bennash’s picture

thanks, I also had the same error with Fences defaults applied to my Date field. jhedstrom's suggestion worked

kingfisher64’s picture

Status: Closed (cannot reproduce) » Active

I wish I couldn't reproduce this!

Tried the suggestion in #3. Finally after hours of tweaking I believe i've found the culprit. I have the fences module installed and am using it.

Notice: Undefined index: raw in fullcalendar_prepare_events() (line 242 of sites/all/modules/fullcalendar/theme/theme.inc).

Solution

In views fullcalendar display when adding a date field under 'style settings' uncheck "use field template". By default this is checked. As soon as this is turned off the dates reappear on the calendar.

So in essence this appears to be conflicting with fences module. Could someone confirm this, so a note could be put in either the readme or on the project homepage to make others aware of this potential conflict.

Many thanks

kingfisher64’s picture

Just installed fullcalendar again and got this error. Luckily there is a solution (that I posted!) - don't remember that, lol.

jsheffers’s picture

Yep, this solution worked for me!

rhym006’s picture

Hi there! I have the same problem with open atrium...
when changing users I have this notification:

Notice : Undefined index: raw dans fullcalendar_prepare_events() (ligne 242 dans C:\wamp\www\openatrium\profiles\openatrium\modules\contrib\fullcalendar\theme\theme.inc).

Any suggestions?

ps: I have already try the solutions above but dont work for me,
thank you

mchris82’s picture

Issue summary: View changes

I was receiving this error while using FullCalendar with Organic Groups. I narrowed it down to an issue of FullCalendar wanting to load nodes that the logged in user didn't have permission to access due to the permissions set in Organic Groups. I was able to resolve the issue by adding the Relationship "OG membership: OG membership from Node" and adding a Contextual Filter of "User: Group Membership" using the aforementioned Relationship. This allows FullCalendar to load only nodes that the logged in user has permission to view via Organic Groups.

I thought I'd share in case someone experiences the same issue and stumbles upon this post while searching for a solution.

csc4’s picture

I had this too - also have Fences module #1516850-4: Getting error message "Undefined index: raw in fullcalendar_prepare_events()" fixed it - thanks @kingfisher64

hunlaprovo’s picture

YES!!!!!!!THANKS
Notice: Undefined index: raw in fullcalendar_prepare_events() (line 242 of sites/all/modules/fullcalendar/theme/theme.inc).

Solution

In views fullcalendar display when adding a date field under 'style settings' uncheck "use field template". By default this is checked. As soon as this is turned off the dates reappear on the calendar.

So in essence this appears to be conflicting with fences module. Could someone confirm this, so a note could be put in either the readme or on the project homepage to make others aware of this potential conflict.

tenken’s picture

The posted solution with Fences installed fixed my problem as well!

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.