Access denied to Persistent Login functions
ggamba - May 4, 2008 - 12:35
| Project: | Persistent Login |
| Version: | 6.x-1.4-beta2 |
| Component: | User interface |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
Hi all,
I have installed Persistent Login 6.x-1.4-beta2 on a Drupal 6.2 system. Module is enabled and the link "Remember me" correctly appears under the Login fields. But once logged in, the page /persistent_login/erase/1 gives me an "Access denied" error. Also, there is no "Persisten Login" link under /admin.
Any hints about what could be wrong?
Thanks a lot in advance and all the best
Gabriele

#1
hi,
I have the same problem, nothing at admin/settings/persistent_login
I get an access denied
Thanks.
#2
I can report this error, too - same installation as mentioned above. The link /persistent_login/erase/(someNumber) results in an "Access denied" -page.
#3
There is a bug in menu hook.
'access' => user_access('administer Persistent Login') should be changed to 'access arguments' => array('administer Persistent Login').
I post a patch file. I hope it can help fix this bug.
#4
Pacth works. Include it in next release, please.
#5
After patch, I still don't see a link to administer persistent login under admin/settings
A.
#6
I applied the patch and it came up with blank screen...
I applied the patch but didn't work
#7
OK. I fixed the blank screen issue but I still don't see the settings page on the admin menus...
UPDATE: this is fixed. you have to start and stop the module...
Thanks!
#8
There are still some changes which I made.You can test this patch I hope this will definitely solves your problem.
#9
Just marked another issue as dup of this one.
http://drupal.org/node/285706
#10
Here's another patch that is working for me with Drupal 6.4.
In addition to fix the access denied issue, it also removes t() usage in menu item title/descriptions, redirects to user/x after reseting persistent logins and generates an access denied event if this function is requested by someone who is not authorized (anonymous users are not authorized, user cannot reset someone else's data unless user has admin permission).
#11
Is there a reason you are removing the t()?
I'm going to be testing out the patch on my system but I chose to leave the t() in.
#12
This is Drupal 6.x based, so menu item titles and Descriptions should no longer be wrapped in t().
http://drupal.org/node/140311
#13
Patch on #8 worked for me (using D6.5)
#14
Fixed.
#15
Automatically closed -- issue fixed for two weeks with no activity.