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 open the login screen


Reply


7 Posts   1925 Views

Avatar
BruceG

Community Member, 29 Posts

27 February 2009 at 10:29am

I've been building a site on localhost and have had some sort of error occur and now can't even get to the admin screen to login to the CMS.

See an image of the screen I get below

Any suggestions?

Attached Files
Avatar
Sam

Administrator, 685 Posts

27 February 2009 at 10:38am

1) Put your site into dev mode so you can see the error: http://doc.silverstripe.com/doku.php?id=debugging#dev_mode

2) Try visiting dev/build; your error might be due to a stale database.

Avatar
BruceG

Community Member, 29 Posts

27 February 2009 at 10:47am

When I view the _config.php file I see the following

Director::set_dev_servers(array(
   'localhost',
   '127.0.0.1',
));

which I think means it's in dev mode by default??

I've been to dev/build?flush=1 and get the same result

Avatar
Sam

Administrator, 685 Posts

27 February 2009 at 10:54am

You might need to add 'localhost:3000' as an entry.

Avatar
BruceG

Community Member, 29 Posts

27 February 2009 at 11:02am

The address I've been using is as follows.

http://localhost:3000/SilverStripe-v2.3.0/dev/build?flush=1

It takes me directly to the place as shown in the screenshot in the first post

Avatar
Sam

Administrator, 685 Posts

27 February 2009 at 11:07am

No, I mean, update set_dev_servers as follows:

Director::set_dev_servers(array(
'localhost:3000',
'localhost',
'127.0.0.1',
));

Avatar
BruceG

Community Member, 29 Posts

27 February 2009 at 11:16am

Forgive my ignorance Sam

Did that and bingo

Everything has now magically appeared

Thanks - was beginning to think a complete do over was next.