Home New Guten › Forums › WoodMart support forum › Sidebar Login is not working properly (You need to log in twice)
Sidebar Login is not working properly (You need to log in twice)
- This topic has 26 replies, 3 voices, and was last updated 2 months ago by
Artem Temos.
-
AuthorPosts
-
June 8, 2025 at 10:39 am #666014
Theluckycat88ParticipantWhen trying to log in from the Woodmart AJAX sidebar, the first time it always fails without an error.
However, if I try again a second time, the login works perfectly.
If I use the browser in incognito mode, the login works correctly from the first attempt.
If I switch to a traditional theme where I access the classic login page (/my-account), the problem doesn’t occur.I’ve tried removing all non-theme plugins, but that doesn’t solve the problem and there is no cache on my server that could be causing the problem.
I believe the JavaScript file loginSidebar.min.js, which handles sidebar login, may be served cached or with expired nonces, which is preventing it from working properly on the first load of the website.
I really need an urgent solution to this issue. Searching the forum, I see that other people have also had this problem, and I don’t see a clear solution.
June 9, 2025 at 9:41 am #666094
Artem TemosKeymasterHello,
Thank you for reaching out to us regarding the issue with the WoodMart AJAX sidebar login functionality. To better understand and assist you in resolving this problem, could you please provide a video demonstrating the issue? This will allow us to observe the steps taken and any potential errors that might not be immediately apparent.
We appreciate your patience and cooperation as we work towards a solution.
Thank you and regards
June 9, 2025 at 6:45 pm #666261
Theluckycat88ParticipantI’ve attached a video showing that the first time you log in, it doesn’t work, and you have to log in twice.
Note: The first time you access the page, there won’t be a problem, since no cookies or session data have been stored. However, from that point on, you’ll need to enter your data twice to log in every time you access it.
June 9, 2025 at 6:48 pm #666262
Theluckycat88ParticipantI’ve attached a video less than 2MB.
Attachments:
You must be logged in to view attached files.June 10, 2025 at 9:29 am #666424
Artem TemosKeymasterHello,
Please update the theme to the latest version 8.2.2, clear your browser cache and test how it works.
Kind Regards
June 10, 2025 at 10:24 am #666452
Theluckycat88ParticipantI’ve updated the theme to the latest version, cleared cookies and cache, and the problem persists. You can check it yourself with the username provided.
Please help me, I can’t resolve this problem by myself, because something is not working properly.
June 10, 2025 at 12:18 pm #666486
Artem TemosKeymasterCould you please temporarily disable all plugins that are not related to our theme so we can check what is wrong?
June 10, 2025 at 12:26 pm #666489
Theluckycat88ParticipantDone.
You can check it. Only the plugins indicated in the image are active.Attachments:
You must be logged in to view attached files.June 10, 2025 at 12:32 pm #666493
Artem TemosKeymasterAs I can see, it works as expected at the moment https://gyazo.com/5de3d78d43c834b78853b6dbe7cc1932
June 10, 2025 at 12:47 pm #666496
Theluckycat88ParticipantThe test you are performing is incorrect. Your browser is in incognito mode. The problem occurs when the browser is running in normal mode, not the first time you access it, but when you try to access the page again.
Steps to follow for the test:
1) Log in from the normal browser (not incognito mode).
2) Once logged in, completely close the browser.
3) Reopen the browser and try to log in (the first attempt will fail).
4) If you completely close the browser and reopen the website, the first attempt to log in will fail (and you will only be able to log in on the second attempt).June 10, 2025 at 2:13 pm #666515
Artem TemosKeymasterTry to add the following PHP code snippet to the child theme functions.php file to fix this
add_filter('wp_speculation_rules_href_exclude_paths', function ($exclude_paths) { $exclude_paths[] = '/mi-cuenta/'; return $exclude_paths; });
June 10, 2025 at 2:26 pm #666518
Theluckycat88ParticipantDone, but the problem persists.
It hasn’t been resolved with that feature…June 10, 2025 at 2:42 pm #666522
Artem TemosKeymasterTry to add the following lines as well
add_action('woodmart_my_account_side_login_form_action', function () { return wc_get_page_permalink( 'myaccount' ); });
Kind Regards
June 10, 2025 at 2:53 pm #666528
Theluckycat88ParticipantThis code has modified the page’s behavior. Now, when you try to log in, instead of logging in, you’re redirected to the My Account page.
The expected behavior would be to log in when you click the button, not redirect to the My Account page.
From my perspective, the problem is related to a session cookie or some function that doesn’t always refresh, since after 10-15 minutes, logging in works the first time. We should look into that.
June 11, 2025 at 10:31 am #666656
Artem TemosKeymasterIt is not related to cookies or sessions. The problem is that we can’t reproduce it using different computers. Could you please test it with a different machine and send us a video?
June 11, 2025 at 11:32 am #666678
Theluckycat88ParticipantIt’s clearly a problem with the functionality of this theme’s login sidebar. Switching to another theme doesn’t cause the problem, and you can even verify that it’s not working properly on your own domain, http://www.xtemos.com, where you have implemented the same login functionality. I’ve tried it on three different computers and two browsers (Chrome and Edge). The same problem occurs on all of them.
I attach a video from your own page.
Attachments:
You must be logged in to view attached files.June 11, 2025 at 12:06 pm #666699
Artem TemosKeymasterWe have added the fix to our website as well. Now it works correctly. Please test from your end. Don’t forget to clear the browser cache.
June 11, 2025 at 2:05 pm #666736
Theluckycat88ParticipantWhat changes have you made to your page? It’s still crashing on my site, but I think it’s working on your domain now.
Could you please describe it more clearly?June 11, 2025 at 2:12 pm #666747
Artem TemosKeymasterWe added the code snippet we sent you earlier in this topic.
June 11, 2025 at 2:58 pm #666767
Theluckycat88ParticipantIt’s still not working properly on my domain. It doesn’t seem like the same fix was applied, as the behavior is different.
Unfortunately, I don’t see how this support can help me.
June 11, 2025 at 3:03 pm #666768
Artem TemosKeymasterWe see the fix added on your website and we don’t see the problem at the moment while we were able to reproduce it before you added the fix. The only question is why you still see the problem on your computer. Most likely, due to some kind of cache.
June 11, 2025 at 8:01 pm #666853
Theluckycat88ParticipantUnfortunately, it keeps happening the same way. Testing it is as simple as following the steps indicated.
I’ve tested it again on two different computers, two different browsers, and two different phones, and the behavior is always the same.
June 12, 2025 at 9:50 am #666922
Artem TemosKeymasterCould you please send the exact URL to the page where you test it? We will check if the fix is applied and test it again from our end and send you a video.
June 12, 2025 at 11:47 am #666975
Theluckycat88ParticipantI send you again the exact URL and user… is the home page.
Steps to follow for the test:
1) Log in from the normal browser (not incognito mode).
2) Once logged in, completely close the browser.
3) Reopen the browser and try to log in (the first attempt will fail).
4) If you completely close the browser and reopen the website, the first attempt to log in will fail (and you will only be able to log in on the second attempt).June 13, 2025 at 9:44 am #667181
Artem TemosKeymasterWe tested this one more time on this website and it works without any issues. Here is a video https://monosnap.com/file/mzEEv001LMH3IykY8aNEJBeXsGbVYY
June 13, 2025 at 12:38 pm #667247
Theluckycat88ParticipantThe test isn’t done correctly. You’ve included the logout step, but I haven’t indicated anywhere that you have to log out. I’ll explain the steps again:
1) Log in from the normal browser (not incognito mode).
2) Once logged in, completely close the browser (WITHOUT LOGGING OUT).
3) Reopen the browser and try to log in (the first attempt will fail).
4) If you completely close the browser and reopen the website, the first attempt to log in will fail (and you will only be able to log in on the second attempt).June 13, 2025 at 4:46 pm #667306
Artem TemosKeymasterPlease record a video of exact steps so we can try to reproduce it.
-
AuthorPosts
Tagged: login
- You must be logged in to create new topics. Login / Register