This error arises after correcting the previous fixed bug: 'Group actions block perpetually shows 'awaiting approval' where I first reported this error. (found here: http://drupal.org/node/50664 )
The error is:
Fatal error: Call to undefined function: og_create_links() in /home/www/drupal/modules/contributions/modules/gojoingo/modules/gjg/group_block.module on line 99

I have 'apparently' fixed this but without better commenting of the code it is a bit difficult for me to work out what is happening/or should be happening (as a newcomer).

My 'fix' is to change the function name on the last line of this code to match the function name in og.module
Changed
FROM:
$links = og_create_links($node);
TO:
$links = og_og_create_links($node);

This is the relevant section in group_block.module

        if ($row->is_active) {
          $subscription = 'active';
        }
        else {
          $subscription = 'requested';
        }
      }
    }
    $links = array();
    if ($subscription == 'active') {
      $links = og_og_create_links($node);

Comments

webchick’s picture

Oops. See http://drupal.org/node/50664#comment-75899 for the reasoning behind why this was changed.

webchick’s picture

Status: Active » Fixed

Btw, this should be fixed in the newest version of group_block.module.

netlynx’s picture

Status: Fixed » Active

Perhaps not.. This appears to be same call that is used for the group details block. i.e. The group actions and group details blocks now have the same links - so as I've no idea what the code flow is like I've disabled the group actions block for now.

Any thoughts?

netlynx’s picture

aha - so I was correct. So now I am just wondering why we have two blocks that seem to do the same thing?!