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

Comments

wwwoliondorcom’s picture

hi,

I have the same problem, nothing at admin/settings/persistent_login

I get an access denied

Thanks.

haffelt’s picture

I can report this error, too - same installation as mentioned above. The link /persistent_login/erase/(someNumber) results in an "Access denied" -page.

chly23’s picture

Status: Active » Needs review
StatusFileSize
new911 bytes

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.

fasdalf@fasdalf.ru’s picture

Pacth works. Include it in next release, please.

mr.andrey’s picture

After patch, I still don't see a link to administer persistent login under admin/settings

A.

pants’s picture

I applied the patch and it came up with blank screen...

I applied the patch but didn't work

pants’s picture

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!

rightchoice2c_me’s picture

StatusFileSize
new1.17 KB

There are still some changes which I made.You can test this patch I hope this will definitely solves your problem.

markus_petrux’s picture

Status: Needs review » Needs work

Just marked another issue as dup of this one.

http://drupal.org/node/285706

markus_petrux’s picture

Status: Needs work » Needs review
StatusFileSize
new1.34 KB

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).

halkeye’s picture

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.

markus_petrux’s picture

This is Drupal 6.x based, so menu item titles and Descriptions should no longer be wrapped in t().

http://drupal.org/node/140311

giorgosk’s picture

Patch on #8 worked for me (using D6.5)

bjaspan’s picture

Status: Needs review » Fixed

Fixed.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.