When I try to configure a block and click the Group visibility settings I get the message "No group types have been defined. Please define at least one group node type under administer >> settings >> og". That link doesn't work. But I have group node types defined already.

CommentFileSizeAuthor
#4 og-get-types.patch800 bytesjohnalbin

Comments

ambereyes’s picture

Title: Assign Content Type » Checking Wrong Content Type Variable
Priority: Normal » Critical

I had the same problem, apparently the latest version of og no longer uses the variable this module is searching for, i. e. "og_node_types".

So this module needs some serious updating to match the current version of og.

Anonymous’s picture

Version: 5.x-1.1 » 5.x-1.x-dev
Assigned: Unassigned »
rbisso’s picture

Getting the same problem. Thanks for your help, Paul!

johnalbin’s picture

Title: Checking Wrong Content Type Variable » variable og_node_types is incompatible with latest OG
Assigned: » Unassigned
Status: Active » Needs review
StatusFileSize
new800 bytes

The latest OG uses og_get_types('group') to get a list of node types that are groups. This patch checks for the existence of this function before using it, and if it doesn't find it, it uses the old variable_get('og_node_types', array('og')) method. So the og_block_visibility.module will remain compatible with older versions of OG as well.

This patch plus the one in #298532: .info file broken and DRUPAL-5 contains module_exist(), a 4.7 function were required to get this module working with the latest OG.

Anonymous’s picture

Assigned: Unassigned »
Status: Needs review » Fixed

Thanks for this patch

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.