Home Forums WoodMart support forum Wrong Login redirect to 404 Page

Wrong Login redirect to 404 Page

Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #333529

    Juan Pablo
    Participant

    Hey,
    I’ve just found two issues related to login:

    1.- in sidebar login, when use wrong user/pwd – “even though the error exception is catched” – while in background the page is redirected to 404 page error. (it should keep the refer page context?

    2.- in normal login page (site.com/myaccount), when we use wrong user/pwd .. it redirect to forgot password page.. ¿should not keep the login form with error message alert?

    Plz ur support!
    Thx u in advance.

    #333672

    Hello,

    First, you need to create a page and add the code to the page as mentioned in the screenshot.

    [woocommerce_my_account]

    Screenshot for Clarification: https://ibb.co/SvQJV07

    Then Go to WooCommerce >> Settings >> Advanced.

    Set My account page from there.

    Screenshot for Clarification: https://ibb.co/1G5D5RC

    Then check back.

    Best Regards

    #333688

    Juan Pablo
    Participant

    Seems that u misunderstood the error.

    To clarify: Have u entered to our site using the admin role?, if so, u can see that we already created and config myAccount page and set the advance settings in Woocommerce > Settings > Advanced

    Let me explain the scenarios and errors once again:

    1.- Login with valid user/pwd (check shared private message), flow is working perfect, is OK !

    2.- LOGIN FROM SIDEBAR
    in Home Page >
    clic login/register in the header >
    then in sidebar login form >
    try to login with any user/pwd >
    u will see the home will redirect to 404 page error.
    ¿ should not keep the home page with just exception error message in sidebar login form ?

    3.- LOGIN FROM MY ACCOUNT PAGE
    Go to my-account page >
    try to login with wrong user/pwd >
    u will see the home will redirect to forgot password page.
    ¿ should not keep the normal login form with just exception error message ?

    look forward to your reply

    #333943

    Hello,

    I have logged into your website and you are not using the latest version of the theme.

    Please update the theme and Recommended plugins to the latest version then check back.

    Best Regards

    #334123

    Juan Pablo
    Participant

    Updated, but problem persists.

    Please your support, thanks !

    #334183

    Hello,

    Please deactivate all the third party plugins and tell me then we will troubleshoot with the theme plugins.

    Best Regards

    #334519

    Juan Pablo
    Participant

    We disabled all third part plugins and the problem persists, please ur support.
    Thanks in advance, look forward to your reply

    #334568

    Juan Pablo
    Participant

    Please let me know once u finish to active them, thanks !

    #334571

    Hello,

    Please try adding the following code to the functions.php of the child theme.

    add_filter(
    	'woodmart_my_account_side_login_form_redirect',
    	function() {
    		return get_permalink( get_option( 'woocommerce_myaccount_page_id' ) );
    	}
    );

    Best Regards

    #334702

    Juan Pablo
    Participant

    Hey friend,

    I have added the snippet as you noted, now there is no error page. However it is redrect to forgot password page when I imput empty or wrong password, is there any way to keep it in log in page and show the “wrong password” error? I do not think it is reasonable to redirect to froget password page in this case.

    please check my attached video.

    Thanks

    #334716

    Juan Pablo
    Participant

    please your help

    #334740

    Hello,

    It is now working the same as my account page.

    For the lost password page redirect please check how it works with the default page on my account page.

    Best Regards

    #334762

    Juan Pablo
    Participant

    it is redrecting to forgot password page in my acount section, however, I do not think it is reasonable. How can I keep client stay in log in page if he logs in with wrong password?

    #334804

    Juan Pablo
    Participant

    You can refer the behaviour of my friend’s site, it stays in account page when there is error.

    #334815

    Juan Pablo
    Participant

    it is resolved by removing the Account endpoints for “lost password” in Setting> Advanced. I added this update in case anyone met the same issue.

    #334888

    Hello,

    We are Glad that your issue has been Resolved.

    Let us know if there’s anything else we can do for you! You can always reach us at any time. We are always here to help you.

    Have a wonderful day.

    Topic Closed.
    Best Regards.

Viewing 16 posts - 1 through 16 (of 16 total)

The topic ‘Wrong Login redirect to 404 Page’ is closed to new replies.