Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Can't login, even with default admin set


Reply


2 Posts   1579 Views

Avatar
SheaDawson

Community Member, 46 Posts

9 August 2011 at 6:20pm

I am currently in the process of deploying a SilveStripe site on a production server. Everything is running fine except I can't login at /Security/login.

The database was imported from my local development site. I have checked the members table in the database, there are 2 records there. I have also set the default admin in mysite/_config.php using

Security::setDefaultAdmin('admin','password');

But every time I try to login I just get redirected back to the login page with no message.

I even the reset password process, got sent the reset link but that just redirects me back to /Security/login?BackURL=%2FSecurity%2Fchangepassword, requesting I log in again...

Could it be something to do with the server? The client has their own hosting with NetFirms (which I have not used before)... Anyone have any trouble shooting suggestions?

Thanks :)

Avatar
SheaDawson

Community Member, 46 Posts

9 August 2011 at 9:15pm

After over 3 painful hours trying to work this out I finally got it. Tried doing a fresh install of SilverStripe on the server and was recommended by the installer to adjust the following.

magic_quotes_gpc = off
asp_tags = off

Yay :)