OgException: Cannot set visibility of node ID 4617 as the <em class="placeholder">node</em> group of type <em class="placeholder">region</em> does not have the "Group visibility" field attached to it. in _og_access_verify_access_field_existence() (line 254 of /home/healthy/public_html/sites/all/modules/og/og_access/og_access.module).

This is the error I get when trying to create a group content which has two group audience fields: one for a group that uses group privacy and another that does not use group privacy.

Apparently, the OG module currently forces users to add the group privacy field to all groups which are group audiences of group content with group content that has group content visibility. If not, current error appears.

Comments

ranroz’s picture

@Yuri-

You can make the first og_group_ref field of your content type to be multi-valued.
I have no problem creating content to both group types (one visible and one not) with a single og_group_ref field.
Is using 2 group audience fields is a must?

Yuri’s picture

Yes, for the user experience this is a must in my site because there is a difference between 'regions' and 'groups' that can't be mixed up without great confusion happening. I guess that is why people add multiple entity reference fields with OG behavior in the first place.

jaesperanza’s picture

Subscribing...

Blanca.Esqueda’s picture

I got the same error - same reason.