HOF not working with 4.7.2?
Boinng - June 27, 2006 - 07:55
| Project: | Hall of Fame |
| Version: | 4.7.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | syscrusher |
| Status: | active |
Jump to:
Description
I've tried every available version of HOF in my 4.7.2 based site, and all I'm getting is a blank page headed
"Hall of Fame
Statistics for Planet Boinng as of Tue, 27/06/2006 - 08:51
All Statistics"
See here - http://www.boinng.com/hof
Is there anything I may have done wrong, or is hof just not compatible with 4.7.2?

#1
I was able to replicate this problem on my test site. It seems that the issue is with the administration screen, q=admin/settings/hof, which shows all the sections as enabled before the first time they are actually written to the system configuration.
This is a bug, and I'll see that it gets fixed. I think this behavior predates 4.7.2, and if I recall it's actually in the documentation as a known anomaly -- but it needs to be fixed, I agree.
In the meantime, there is an easy workaround. Go to Admin...Settings...HOF and click on the button to save the settings, even if you don't make any changes. Then your HOF should work correctly.
Please try this, and let me know if it fixes the problem for you.
Syscrusher
#2
Well doing that resulted in table of contents link appearing on the page, but nothing else (with the default set to "All Statistics").
What I've found since tho is that if I change that default to any other statistic type, that type appears - for instance, it's currently set to "Active Contributors" - http://www.boinng.com/hof
Unfortunately tho, the "All statistics" page is still showing nothing at all, and as soon as you get into the table of contents, you're presented with a contents list consisting of "All statistics" only, which isn't working :(
#3
Yeah, I'm digging into the problem further, and have found an error in the way permissions are happening. I'm working on a new release. In the meantime, check your Access Control settings to ensure that the desired user roles have access to the HOF module.
There appears to have been a slight change to the behavior of the array_search() function that is causing my permissions admin feature not to work right.
Probably there will be a new release of the module tonight. Sorry for the bug, and thanks for reporting it.
Syscrusher
#4
No problem, thanks for caring! It looks like a really good module, I look forward to using it for real.
#5
AHA! Breakthrough! You're right, it's the permissions, although the bug is perhaps not as bad as it might seem - as it's now working fine on my site!
When I first installed the module and activated it, I went to the access control page as usual and found one entry for hof - simply called "access hof" - which I enabled for all user groups. I never thought anything more about it till you mentioned it above - but when I went back to check the settings in access control now, I found an individual entry for each of the hof types - eg, access hof content published by type, etc. Enabling all of them brought all the hof pages to life.
I guess this is related to the problem you identified earlier with the default settings not being set - those extra permission settings don't seem to have appeared until I saved those settings. Once they were tho, it all worked fine - so I guess it's as much a usability problem as anything else.
#6
Works well for me on 4.7.2,
except for this issue here.