Jump to:

794 Posts in 408 Topics by 304 members

Widgets

SilverStripe Forums » Widgets » [SOLVED] Why does Login Widget give 404 error

Discuss SilverStripe Widgets.

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

Page: 1 2
Go to End
Author Topic: 2312 Views
  • peterf
    Avatar
    Community Member
    8 Posts

    [SOLVED] Why does Login Widget give 404 error Link to this post

    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

  • FungshuiElephant
    Avatar
    Community Member
    57 Posts

    Re: [SOLVED] Why does Login Widget give 404 error Link to this post

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

  • peterf
    Avatar
    Community Member
    8 Posts

    Re: [SOLVED] Why does Login Widget give 404 error Link to this post

    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?

  • Double-A-Ron
    Avatar
    Community Member
    604 Posts

    Re: [SOLVED] Why does Login Widget give 404 error Link to this post

    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.

  • peterf
    Avatar
    Community Member
    8 Posts

    Re: [SOLVED] Why does Login Widget give 404 error Link to this post

    Login Widget v 0.1 and SS v 2.3.0

  • Double-A-Ron
    Avatar
    Community Member
    604 Posts

    Re: [SOLVED] Why does Login Widget give 404 error Link to this post

    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

  • peterf
    Avatar
    Community Member
    8 Posts

    Re: [SOLVED] Why does Login Widget give 404 error Link to this post

    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?

  • peterf
    Avatar
    Community Member
    8 Posts

    Re: [SOLVED] Why does Login Widget give 404 error Link to this post

    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

    2312 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.