I've seen a lot of posts related to this, but none of them have helped solve the problem.
A few hours ago our login system stopped working. Nothing was changed in the system between the last login and the first time it was broken. Basically I keep getting username/password wrong when I know the password is correct (I'm trying immediately after resetting it). Actually there's no message on the screen, just the username box gets a red border, so I guess it thinks the username is incorrect, which we know to not be the case.
I've made sure base_url is set, and cookie_domain and now I'm at a complete loss. Any help? Oh, and after this started happening I upgraded all modules and core to 7.2, didn't help.
Comments
i would watch in firebug if
i would watch in firebug if the session cookie in between the login page load and posting the login information, if it changes, if it expires (maybe wrong timestamp, redirection to another domain)
i guess cookies are enabled and all that..
disk space on the server is ok?
you can try to backup the site and then start to break it down by removing modules, a few at a time, checking login again, until you find the culprit
and if you cant login at all, try this trick by editing index.php (drupal 6 right?) to something like this:
then hit index.php?magic=8NSbEGE6ude9HdJb
the magic part is to assure no one else logins this way when viewing the site :-) use your own magic!
I can login by doing the
I can login by doing the password reset, but when I try to login from the login block it seems to tell me my username is incorrect. (Drupal 7 btw)
I've disabled a number of modules so far and no luck.
is your hosting fulfilling
is your hosting fulfilling the minimum requirements for drupal 7? http://drupal.org/requirements
check the recent log messages for any errors admin/reports/dblog or the error.log of the webserver too
might help >
might help > http://www.google.com/search?q=drupal+7+cant+login
Yeah the server meets the
Yeah the server meets the requirements (Rackspace dedicated and it was working fine until a couple hours ago.) I've checked the server time, it matches my local machine. We're getting this issue in Chrome, Safari and Firefox.
theres a lot of check points
theres a lot of check points to debug this, would be easier to hire someone, i can think of these:
- see if its server related or user related, i.e. ask someone else to login/reset password from another computer, possibly even another internet provider
- if its server related, i would first check the logs to see if anything related on a failed login, both the drupal log and the php error log, and check if the php error log is setup correctly. check the drupal status screen if its all green
- when resetting the pass, you login automatically via the link but you need to input the new password too, check if it actually changes in mysql user table
- check php security extensions, suphp? disable it maybe
- recheck php and mysql version requirements
- and if all else fails, trace the login process in code, put lots of var_dumps('xxx'), see what gets printed and if the execution path is correct.. and where it returns "false"/access denied
oh and its almost never out of nowhere.. something changed on the server/drupal and youre not aware of it, code is not selfaware and capable of deciding when it should/not work
Yeah, I'm at the point of
Yeah, I'm at the point of resorting to tracing the process through code, though I'm having trouble finding the code hah. version requirements are good, nothing new in the logs (just the same warnings i've always had in the backend because of regions being missing from my template, but as i said, that's not new).
we've used several computers to try login, but all same ISP, so I'll have someone outside try.
It is changing the password on reset. I've also created new users and they can't login either.
I should be able to find something if I can find the code for the login block. No need to hire anone, I've been a dev for 15 years, php for nearly 10. Just real strange that this would start happening now, when no one (that i now of) was in the code, or in the server or cms config. Unless one of our offsite guys is screwing with us ;)
Thank You
I had some sort of issue where the login would not work despite the correct username/password/and password hash.
This did the trick to get me into the admin at least to have a shot at tracking down the issue!