Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Notice: Undefined index: in og_handler_field_group_audience_state->render() (line 15 of /var/www/vhosts/snowpedia.com/httpdocs/sites/all/modules/og/includes/views/handlers/og_handler_field_group_audience_state.inc).
Comment | File | Size | Author |
---|---|---|---|
#7 | og-field-group-audience-state-2051895-7.patch | 703 bytes | Anonymous (not verified) |
|
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedany help?
Comment #2
shushu CreditAttribution: shushu commented@giorez, in order to be able to help we need more information.
Please look at other issues as examples for the kind of information needed.
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedfinally I discovered what causes this issue. when the og role is set to none I get the error message
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedComment #5
Anonymous (not verified) CreditAttribution: Anonymous as a volunteer commentedI create a view to display articles on a page. I create a Relationship "OG membership: Group Node from OG membership". Then I add field "OG membership: State".
If the author is not a group member $values->users_node__og_membership_state is NULL and render function return $state[NULL]. This patch checks whether the key is different than NULL.
Comment #6
Anonymous (not verified) CreditAttribution: Anonymous as a volunteer commentedComment #7
Anonymous (not verified) CreditAttribution: Anonymous as a volunteer commentedCorrect version
Comment #8
RKopacz CreditAttribution: RKopacz commentedI had this same issue. I had one member who was not assigned to any group, and the views page was not functioning just for the page where the non group assigned member was listed. I arbitrarily added him to a group, and then the view worked.
I will test the patch in #7 myself shortly on a local dev version of the same site.
pozdrawiam ;-)
Comment #9
Anonymous (not verified) CreditAttribution: Anonymous as a volunteer commentedComment #10
indigoxela CreditAttribution: indigoxela commentedSame problem here.
The patch still applies on 7.x-2.10, it absolutely makes sense and I can confirm, that it solves the problem.
Comment #11
loze CreditAttribution: loze commentedThis is still an issue, and this still fixes it.