Settings page is blank
christefanø - August 9, 2007 - 07:28
| Project: | Fasttoggle |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
The only things displayed on my Fasttoggle settings page are the Save and Reset buttons, and the "Configure what fast toggling options are available" text. Clicking Save seems to disable Fasttoggle links and resetting to defaults restores them.
Probably a module conflict. I'll post again if I find out what's going on.

#1
If you log in as user 1 you can see the settings page propperly. It would seem that the 'administer fasttoggle' option was left out of the implementation of hook_perm()
to fix,
change line 77 from:
return array('promote posts', 'make posts sticky', 'moderate posts', 'moderate users', 'moderate comments');to:
return array('promote posts', 'make posts sticky', 'moderate posts', 'moderate users', 'moderate comments', 'administer fasttoggle');#2
If you log in as user 1 you can see the settings page properly. It would seem that the 'administer fasttoggle' option was left out of the implementation of hook_perm()
to fix,
change line 77 from:
return array('promote posts', 'make posts sticky', 'moderate posts', 'moderate users', 'moderate comments');to:
return array('promote posts', 'make posts sticky', 'moderate posts', 'moderate users', 'moderate comments', 'administer fasttoggle');#3
Thanks, squaretone. Works for me.
#4
Thanks a lot for figuring this out! I committed the patch.
#5