Closed (fixed)
Project:
OG Forum
Version:
6.x-2.0-rc3
Component:
Code
Priority:
Normal
Category:
Bug report
Reporter:
Created:
4 Aug 2009 at 09:48 UTC
Updated:
30 Sep 2009 at 16:48 UTC
Jump to comment: Most recent
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
Comment #1
dazweeja commentedYes, 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).
Comment #2
Anonymous (not verified) commentedPlease reopen if you still need assistance here.
Best, Paul