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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

login form not visible


Go to End


9 Posts   4359 Views

Avatar
marcink

Community Member, 89 Posts

19 April 2009 at 10:45pm

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

Community Member, 181 Posts

21 April 2009 at 12:56am

Hi,

Does the patch attached to ticket 3750 help?

Ben

Avatar
marcink

Community Member, 89 Posts

21 April 2009 at 1:17am

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

Community Member, 181 Posts

21 April 2009 at 2:05am

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

Avatar
marcink

Community Member, 89 Posts

21 April 2009 at 2:29am

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

Community Member, 181 Posts

21 April 2009 at 5:39am

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

Community Member, 181 Posts

21 April 2009 at 5:46am

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

Community Member, 89 Posts

21 April 2009 at 6:45am

Edited: 21/04/2009 6:46am

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