Alicia Posted July 5, 2013 Posted July 5, 2013 Hey there! Yesterday I installed PW on my server and imported the DB from my local installation. Everything was going fine until today, when suddenly the admin password wouldn't work. On the login page I get the error "login failed," even though the password is absolutely correct. I uninstalled PW and tried a fresh install, and the first time after my login expired, I got the same error message, even though, again, the password is correct. Could this be some sort of server set up issue? I tried the "forgot password" module and haven't gotten an email. I also tried the code snippet I found in another thread to reset the password, and that didn't work either. Any insight would be much appreciated! Thanks!
Soma Posted July 5, 2013 Posted July 5, 2013 Make sure the authsalt key is the same in config.php. And maybe delete cache and sessions in session folder.
Alicia Posted July 6, 2013 Author Posted July 6, 2013 Still not working, unfortunately. EDIT: I'm definitely a novice when it comes to setting up servers, file permissions, and importing databases, so it's very likely I made a really simple mistake somewhere.
Macrura Posted July 6, 2013 Posted July 6, 2013 @Alicia, have you considered just moving the whole site to the server (not installing PW)? That's how i always do it and never have a problem... 3 easy steps: 1.) upload the site files 2.) create the database (cPanel makes this easy) & import your sql file 3.) enter the new database connection settings in the site/config.php 1
Wanze Posted July 6, 2013 Posted July 6, 2013 What PHP version is installed on your local machine and server?
horst Posted July 6, 2013 Posted July 6, 2013 I have the same behave when uploading from local with PHP 5.3.12 to online shared host with PHP 5.2.12 But I use the 'forgot your password?' link once and then everything works fine. I can use the Password recovery with the account name or the email-address. PHP 5.3.12 -> 5.2.12 MySQL 5.5.13 -> 5.1.66 1
teppo Posted July 6, 2013 Posted July 6, 2013 One useful thing to do when having issues like this (if you haven't already done it) is to check your site log files (/site/assets/logs/errors.txt) and - if the site isn't public yet - try turning debug mode on. This could reveal something about the issue. What @horst is referring to sounds like it could be related to blowfish support.. but that should throw an exception which in turn should be difficult to miss. Anyway, that could also be related to the issue here. PHP version info would be helpful to make sure if that's really the case. And ultimately, as @horst already pointed out above, password recovery is your friend here
ryan Posted July 6, 2013 Posted July 6, 2013 Alicia, what PHP version are you using locally and on the server? There can be password issues when going between PHP 5.3 and 5.2 since PHP supports stronger password options than 5.2. Does the pass stop working just during migration from server to server, or is it happening randomly?
Alicia Posted July 6, 2013 Author Posted July 6, 2013 Thank you for the help, everyone! My local machine is running version 5.4.10 and the server is running version 5.2.14. There's nothing in the logs folder. I'll turn on debug mode and see if that helps. Otherwise, I'll try @Macrura's suggestion.
kongondo Posted July 6, 2013 Posted July 6, 2013 (edited) There's nothing in the logs folder. Hi Alicia, What do you mean by this?...that there is no errors.txt file or that it is present but not reporting anything? Even with @Macrura's suggestion, if the problem is the differences in PHP versions, that still won't solve your problem I suspect. Let's hope am wrong . Are you able to change your server's PHP version to 5.4? Edited July 6, 2013 by kongondo
Alicia Posted July 6, 2013 Author Posted July 6, 2013 That folder has what looks like four session logs.
kongondo Posted July 6, 2013 Posted July 6, 2013 (edited) OK, for starters, create the errors.txt and let's see if it will be written to...(make sure it's writable) Edited July 6, 2013 by kongondo
apeisa Posted July 6, 2013 Posted July 6, 2013 If I remember correctly passwords created with PHP 5.4 are not working with 5.2 (different cryptography used). So you need to reset your admin password.
Alicia Posted July 6, 2013 Author Posted July 6, 2013 Thanks for the help, everyone! I re-uploaded the site without using a fresh install from @Macrura's directions, then used the admin password reset snippet from here and it worked. 1
kongondo Posted July 6, 2013 Posted July 6, 2013 If I remember correctly passwords created with PHP 5.4 are not working with 5.2 (different cryptography used). So you need to reset your admin password. Yes...Horst mentions this above I have the same behave when uploading from local with PHP 5.3.12 to online shared host with PHP 5.2.12 But I use the 'forgot your password?' link once and then everything works fine. I can use the Password recovery with the account name or the email-address. PHP 5.3.12 -> 5.2.12 MySQL 5.5.13 -> 5.1.66
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now