Using the Full Calendar and Organic Groups modules, if I create content "Event" and edit the content to have an Organic Group Audience and/or Group Visibility Field and select and save data in those fields, for non-admin users only the corresponding Event does not show up in my custom view using the Full Calendar display even if the Group Visibility is set to Public, and an error message is displayed above the calendar for each event with those characteristics (the error message reads as below). I get the same problem using the Parish Calendar plugin for Full Calendar. If I am logged in as an admin, I see all of the events and get no error messages. If I have events that have not Organic Group Audience set nor a Visibility Set, the Event shows up fine for non-admin users.

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

It seems effectively that I cannot use Organic Groups Audience or Visibility fields if I want events to be viewable from the calendar, however this is quite limiting. Any suggestions on how to proceed?

Thanks for any help here!

CommentFileSizeAuthor
#3 OG Groups field access.png42.16 KBBillyClackers
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

spledger’s picture

I'm also having this issue. Has anyone been able to fix it??

I noticed that when I insert print_r($item); before line 242 in theme.inc, I get the following as just a regular site user:

Array
(
    [rendered] => Array
        (
            [#markup] => <span class="date-display-single">Tuesday, July 10, 2012 - <span class="date-display-start" property="dc:date" datatype="xsd:dateTime" content="2012-07-10T16:00:00-06:00">16:00</span> to <span class="date-display-end" property="dc:date" datatype="xsd:dateTime" content="2012-07-10T18:00:00-06:00">18:00</span></span>
            [#access] => 
        )

)

Whereas when I do so as an administrator, I get this instead:

Array
(
    [rendered] => Array
        (
            [#markup] => <span class="date-display-single">Tuesday, July 10, 2012 - <span class="date-display-start" property="dc:date" datatype="xsd:dateTime" content="2012-07-10T16:00:00-06:00">16:00</span> to <span class="date-display-end" property="dc:date" datatype="xsd:dateTime" content="2012-07-10T18:00:00-06:00">18:00</span></span>
            [#access] => 1
        )

    [raw] => Array
        (
            [value] => 2012-07-10 22:00:00
            [value2] => 2012-07-11 00:00:00
            [rrule] => 
            [timezone] => America/Denver
            [timezone_db] => UTC
            [date_type] => datetime
        )

)

I hope this helps someone. I'll keep looking about.

ZetaTrooper’s picture

I ended up trying a different module, "Calendar" http://drupal.org/project/calendar , and it does not give me any problems with OG content types / visibilities.

BillyClackers’s picture

FileSize
42.16 KB

Hi,

I had the exact same issue with OG and Fullcalendar.

I managed to fix this by editing the group field access permissions.

If you go to 'admin/config/group/permissions' - Make sure that members are allowed to see fields that you are displaying in the calendar. (ie the date field which you are using).

See the attached image.

This worked for me, hope that helps.

DrupalGarm’s picture

Jep, it works for me, too :) thx

DrupalGarm’s picture

Issue summary: View changes

Added additional information for greater usefulness and clarity.