Hi there,

I think the problem comes from this patch/ Feature issue http://drupal.org/node/498354

I get the following error Message when clicking on the forum tab at the top.

warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /home/xxx/www/sites/all/modules/og_forum/og_forum.module on line 136.

The link that is created looks like this:

/en/node/276/forum

The link in the menu on the left side gives me this link to the forum overview page(which works):
en/webmasters-1

Any idea where this comes from?

Comments

dazweeja’s picture

Yes, you've found a small bug that triggers a warning under certain circumstances. You can fix it by changing line 136 to:

if (og_forum_is_public($tid) || (is_array($user->og_groups) && array_key_exists($arg, $user->og_groups)) || $user->uid == 1 || user_access('administer forums'))

This fix is included in the patch in #55 at #386566: OG Forum incompatible with Advanced Forum 6.x.2. Sun seems to have put a lot of work into this patch and cleaned up the module a lot so it would be great if you could test it out (seeing that it solves your problem too).

Anonymous’s picture

Assigned: Unassigned »
Status: Active » Closed (fixed)

Please reopen if you still need assistance here.

Best, Paul