Download & Extend

Does not recognize OG enabled CCK nodes

Project:OG promote
Version:4.7.x-1.x-dev
Component:Code
Category:feature request
Priority:critical
Assigned:Unassigned
Status:closed (duplicate)

Issue Summary

Any OG groups created as other node types (e.g. using CCK) are not recognized by og promote even though they function exactly as an OG.

Comments

#1

I can repro this. Anyone got a patch for it?

#2

I have reproduced this issue: using organic_promote with Drupal 4.7.5, CCK, and MySQL 4.0. The organic promote settings page displays the text "No groups: You need to create some groups."

Also, when editing and submiting a CCK node that has been designated as a "home page" for organic groups, I get the following message after installing OG promote:

warning: in_array(): Wrong datatype for second argument in /mypath/public_html/modules/og_promote/og_promote.module on line 25.

I hope this helps someone fix this problem!

#3

I also noticed that the page I am looking at displays the "choose a role" option, along with the available roles. I am wondering if this has something to do with how CCK fields are referenced, including the title in CCK with its flexible label? I don't know.

#4

Here we go! This isn't a fix for everyone, but this will get someone on the right track to fixing the module. My CCK content type is not identified as "Og" in the node table. Rather, it is labeled with a content type specific to the custom node type I created through CCK: "content_student_group_page." If I replace line 85, n.type = 'og', with n.type = 'content_student_group_page,' I appear to be in business! Somehow the query around line 85 needs to be edited to find CCK types. I hope that helps.

#5

Status:active» closed (duplicate)

Duplicate of issue 109018.