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

login form not visible


Go to End
Reply

9 Posts   1990 Views

Avatar
marcink

19 April 2009 at 10:45pm Community Member, 89 Posts

hi,

i've got an issue with the login form.
when i go to http://mysite/admin i only see this text: "Enter your email address and password to access the CMS." but no login form.
only by reloading the page i see the form.

this is only on my custom template, not with the black candy original template.

does anyone know the reason behind this?

thanks

Avatar
Ben Gribaudo

21 April 2009 at 12:56am Community Member, 181 Posts

Hi,

Does the patch attached to [url=http://open.silverstripe.com/ticket/3750]ticket 3750[/url] help?

Ben

Avatar
marcink

21 April 2009 at 1:17am Community Member, 89 Posts

hi,
no, unfortunately not.

i checked my Security.php, but it's already been patched.
it's by the way the newest release 2.3.1...

i really think that's something with my template, since the clean install with ss default template is working.

Avatar
Ben Gribaudo

21 April 2009 at 2:05am Community Member, 181 Posts

Hum...that patch isn't included in trunk yet so you would have needed to manually apply it to get it.

Avatar
marcink

21 April 2009 at 2:29am Community Member, 89 Posts

could it be, that the line numbers are different?

in the attachement you see the screenshot of how it looks like in my Security.php

Attached Files
Avatar
Ben Gribaudo

21 April 2009 at 5:39am Community Member, 181 Posts

Yes, the line numbers are different. :-) Replace your line 344 with the line in green on http://open.silverstripe.com/attachment/ticket/3750/Security-Form%20Code%20Should%20Not%20Go%20in%20Content%20Variable.patch.

Does that fix the issue?

Ben

Avatar
Ben Gribaudo

21 April 2009 at 5:46am Community Member, 181 Posts

Also, you'll want to have both the $Content and $Form variables in your template code. After looking at your post again, it sounds like your problem may be the fact that you don't have $Form in your template. The patch I mentioned fixes another--but somewhat related--issue.

Ben

Avatar
marcink

21 April 2009 at 6:45am (Last edited: 21 April 2009 6:46am), Community Member, 89 Posts

That was the solution... :D

thanks a lot!

ps.: do i have to put $Form in every template? or is it fine just in Page.ss?

Go to Top