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).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Anonymous’s picture

Issue summary: View changes

any help?

shushu’s picture

Status: Active » Postponed (maintainer needs more info)

@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.

Anonymous’s picture

finally I discovered what causes this issue. when the og role is set to none I get the error message

Anonymous’s picture

Status: Postponed (maintainer needs more info) » Active
Anonymous’s picture

I 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.

Anonymous’s picture

Anonymous’s picture

RKopacz’s picture

I 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 ;-)

Anonymous’s picture

Status: Needs review » Needs work
indigoxela’s picture

Status: Needs work » Reviewed & tested by the community

Same problem here.

The patch still applies on 7.x-2.10, it absolutely makes sense and I can confirm, that it solves the problem.

loze’s picture

This is still an issue, and this still fixes it.