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.

Archive /

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

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

Missing Login Form


Go to End


10 Posts   4542 Views

Avatar
qhoxie

Google Summer of Code Hacker, 39 Posts

16 June 2007 at 7:19am

Edited: 16/06/2007 7:39am

latest svn seems to be missing the login form template, security.ss

Update: I've spoken with Elijah on irc, and he cannot reproduce this. I did a full reinstall and removed cache and still no change.

FATAL ERROR: None of these templates can be found: Security.ss
At line 53 in /ss/sapphire/core/SSViewer.php

Notice: Array to string conversion in /ss/sapphire/core/Debug.php on line 221

Notice: Array to string conversion in /ss/sapphire/core/Debug.php on line 221

Notice: Array to string conversion in /ss/sapphire/core/Debug.php on line 221

user_error(None of these templates can be found: Security.ss,512)
line 53 of SSViewer.php

SSViewer->__construct(Array)
line 192 of Controller.php

Controller->getViewer(index)
line 160 of Controller.php

Controller->defaultAction(index,Array)
line 135 of Controller.php

Controller->run(Array)
line 48 of Director.php

Director::direct(/Security/)
line 102 of main.php

Avatar
elijahlofgren

Google Summer of Code Hacker, 222 Posts

16 June 2007 at 8:34am

In addition to being unable to reproduce on Apache that is part of Ubuntu Feisty, I have been unable to reproduce this error on WAMP5 on Windows XP.

However, for some unknown reason, SilverStripe no longer runs on my XAMPP install on Windows XP. I've been unable to find any errors, I just get a blank screen.

Hopefully, someone here can reproduce and fix the problem. :)

I Hope everyone has a great weekend,

Elijah

Avatar
qhoxie

Google Summer of Code Hacker, 39 Posts

16 June 2007 at 9:42am

well, after a bunch of fooling around with it it is showing up now

it took deleting /tmp/silverstripe-cache for some reason, even though i had tried rm -rf /tmp/silverstripe-cache/* before and it did not help

Avatar
qhoxie

Google Summer of Code Hacker, 39 Posts

16 June 2007 at 10:58am

now that the form shows up, i cannot login

i have added in showvariable debug statements for email, password, and the member db result in memberauthenticator
i also added a breakpoint to stop execution after that

the relevant information with showqueries on follows

also, it should be noted that i ran the exact member lookup query on the db and got the correct result
the $member object should be printed below the last line of the output, but it is blank

---Debug Output---
Debug (MemberAuthenticator->authenticate() in line 31 of MemberAuthenticator.php)

admin

Debug (MemberAuthenticator->authenticate() in line 32 of MemberAuthenticator.php)

password

Debug (line 51 of MySQLDatabase.php):
SELECT `Member`.*, `Member`.ID, if(`Member`.ClassName,`Member`.ClassName,'Member') AS RecordClassName FROM `Member` WHERE (Email = 'admin' AND Password = 'password') ORDER BY Surname, FirstName LIMIT 1

Debug (line 59 of MySQLDatabase.php):
0.000590085983276
Debug (MemberAuthenticator->authenticate() in line 44 of MemberAuthenticator.php)

Avatar
qhoxie

Google Summer of Code Hacker, 39 Posts

16 June 2007 at 2:27pm

yes

Avatar
qhoxie

Google Summer of Code Hacker, 39 Posts

16 June 2007 at 3:44pm

yeah, i figure its the security or the db stuff, especially strange that the query works properly

Avatar
Markus

Google Summer of Code Hacker, 152 Posts

17 June 2007 at 2:12am

Strange... I can't reproduce those errors, but sometimes I get a similar error message about some other not found templates. After refreshing the page these errors normally disappear.

The login forms and so on should work, make sure to update your _config.php as described in my post in the other thread (http://www.silverstripe.com/google-summer-of-code-forum/flat/1520?showPost=1553).

As usual, try a .../?flush=1 and a ../db/build?flush=1

If it still doesn't work tell me (try a var_dump of MemberAuthenticator->authenticate()), should be a member object or FALSE.

Avatar
qhoxie

Google Summer of Code Hacker, 39 Posts

17 June 2007 at 6:00am

done all of that, and the var dump for member is the blank line at the bottom of my other post

it really seems like it may not be an issues with logins but rather an issue with the db handling, though i dont think that has changed in the last few days

Go to Top