I have enabled Organic Groups and Organic Groups UI.

I have created a content type "Group" and enabled it as a group content type. I have created a new piece of content using the Group type and set it to be a group. I am the group manager.

I set Basic Page to be group content.

When I create a Basic Page, it has a Groups Audience field, but the list of "Your Groups" is empty (containing only "-None-"). Since I am an administrator, I also get a searchable field for "other groups" but nothing turns up when I begin typing the name of the only group on my site.

I'm sure I have missed a basic setting somewhere, but I can't figure out what it is!

Comments

tame4tex’s picture

Check if your "Group" node published. If it isn't and you don't have permission to view unpublished content, it could be the reason why your group isn't being listed under the Groups Audience field.

skessler’s picture

Are there other reasons this might happen?

I can see under /user that I am in the group but no groups show up in the Group Audience.

Thanks,
Steve

valsgalore’s picture

I don't have much new insight on this, but in my case, I think it was a conflict with another module. I was working on a test site. After installing OG on a different test site, it worked as expected.

quadcomm’s picture

I'm having the same problem and I'm working off a fresh Drupal installation from today, with few modules.
I'm using the latest OG 7.x-2.2

quadcomm’s picture

Version:7.x-2.0-beta4» 7.x-2.2

I just re-installed Drupal and was able to re-produce the problem. Maybe I forgot a step, please let me know. I installed only the required modules for OG 7.x-2.2 and OG UI. No other modules were installed.

This solution WORKS:

1. Set the Article content type as Group.
2. Set the Basic Page content type as Group content.
3. Create a new Article titled "New York Group" or whatever.
4. Fully subscribe to "New York Group" group and then create a new Basic Page. You'll see the Groups audience drop-down box populated with "New York Group". It works!!

To reproduce the problem (I want to use Taxonomies as Groups):

