Does not recognize OG enabled CCK nodes

rubenk - September 26, 2006 - 01:12
Project:OG promote
Version:4.7.x-1.x-dev
Component:Code
Category:feature request
Priority:critical
Assigned:Unassigned
Status:duplicate
Description

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.

#1

UnderDesign - October 15, 2006 - 22:34

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

#2

bomarmonk - January 12, 2007 - 02:11

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

bomarmonk - January 12, 2007 - 02:24

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

bomarmonk - January 12, 2007 - 02:32

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

Darren Oh - February 19, 2007 - 01:12
Status:active» duplicate

Duplicate of issue 109018.

 
 

Drupal is a registered trademark of Dries Buytaert.