21493 Posts in 5784 Topics by 2622 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 676 Views |
-
Login screen doesn't show fields

1 December 2009 at 1:30am
I have a curious problem which I can't always reproduce but which is a minor nuisance when it does occur, and I was wondering whether anyone has any ideas what the cause might be. When I go to log in to the back end of my SilverStripe site, I get the message saying "Enter your email address and password to access the CMS", but no form fields are showing. If I simply click the browser's refresh button, the fields show up and I can log in. This would suggest some kind of cache problem to me but I don't know how to resolve it. Any suggestions would be welcome, thanks!
-
Re: Login screen doesn't show fields

2 December 2009 at 12:10am
That would deal with the symptoms, not the cause (and is effectively no better than a refresh). There is some problem within my Silverstripe setup which is causing this to happen repeatedly (with different browsers on different machines as well). That's what I want to sort out.
-
Re: Login screen doesn't show fields

2 December 2009 at 12:14am
I a browser caches data, there is nothing SS can do about it.
-
Re: Login screen doesn't show fields

2 December 2009 at 2:42am
There IS, of course, something SS can do about it - there's a whole range of cache control headers which a web server can issue to help manage browser cacheing. But I don't think it's anything to do with the browser cache as such - I'm pretty sure that first time, SS is serving the page without the form fields and then on a subsequent request is serving the required fields. I'll check this out next time it occurs.
-
Re: Login screen doesn't show fields

2 December 2009 at 3:09am
I had this behavior too with older versions of SilverStripe (where OpenID authentication was installed). I think it's more of a JavaScript issue with scripts behaving differently when loaded or when cached.. probably because of order of execution.
What Version of SilverStripe are you using? I suggest you override the Login template with a custom one (mysite/templates/Security_login.ss) and check if that helps. -
Re: Login screen doesn't show fields

2 December 2009 at 4:08am
I was using 2.3.3, but I just upgraded to 2.3.4 and the problem is still there (although if anything slightly worse - the fields don't look right when they do display, but that might be a factor of my upgrade procedure). I'll try out your override suggestion, thanks.
| 676 Views | ||
|
Page:
1
|
Go to Top |



