Jump to:

23358 Posts in 17875 Topics by 2862 members

General Questions

SilverStripe Forums » General Questions » Can't open the login screen

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

Page: 1
Go to End
Author Topic: 1814 Views
  • BruceG
    Avatar
    Community Member
    29 Posts

    Can't open the login screen Link to this post

    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
  • Sam
    Avatar
    Administrator
    679 Posts

    Re: Can't open the login screen Link to this post

    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.

  • BruceG
    Avatar
    Community Member
    29 Posts

    Re: Can't open the login screen Link to this post

    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

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: Can't open the login screen Link to this post

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

  • BruceG
    Avatar
    Community Member
    29 Posts

    Re: Can't open the login screen Link to this post

    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

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: Can't open the login screen Link to this post

    No, I mean, update set_dev_servers as follows:

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

  • BruceG
    Avatar
    Community Member
    29 Posts

    Re: Can't open the login screen Link to this post

    Forgive my ignorance Sam

    Did that and bingo

    Everything has now magically appeared

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

    1814 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.