Ever since I upgraded from OG 7.x-1.5 to 7.x-2.3, the views content pane for my groups has been completely screwed up. I've been researching this for weeks with zero success. In the previous version of OG, I'd set up a content pane to deliver posts written by group members to the appropriate group pages. Now, however, all of the posts from all of the groups are showing up in every group.

I've tried all different kinds of contextual filter and relationship combinations within Views, but the ones that seem the most consistent across the different forum posts I've seen (and using OG Extras as a rough guide) are these:

Contextual filter: "(OG membership from node) OG membership: Group ID" (with these configurations: Relationship: OG membership from node/Provide default value: Type: Current OG group from context/Group Type: Node)/Specify Validation Criteria: OG Group)

Relationship: OG membership: OG membership from Node

In the "Pane Settings" area, under "Argument Input" I have "From Context" and the Required Context is "OG Membership ID"

Under "Filter Criteria" I have "Content Published (Yes)" and "(OG membership from node) OG membership: Group_type (= Node)"

This gives me two results which are not wanted:

1) A bulleted list of the group numbers with the number of posts in parentheses beside them and
2) This bulleted list is on the landing page of every single group

Instead, I want the posts written by members of each particular group to show up on the landing page for that group.

In the node I'm overriding to display my content pane, I'm having trouble figuring out the "Context" and "Relationships" settings (I'm using Panels 7.x-3.3, in case that matters). The only OG-related relationship in 7.x-2.x is "OG membership from a group node and user", but when I try to add that as a relationship, I get the following error:

Notice: Undefined offset: 1 in og_membership_from_group_and_user_context() (line 28 of .../modules/og/plugins/relationships/og_membership_from_group_and_user.inc

And I have no idea what context to add here. In short, I'm really confused. Can someone please help me?

Comments

StephenRobinson’s picture

I performed the same upgrade and it broke "Relationships - OG group: OG group from Node"

StephenRobinson’s picture

wonderfull, it also decided to delete my tables field_data_group_audience field_revision_field_data_group_audience ??????????????????/

StephenRobinson’s picture

wtf.........all my "content type to be a group content" are now "content type to be a group"??????????????/

StephenRobinson’s picture

my content types have had group_audience removed and group_group added!!!!!!!!!!!!!!!!!!!!!!!!!!!

StephenRobinson’s picture

field user-user-group_audience has been deleted!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

StephenRobinson’s picture

this is a worse disaster than the upgrade from 6 that didnt work......and had to write my own!!!

Drupoth10’s picture

I feel your frustration, @SangersDrupalDude. I've been going around in circles for weeks now trying to figure out what the heck is going on. My group_audience fields weren't switched with group_group -- that's really strange.

StephenRobinson’s picture

I have been pointed at https://drupal.org/node/1839652, at first glance seems to have worked reasonably well will have to fork and do many updates to my custom code, scaringly at least og_users_roles and og_membership have the node->nid substituted with og->gid, unwanted addition of is group content to my groupplus losing my group_audience field from nodes and users, plus all my views foobarred.

Drupoth10’s picture

Yeah, that page didn't help me much. I've managed to recreate the "Add Content" block by using the Entity Reference Prepopulate module, but I still can't get the contextual filter to show the content that's specific to each group. So frustrating.

I'm starting to think it may be because my views content pane isn't talking to the panel that lists the nodes. I read a few places that you don't have to set up the context or relationship in the panel anymore (you used to have to in earlier versions of OG, but no longer in 7.x-2.x), but I'm not so sure that's not what's wrong since all of my other configurations within the view are consistent with the OG Extras content view, which I've been told over and over again to model my OG content view after.

What am I doing wrong? Any help would be really appreciated.

Drupoth10’s picture

Issue summary: View changes

Revised the wording of one sentence