Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Styles not included when in /Security/lostpassword/

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 1799 Views
  • dio5
    Avatar
    Community Member
    501 Posts

    Styles not included when in /Security/lostpassword/ Link to this post

    When I go to /Security/lostpassword/ I don't see any of the styles included in the pagesource, but when I go to /Security/login/ they are there.

    Any ideas what might be causing this?

    I'm in SS 2.1.0 rc1

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: Styles not included when in /Security/lostpassword/ Link to this post

    Have the stylesheets not been included when going there?

    I do vaguely remember someone was changing something around with default styles, including stylesheets on Page.php, or something with the new release candidates.

    @Andy, any ideas?

    Sean

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: Styles not included when in /Security/lostpassword/ Link to this post

    dio5, I never noticed it but yes I have the same problem - http://willr.co.nz/Security/lostpassword . Styles sheets in 2.1 are now called via Requirements::themedCSS('stylesheet'). Maybe on Security/Lostpassword it doesn't load the Requirements just the CSS ones as the Javascript files are included. I'll go bug andy about this and see if this is fixed (Im using rc2) or is a new bug nobodys seemed to pick up!

  • dio5
    Avatar
    Community Member
    501 Posts

    Re: Styles not included when in /Security/lostpassword/ Link to this post

    Ok, thanks!

    Keep me informed

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: Styles not included when in /Security/lostpassword/ Link to this post

    Alright talking to andy last night he doesn't think this will be fixed for 2.1 and will probably make the next release instead, If you want to have a look into the code and debug the problem yourself that would be awesome! im sure this problem will be brought up again sooner or later.

  • dio5
    Avatar
    Community Member
    501 Posts

    Re: Styles not included when in /Security/lostpassword/ Link to this post

    Mm...

    I guess I'll probably do that or make my own password recovery thing.. it all depends on what will be finished first: my site or SS 2.2

  • dio5
    Avatar
    Community Member
    501 Posts

    Re: Styles not included when in /Security/lostpassword/ Link to this post

    It turns out the in the lostpassword method of Security.php something is forgotten:

    $controller->init();

    Adding this makes it work...

    1799 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.