Closed (works as designed)
Project:
OG Panels
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Sep 2009 at 17:19 UTC
Updated:
8 Apr 2010 at 22:58 UTC
Twice now, OG panels "use panel as homepage" has disappeared and stopped working on my site. Instead of using panel the group admins have created, it just falls back on the standard. The settings are all still there. You can navigate to the panel using the panel's url. It's just stops overriding the default view.
The fix is super easy: I just (1) go to admin/build/modules uncheck the "OG Panels" module; (2) hit save; (3) check the "OG Panels" module (4) hit save. Then, all is good, for a few days.
Can you help me get this to stick? Is this a bug or a conflict with another module I've installed?
Thanks!
Comments
Comment #1
AliraSirin commentedFaced this bug too. In my case there was a conflict with Trash module (overriding menu node view callback). So I uninstalled this old unstable Trash module and developed my version of it (Trashbin/Killfiled didn't suit my needs).
Hope this helps.
Comment #2
keith_k commentedI have never heard of (or used) the Trash module. That's probably not the problem.
Comment #3
tallsimon commentedi have the same issue. i recently disabled the menu breadcrumb module, don't think this is related though.
EDIT
the same fix works for me too
Comment #4
joshk commentedThanks for the report. I am going to be doing a final pass on the menu logic (there are a few other issues). If you figure out how to reliably reproduce this, let me know.
Comment #5
matcha213 commentedI have the same problem. It looks like it just dies over time. Any word on this issue?
Comment #6
ajayg commented@joshk,
any updates on this further? If you can atleast submit the work done so far, others can help you finish remaining.
Comment #7
jimthunderbird commentedHere is a way to solve the problem through the implementation of hook_init, just need to implement a better access control system.
Comment #8
geomarketing commentedI have all the OG related modules activated but have never seen a "use panel as homepage" in the OG Panel or Group home page view configuration or the content type configuration but this is what I am trying to do and have been searching around for. If someone could tell me where this property is (or should be) I would be very grateful!
Comment #9
AntiNSA commentedI need to maybe use og but am worried about any problems
Comment #10
ajayg commentedPlease don't change the title of issue as it is very confusing. You can always write as your comments.
No one has commented here yet they have reviews/tested/it is working-not working. So unless that happens it won't be commited.
Comment #11
Stanto commentedThe fix by jimthunderbird on #7 seems to work perfectly so far.
Should be commited.
Thanks for that!
Edit : works when a homepage is set. Else it doesn't display the default homepage, and shows an error.
Comment #12
Stanto commentedI made a modification on #7 to avoid this error, and use the default homepage when nothing is set.
Comment #13
AntiNSA commentedYesterday the problem happened with me too.. Im not asure exactly why. but my group pages panels stopped workingl while the user profile panel was uneffected. I had to disable, unisntall and reinstall the panel. After doing that the sonctent remained the same and the issue was gone. I hope ot doesnt happen again, it really freaked me out.
Comment #14
populist commentedI am going to commit this as a temporary fix, but there is a larger problem here that deserves investigation. Leaving open until it can be replicated + resolved.
Comment #15
populist commentedThe issue here is that certain modules (including trash) are overriding the menu callback for node/%node using a hook_menu_alter. This prevents Panels from doing its thing because it no longer owns the node view.
hook_init() is a workaround, but the solution here is for page manager to be increasingly vigilant about imposters to the node_view throne.
Comment #16
dadderley commentedJust upgraded to the newest from 2010-Mar-30 .
My home panel croaked right away. Interestingly enough, i displays beautifully when I preview it.
Comment #17
gmak commentedI am seeing the same thing as dougzilla. It has never worked for me. It always defaults to the og_ron view that is normally setup for groups.
Comment #18
dadderley commentedActually, it seemed to work quite well in the 2.x-dev version from September.
I reverted to that version after not having success with this one.
Comment #19
jkandiko commentedTried the patch from the comments. Works at getting the panel to show on the home page, but then screws up the rest of the menus for out site.
Comment #20
jimthunderbird commentedHere is another possible solution, thought not perfect, but works better than hook_init, one thing need to solve is the current tab will be set to the actual page that's set to homepage.
1. add function function og_panels_init, implementing hook_init
2. change the function _og_panels_node_access to the following
Essentially what this solution does is to reroute the $_GET['q'] page signal to the safer url: node/".$group_node->nid."/og-panel/1, in order to do this we need to grant access to tab 1, thus we need to modify _og_panels_node_access.
Comment #21
jimthunderbird commentedMore work needs to be done to get the tab working.
Comment #22
TonyV commentedWhere exactly to I place this code (in #12)? What file? Thanks for any help as the fix listed at the top of the thread is not working for me.
Comment #23
jimthunderbird commentedFor #12, you can put it at the beginning of og_panels.module, it is an implementation of hook_init, but this is a temp fix, i think the homepage generally works, you might consider also upgrade the panels and ctools module to the latest version, it might help to solve the problem as well.
Best Regards,
Jim
Comment #24
TonyV commentedThis worked for me. Thanks for all the help.
Comment #25
tallsimon commentedI have not had this problem again thank you