Home › Forums › WoodMart support forum › Wrong Login redirect to 404 Page
Wrong Login redirect to 404 Page
- This topic has 15 replies, 2 voices, and was last updated 3 years, 3 months ago by
Aizaz Imtiaz Awan.
-
AuthorPosts
-
November 22, 2021 at 2:41 am #333529
Juan PabloParticipantHey,
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.November 22, 2021 at 12:17 pm #333672
Aizaz Imtiaz AwanKeymasterHello,
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
November 22, 2021 at 1:04 pm #333688
Juan PabloParticipantSeems 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
November 23, 2021 at 11:34 am #333943
Aizaz Imtiaz AwanKeymasterHello,
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
November 24, 2021 at 3:44 am #334123
Juan PabloParticipantUpdated, but problem persists.
Please your support, thanks !
November 24, 2021 at 9:06 am #334183
Aizaz Imtiaz AwanKeymasterHello,
Please deactivate all the third party plugins and tell me then we will troubleshoot with the theme plugins.
Best Regards
November 25, 2021 at 12:30 pm #334519
Juan PabloParticipantWe disabled all third part plugins and the problem persists, please ur support.
Thanks in advance, look forward to your replyNovember 25, 2021 at 1:32 pm #334568
Juan PabloParticipantPlease let me know once u finish to active them, thanks !
November 25, 2021 at 1:40 pm #334571
Aizaz Imtiaz AwanKeymasterHello,
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
November 26, 2021 at 5:49 am #334702
Juan PabloParticipantHey 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
November 26, 2021 at 6:13 am #334716
Juan PabloParticipantplease your help
November 26, 2021 at 7:27 am #334740
Aizaz Imtiaz AwanKeymasterHello,
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
November 26, 2021 at 8:11 am #334762
Juan PabloParticipantit 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?
November 26, 2021 at 10:21 am #334804
Juan PabloParticipantYou can refer the behaviour of my friend’s site, it stays in account page when there is error.
November 26, 2021 at 10:43 am #334815
Juan PabloParticipantit is resolved by removing the Account endpoints for “lost password” in Setting> Advanced. I added this update in case anyone met the same issue.
November 26, 2021 at 1:06 pm #334888
Aizaz Imtiaz AwanKeymasterHello,
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. -
AuthorPosts
The topic ‘Wrong Login redirect to 404 Page’ is closed to new replies.
- You must be logged in to create new topics. Login / Register