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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

Can't login, even with default admin set


Go to End


2 Posts   2326 Views

Avatar
sheadawson

Community Member, 49 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, 49 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 :)