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.

Widgets /

Discuss SilverStripe Widgets.

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

[SOLVED] Why does Login Widget give 404 error


Go to End
Reply


9 Posts   2491 Views

Avatar
peterf

Community Member, 8 Posts

18 April 2009 at 1:04pm

Edited: 22/04/2009 9:27am

Logging in via my Login Widget fails with a 404 error.

The page not found is http://mysite/emmaus/Security/?executeForm=LoginForm

Logging in via the main login screen works ok.

I don't recognise the 'emmaus' directory. (Is it a directory?)
Thanks

Avatar
FungshuiElephant

Community Member, 57 Posts

20 April 2009 at 9:36pm

Edited: 20/04/2009 9:38pm

It's a bug.
See: [url]http://www.silverstripe.org/widgets-2/show/251482?start=0#post255419[/url]
A very similar question has been asked before, please search before posting.

Avatar
peterf

Community Member, 8 Posts

21 April 2009 at 10:04am

Thanks for your reply fengshui but don't be too quick on the trigger finger pardner we are all trying to find our way here and support an outstanding product. Name of the game here is infinite patience with fellow travellers :smile:

I did not consider the post you link because it was a different question however I have already tried the method suggested later (off topic) in the post ie modifying the processing script to change the url. No go.

If as you suggest it is a bug, then that is very difficult to understand. This is an important widget written by a member of the core development team. This bug would prevent the widget from working 100% of the time. Thus it cannot be the case that I am the first person to experience this problem. Yes/no?

Avatar
Double-A-Ron

Community Member, 604 Posts

21 April 2009 at 12:31pm

Edited: 21/04/2009 2:42pm

One of the first things you should mention when posting a question is what version of SS you are using.

There are incompatability issues that make many of the contribs not up to speed with core version releases.

Avatar
peterf

Community Member, 8 Posts

21 April 2009 at 6:47pm

Login Widget v 0.1 and SS v 2.3.0

Avatar
Double-A-Ron

Community Member, 604 Posts

21 April 2009 at 8:22pm

OK, so a pretty recent version of SS, and a widget that doesn't seem to have been maintained since July last year.

It doesn't help find a solution, but it should make it easier to understand why it doesn't work out of the box.

Judging by the 404 link you posted, I'm very surprised that the fix that Fungshui posted didn't work for you. Are you sure you did a flush=1 after making the modification? Make sure you check the HTML source and check that the form action has been changed as per the mod. The fact that it is still trying to send you to that emmaus directory suggests that you haven't.

Cheers
Aaron

Avatar
peterf

Community Member, 8 Posts

21 April 2009 at 10:57pm

Ok so I modified LoginWidget.ss line 7 with the same result. Specifically I get a white page. Execution halts quite quickly. Browser (FF) indicates "Done". So...no more 404 but the Login action is not happening.

This is the modified URL http://www.mysite.net/Security/?executeForm=LoginForm

So I know the form was submitted for processing. Where to next?

Avatar
peterf

Community Member, 8 Posts

22 April 2009 at 9:57am

This appears to have been a version incompatibility issue and I fixed it using the method described at

http://www.silverstripe.org/widgets-2/show/251482?start=0#post255419

This requires line 7 of LoginWidget.ss to be replaced with

<form action="Security/LoginForm" method="post" enctype="application/x-www-form-urlencoded">

Thank you for your help FunghuiElephant and Double A Ron. Is there any value in suggesting this fix might form part of a Release Note included with the distribution package?

Aaron FYI my first attempts failed because I only modified the URL of the processing script but not the rest of the form action.

Cheers
Peter

Go to Top