My site was moved and I'm now unable to log in. Is there a mysql querie that can clear up which logins are existing? The site works as made but the log in page no longer allows me to login as I did before. I'd like to figure out what is in the database for admin ID's and if the passwords are still there. Thanks!
You can add the following line to your _config.php file:
Then you can log in with admin//yourpass. That should allow you to check the accounts and re-set passwords. After doing so, you should remove the line from _config.php though.
Thanks for that. I did the change and still no ability to log in. Not sure what to do now. I can't change anything on the site. Help!
It should work...
Did you add the line to mysite/_config.php ?
Yes, that's the file I added the line to. I ftp'd, copied the file to the hard-drive, added the line and uploaded the file over-writing the original file. Does it matter where the line is located in the file?
No, I don't think it would matter where you put that in your file. Just put it at the end to be sure :)
And after doing so, you're not able to log in with the username and password you set in the setDefaultAdmin function?
Update: Oh yeah, and make sure you have cookies enabled for your site. Also check the Firebug console if there are any errors.
By the way, I solved my issue by appending
I went back to this site and re-installed. I still can't log in to the cms. in dev mode I get this error: "[Warning] Unknown: open(/var/lib/php/session/sess_kn54gimdp6tfjnq8pqvd2vgnv0, O_RDWR) failed: Permission denied (13)
Line 0 in Unknown"