1. Create a new taxonomy vocabulary called "Boston Group" or something.
2. Go to admin/config/group/fields . Under bundles, select your "Boston Group" vocabulary. Under Fields, select just "Group".
3. Add some terms to your Boston Group vocabulary, like "marathon" and "bombing". Make sure that these terms are Groups (if you added terms before, then you will need to manually set them as Groups.
4. Fully subscribe to the "marathon" term (group).
5. Now create a new Basic Page content. Even though this is a group content, it won't show any taxonomy terms (that are Groups) in the Group Audience field.

Am I missing something?

quadcomm’s picture

Update:

I created a new Content Type "Test" that is both a Group and Group Content. I created a few Test contents and the Group Audience field is still showing -- None -- even though I'm a member of all groups and I have an admin role. What am I doing wrong? I feel like I'm going crazy..

quadcomm’s picture

Found the solution for my problem in #5.. ignore post #6:

1. Go into "Manage Fields" for Basic Page (this content type has a Group Audience field in my case).
2. Click "Edit" for the Group Audience field.
3. Make sure that the "Target Type" is a Taxonomy Term (in my case).
4. Make sure that the "Entity Selection" is Organic Groups and choose the relevant Taxonomy Vocabulary ("Boston Group" in my case).

Save everything. Now create a new Basic Page and you'll see all the taxonomy term groups listed in your group audience.

I'm sorry if this is confusing, but hopefully this will help others in any way.

maxchock’s picture

StatusFileSize
new18.28 KB
new20.53 KB
new18.29 KB
new20.58 KB

Hi I got similar problem but in my case, site administrator are working just fine for Group Audience field as you can see from the picture below:

https://drupal.org/files/Selection_044_1.png

but authenticated user which is already a member of that group still showing " - NONE -" on Group Audience field...

https://drupal.org/files/Selection_045_3.png

I have checked the permission on /admin/people/permissions
https://drupal.org/files/Selection_046_3.png

and also /admin/config/group/permissions/node/group
https://drupal.org/files/Selection_047_3.png

Any idea what's wrong with my configuration?

maxchock’s picture

I'm sorry, eventually I found out the "member" can't post anything is because the membership are still in "Pending" state. Set it to "Active" and the Group Audience list appeared.

Richard Cheung’s picture

#3 @valsgalore

I discovered that when installed and enabled File entity module 7.x-2.0-alpha1, the Groups audience field will shown - None - only.

Should I report it as a bug in File entity module or in organic groups module?

Hope this will help!

DerekAhmedzai’s picture

@Richard Cheung thanks!

I'd just upgraded to file_entity 7.x-2.0-alpha1, and couldn't work out why the group audience field was empty on my site.
Well, it was empty for authenticated users, admins could see all the groups as normal.

Turned file_entity off and it's back to normal.

DerekAhmedzai’s picture

Edgar Saumell’s picture

Same here, after updating File Entity module.

In my case, solution was:

1. Go into "Manage Fields" for my group content type
2. Click "Edit" for the Group Audience field
3. Save settings

lahode’s picture

Nope it doesn't work for me.

Actually, this problem happens only for content types which are defined both as group and group content

jippie1948’s picture

It happened when I upgraded a D6 web site to D7.

There were no groups appearing in the Groups audience box of a Group post content type. This had nothing to do with a content type that was both a group and group content.

The groups appeared in the Audience-box when I used the Rollback Import options in Migrate to re-import the D6 data.

Best wishes,

JP

rodrigo21’s picture

In my case is as simple as this:
A non member cannot publish group content. Add members first, then they will see groups which they belong too as options in 'Group Audience' field, in the group content.

Powergird’s picture

Issue summary:View changes

Edgar Saumell

thank you ,it worked.

marchellodepello’s picture

Hi, i had a problem, i can't use "Entity reference prepopulate", and no groups appeared in the "Groups audience " field.

Logged in as admin it works fine!

I find out when the group is NOT bublished, this is exactly what happend. Make the group public, and things start working.

BUT this is not a fine solution, I don't want the groups to be public! Then everyone can see the group name and the users in it. That's a no- go.

Why can a group member not select a non-published group?
It looks like a views with the filter " Content: Published (Yes) " . Can it turned off, then the problem is gone.

I want the group not published, but a group member can still put content in it.

marchellodepello’s picture

Got it. I was thinking not publishing the group then I can hide the group itself for the outside world. This is the normal thing to do with hiding content for the outside world.
Maar met OG is het anders: you can hide a group with a function of OG itself.

The settings:
I had to publish the group, and use "Organic groups access control
(og_access)" , to hide the group for the world.
- enable the module "Organic groups access control"
- go to "OG field settings", and give the 'bundle' witch is the group you want to hide the field "Group visibility".
- then go to the group, and set "Private - accessible only to group members"
- be sure the group itself is published.

Done!

now I have a group, when i acces it not- logged in i get an "access denied". But a group member can select the group, and "Entity reference prepopulate" works too.

marchellodepello’s picture

StatusFileSize
new14.28 KB

add onn .. When the group is not published, "Entity reference prepopulate" don't work.
with above settings "Entity reference prepopulate" works, and the group is still hidden.

bbu23’s picture

StatusFileSize
new36.72 KB

Hello,

I worked with the OG module and I know what the problem is.
If the group audience field does not show anything in the select
list, but for administrator it does, you need to go to you Group
content Manage Fields section and edit the group audience field,
by setting the checkbox as shown in the attached screenshot.
Hope it helps ;)

nordicmaterial’s picture

- Created new content type "Group". (enabled "Group" in OG settings)
- Went to content type Basic Page. Enabled "Group content" in OG settings.
- Created a new group called Privategroup.

My problem was:
- Created a new Basic page called Testpage 1. In the "edit" tab, under "Groups audience" there were no groups available, only -None-.
Many times clearing cache did not solve the problem.

Solution was:
- Go to content type Article. Enabled "Group" in OG settings. (I know, that's weird, the idea came from #5)
- Make a new Article, call it Testgroup. Click the 'Group' tab, add some people. Save. Clear caches.
- Now go back to that Basic page called Testpage 1. And now all groups are available under Groups Audience!

Beats me completely, but I hope this can help someone.

Module versions used:
File entity: 7.x-2.0-alpha3
Organic groups (og): 7.x-2.7

slimedidi’s picture

I do have same situation like #21 describe, but it does not work for me....
I found out if I change group audience field's widget to SELECT LIST or AUTO COMPLETE (no more using OG reference) will show out all groups, and looks like working well.
However, I'm not sure my way will effect OG functioning or not......

truyenle’s picture

#23 work for me. Thanks

nasodan’s picture

slimedid, I love you. #23 works for me too! Thanks

Bucklash’s picture

Hey folks
There are quite few solutions here for the same problem

#13 for me was what I tried first and it worked.

Nice

So confusing when watching a tutorial and your experience differs to the tut. Glad it seems to be sorted

Jon

Ivan Zhu’s picture

StatusFileSize
new30.71 KB

sometimes we need enable create content permission at least. or maybe should say must enable it.

And the follow is my situation:
I create a custom module for handling workflow staffs. using og to group users into different group. but I not use og permission system.

m.abdulqader’s picture