Jump to content
Mike Rockett

Unable to login to backend

Recommended Posts

Got home to some strange behaviour on one of my development sites - not able to login.

I have seen this: processwire.com/talk/topic/4011-cannot-login-to-admin-area/

But nothing there works. If I try changing the password, still can't sign in.

Using SessionHandlerDatabase, and have cleared those caches too. Could that module be an issue in 2.5.25? I am running another few local sites on that version, but am not experiencing the same issue.

Nothing in any error logs anywhere. Login form doesn't show any errors either.

Wondering if the installation in question has gone all bonkers on me...

Update: I also have the Forgot Password module enabled. Interestingly, when I click on it, it just shows the normal login form... Isn't it supposed to just show email? The URL does include ?forgot=1...

Share this post


Link to post
Share on other sites

@Mike - have you tried disabling the UpgradeCheck module, if you have that installed?

I ran into an issue on Sunday night where i couldn't login to admin, and disabling that module let me back in;

i got a clue from this warning

[05-Apr-2015 22:36:22 America/New_York] PHP Warning:  json_decode() expects parameter 1 to be string, array given in /home/user/dev/site/modules/ProcessWireUpgrade/ProcessWireUpgradeCheck.module on line 57

Share this post


Link to post
Share on other sites

@Mike - have you tried disabling the UpgradeCheck module, if you have that installed?

I ran into an issue on Sunday night where i couldn't login to admin, and disabling that module let me back in;

i got a clue from this warning

[05-Apr-2015 22:36:22 America/New_York] PHP Warning:  json_decode() expects parameter 1 to be string, array given in /home/user/dev/site/modules/ProcessWireUpgrade/ProcessWireUpgradeCheck.module on line 57

That doesn't seem to do it either... Not getting any errors/warnings anyway...

Share this post


Link to post
Share on other sites

Okay, I've managed to login by creating a front end login form - this seems to have worked. Still, the backend login form doesn't want to work. I'm assuming this has something to do with CSRF...?

Share this post


Link to post
Share on other sites

I have a PW 2.5.23 with SessionDBHandler and ForgottPassword running without problems. Everytime getting the right forms and all works as expected.

Share this post


Link to post
Share on other sites

Ah, figured it out.

For some reason, I set the cache on the admin template instead of another template... No idea how I did that. Must have just clicked on the wrong template and not noticed which one I was editing.

  • Like 3

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By Tyssen
      I have a client who is reporting that in the last couple of days they can no longer login to their site with their normal browser (Chrome). Using another browser or an incognito window works.
      I've tried logging into the site using the same login details in my usual browser (Firefox) and have had no problems.
      The site is a membership site and today other members are reporting the same problem.
      The site is running 3.0.148 and has the session handler DB and login throttle modules installed. It was recently upgraded to 3.x from 2.x. But no changes have been made to the site between the time when they were able to login OK and when the problem started happening.
    • By codevark
      The Minimal Site works fine, but if I try to login as admin, I have no idea what the credentials are.
      I did not do the "install" process myself. The OVA came with everything set up, but there's no mention of the PW admin credentials being set to some initial value.
      Wondering if anyone else has tried the Bitnami OVA and if there's a simple answer.
      --Pete
    • By derelektrischemoench
      Hi guys,
      I'm facing a somewhat strange issue here which I can't quite wrap my head around. 
      I have a PW site in development which runs on three machines simultaneously, one staging server which is accessible as a preview instance for my customer, my PC and my laptop. 
      I have three completely identical settings on each of the three machines (same apache version, same php version, same codebase, same database); however on my PC I am unable to log into the backend. I get no error message or anything, when I try to login; i just get redirected to the login  page. I have already enabled database driven sessions (I enabled them on my laptop, then I dumped the database and copied it to my pc); I have cleared the cache directory; I cleared the sessions in the database; I cleared my browser caches, I tried different browsers, all to no avail; I am unable to login when using my pc, the instances all have the same .htaccess.
      Is there something I'm missing here or does anyone have a clue as to what my issue here might be? I'm using processwire 3.0.123
      Thanks for any input, greetings
      derelektrischemoench
       
      //edit: I've noticed something interesting; despite the directories of my web folders being the same layout; when I open the admin page i get a 404 on the processwire/ resource in the networks panel of chrome; on my laptop I get a  200.... I guess this is where my problem is; but why?
       
       
    • By derelektrischemoench
      Hi guys,
      I'm facing a somewhat strange issue here which I can't quite wrap my head around. 
      I have a PW site in development which runs on three machines simultaneously, one staging server which is accessible as a preview instance for my customer, my PC and my laptop. 
      I have three completely identical settings on each of the three machines (same apache version, same php version, same codebase, same database); however on my PC I am unable to log into the backend. I get no error message or anything, when I try to login; i just get redirected to the login  page. I have already enabled database driven sessions (I enabled them on my laptop, then I dumped the database and copied it to my pc); I have cleared the cache directory; I cleared the sessions in the database; I cleared my browser caches, I tried different browsers, all to no avail; I am unable to login when using my pc, the instances all have the same .htaccess.
      Is there something I'm missing here or does anyone have a clue as to what my issue here might be? I'm using processwire 3.0.123
      Thanks for any input, greetings
      derelektrischemoench
       
       
    • By Peter Knight
      How do you guys handle large session tables when sessions are being recorded to the database?
      I notice one of my sites has a session table of over 14MB 
      Am I missing a way in the Admin or a module to auto-remove any sessions older than X days?
      Thanks
       
×
×
  • Create New...