This module is no longer working with og as of 7.3 (or possibly earlier) and drupal 5.7. It gives the white screen of death after submitting a group node for creation. Not sure why, I'm not a developer.

Comments

mackh’s picture

Hi

Looks like its because og_get_visibility_default is no longer in OG. I'm investigating a fix

PHP Fatal error: Call to undefined function og_get_visibility_default() in /var/www/dev/sites/all/modules/bookexpand/bookexpand.module on line 253

mackh’s picture

Assigned: Unassigned » mackh
jabberotic’s picture

hi,i´m no developer either but i simply searched for possible substitutions for 'og_get_visibility_default' in the og.module file and replaced it with 'og_get_group_context' :P seems to work so far,parent access permissions for the books are working,no error msg when creating new groups.don´t know what 'og_get_group_context' actually does;maybe someone wanna look over it again...
using drupal 5.7 and og 7.3 too
so long

dwees’s picture

Unfortunately these two functions don't do the same thing. 'og_get_visibility_default' was an attempt to have the book page that was created have the same visibility as its parent group. 'og_get_group_context' returns the nid of the node for which this particular page has context.

You won't see any error messages because the data types are compatible (both numeric) but it's not going to work exactly as expected.

My thought is that what I should use instead is $group_node->visibility instead, but I need to check this. I plan on fixing this within the next 2 weeks, if I have time, and adding some simple enhancements that have been suggested.

dwees’s picture

Status: Active » Fixed

This should be fixed in the newest version in cvs.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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