Closed (fixed)
Project:
OG Forum
Version:
6.x-2.0-rc4
Component:
Code
Priority:
Normal
Category:
Bug report
Reporter:
Created:
17 Aug 2009 at 19:50 UTC
Updated:
8 Sep 2009 at 11:50 UTC
Jump to comment: Most recent, Most recent file
When menu_breadcrumb is enabled and you navigate to a OG Forum as a member of that group, instead of being able to see the topics you get an Access Denied page and the following warning:
warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in C:\xampp\htdocs\drupalogforum\sites\all\modules\og_forum\og_forum.module on line 1706.
If you view the Forum as user 1, you can see the forum but receive the same warning.
This occurs with both og_forum version 6.x-2.0-rc3 as well as the latest patch from http://drupal.org/node/386566 (#55).
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | og_forum_breadcrumb.patch | 1.17 KB | dazweeja |
| #5 | og_forum_breadcrumb.patch | 1.16 KB | coastwise |
| #4 | og_forum.txt | 57.71 KB | dazweeja |
Comments
Comment #1
coastwise commentedNote: when using the patch described above, the line number is 1361.
Comment #2
coastwise commentedHere is a backtrace of the warning:
Comment #3
coastwise commentedAs a quick fix, you can go into the system table and change the weight for menu_breadcrumb to 1 so that it is processed after the og ones, but I'm not sure how well that will do as a long term solution... thoughts?
Comment #4
dazweeja commentedDefinitely a bug. Attached is a patched og_forum.module 6.x-2.0-rc4 (change file extension) which should fix this issue. I'll upload just the patch tomorrow.
Comment #5
coastwise commentedThanks dazweeja, it works like a charm! I went ahead and created the patch for you, might save ya a few minutes. Its the least I could do.
The attached patch is not my own work, all thanks go to dazweeja!
Comment #6
dazweeja commentedThanks coastwise. Since the bug was in code that I contributed a few weeks ago, it's the least I could do ;)
Comment #7
monotaga commentedsubscribing
Comment #8
Anonymous (not verified) commentedI'll get that committed today, thanks.
Comment #9
dazweeja commented@ Paul, I think there's a problem with the rolling of the patch, ie. it unpatches the working module so to speak. Re-rolled patch (against 6.x-2.x-dev) attached.
Comment #10
dazweeja commentedComment #11
Anonymous (not verified) commentedCommited to the development branch.