Hi,
installed the latest 4.7 version of og_galleries and noticed that it seems to be interfering with the Group Details block while I'm on the group page. When I'm on a node within the group the details block seems to be just fine.
I've attached an image showing what the messed up block looks like. On the left is the block that appears on the Group home page, on the right is the block that appears when on a node within the group. Disabling og_galleries makes the behavior disappear.
Note that in the left (incorrect) block that:
•The title of the group has been cut off
•There is an invite friend line
•It lists 2 subscribers instead of the correct 4
•The manager is Anonymous instead of the user SiteAdmin
The incorrect subscribers link and my subscription link also lead to inaccurate locations, to /drupal/og/users/ and /drupal/og/manage/ respectively... in other words, the links are missing the node number.
For og I'm using the latest (20 Dec 2006) copy of 4.7.x-1.x-dev
thanks,
Patrick
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | og_galleries.module | 42.94 KB | karens |
| og_galleries_block_bug.jpg | 20.88 KB | pcdonohue |
Comments
Comment #1
karens commentedI have an idea what the problem is (or at least part of the problem). Try substituting this file for the one in the current release.
Comment #2
pcdonohue commentedNo luck,
I used the file you attached, but it's still showing the same behavior.
If there's something I could look for that might help you figure this out, just let me know.
thanks,
Patrick
Comment #3
karens commentedcan you give me a general idea how you have things set up so I can try to replicate your situation? I think that's the only way I will be able to figure it out.
Comment #4
pcdonohue commentedHi Karen,
I dug into your code and played around a little bit. I noticed that I could make the bad behavior go away by commenting out the call to
og_set_group_context($gid)in the for loop in og_galleries_menu.I wasn't sure what the reason for that call was, so I created a variable to store the previous group_context and restored it at the end of the
if (arg(0) == 'node' && is_numeric(arg(1)) && arg(1) == $gid)block.That seems to fix the behavior. I don't know enough about the code to say why though...
Patrick
Comment #5
karens commentedThat makes sense. I probably shouldn't have been messing with that value. I'll just have to create my own variable to track this and leave OG's alone. I'll try to get this fix committed soon (hopefully tomorrow.)
Thanks for the help! It would have taken me a while to realize that was the issue.
Comment #6
karens commentedHopefully the latest commit will fix the problem. Reopen if not.
Comment #7
(not verified) commented