This topic has 54 replies, 9 voices, and was last updated 8 years by 5high-photohub.
-
Author
-
February 2, 2015 at 16:46 #44363solokcoParticipant
For some reason my AJAX login stops working from time to time, is anyone tries it shows the message: “Sending informatio, please wait…” and nothing happens, no errors, nothing.
After deleting de CACHE everything starts working again.
Before I was using W3 TOTAL CACHE and now I’m using the internal cache of SITEGROUND. Same issue with both.
Any idea what could fix this?
February 2, 2015 at 17:37 #44375RaduModeratorHello,
You can try this :
In W3 Total Cache :Uncheck : Cache front page
Check : Don’t cache pages for logged in usersHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionFebruary 2, 2015 at 18:58 #44390solokcoParticipantHi, I already did this, but the problem is for user that are not logged in yet trying to do so.
This only happens with the AJAX function, not if I force it in a LOGIN page.
February 2, 2015 at 19:04 #44393RaduModeratorPlease provide URL
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionFebruary 6, 2015 at 17:44 #44974AndreiModeratorHi,
We couldn’t manage to reproduce this issue, but from what it seems, the ajax request that is made from your login popup, returns an error. Did you tried to make any custom modifications to the theme, or do you have any plugins related to the login action ?
Could you try to remove any custom modifications added to functions.php file or disable all plugins, see if it works, and gradually re-enable plugins one by one, so you can find the one that is causing the issue ?
I don’t think W3Cache should interfere in any way with those ajax calls.
Looking forward.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJune 14, 2015 at 06:59 #62680topnationParticipantI’ve noticed the same issue and I see this post was from a few months ago, so it doesn’t seem to have been updated. When I log in with “my account” tab, it sits on the “Sending information, please wait…” and does nothing. When I log in from within the site, like activity stream, it works fine. So it seems there is another issue here than just the cache.
Also I notice the “my account” tab does not let you log in on an iPhone in other pages, only on home page. I’ve attached a screen shot below. Can someone please advise?
Attachments:
You must be logged in to view attached files.June 14, 2015 at 13:12 #62690AndreiModeratorCan you please provide us a url to your site so that we can check out the reported behavior ?
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJune 19, 2015 at 05:41 #63832topnationParticipantHello @Andrei any word on this? Its been 4 days, the login pop up is not working for people that register “without” Facebook. My sites live now so just try to sign in on the “sign in” button on home page or log in on the drop down menu, and nothing happens. Be great if you could tell me a fix for it as it only happens on the sign in pop up.
Attachments:
You must be logged in to view attached files.July 12, 2015 at 02:27 #67817jmotParticipantHi, has anyone managed to solve this. I’m getting the same error when the incorrect credentials are used. I’m showing a constant stream of 403 Forbidden errors in the console.
July 12, 2015 at 02:31 #67818jmotParticipantEDIT TO MY PREVIOUS POST: I’ve deactivated my login related plugins and cleared my cache, but I’m still getting the errors.
July 12, 2015 at 02:31 #67819AndreiModeratorIn @topnation case it seems there is some sort of custom redirect which affects the ajax url, please provide me a link with your website so I can check your case as well.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJuly 12, 2015 at 03:03 #67821jmotParticipantFound the issue. In app.js (line 1237) the kleoAjaxLogin function is calling $(‘#login_form’).submit() on error. It gets stuck in a loop and never replaces the html of #kleo-login-result.
COPY CODEkleoAjaxLogin: function () { $('form#login_form').on('submit', function (e) { $('#kleo-login-result').show().html(kleoFramework.loadingmessage); $.ajax({ type: 'POST', dataType: 'json', url: kleoFramework.loginUrl, data: { action: 'kleoajaxlogin', log: $('form#login_form #username').val(), pwd: $('form#login_form #password').val(), remember: ($('form#login_form #rememberme').is(':checked') ? true : false), security: $('form#login_form #security').val() }, success: function (data) { console.log(data); $('#kleo-login-result').html(data.message); if (data.loggedin == true) { if (data.redirecturl == null) { document.location.reload(); } else { document.location.href = data.redirecturl; } } }, complete: function () { }, error: function (err) { // Added this. It wasn't displaying the error message. $('#kleo-login-result').html(err.responseJSON.message); $('form#login_form', '#login_panel').off('submit'); // I commmented this out. Why is this in here? // $("#login_form").submit(); } }); e.preventDefault(); }); }
July 12, 2015 at 03:08 #67822AndreiModeratorWell this is about noticing your users that there is a issue, but you should fix the issue not cover it up.
That redirect loop will gonna drain your hosting resources like hell.You should deactivate your plugins or custom modifications one by one and find what produces the redirect loop.
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJuly 12, 2015 at 03:11 #67823jmotParticipantThere is no redirect loop.
The submit function was being called continuously. It no longer is, because I commented it out.
Is there a reason for the $(“#login_form”).submit();?
July 12, 2015 at 03:14 #67824AndreiModeratorYep, the js fails to get an response from the ajax endpoint and that’s submit will try to make the call again for getting a response.
So there is an issue on the server side regarding the admin-ajax endpoint.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJuly 12, 2015 at 03:21 #67825jmotParticipantThe login is failing, but it’s successfully returning a response.
Attachments:
You must be logged in to view attached files.July 12, 2015 at 03:30 #67832AndreiModeratorI will give a more in depth look into this issue.
Thanks for pointing out the details.Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJuly 12, 2015 at 19:00 #67926AndreiModeratorHi @jmot, I would really appreciate if you could provide me a link to your site so I can check the ajax response in your case.
Thanks
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAugust 6, 2015 at 20:28 #72053znoletteParticipantI’m having the same problem. The AJAX script is run and receives a good HTTP response, but it then continues to POST to wp-login.php over and over again. The “Loading…” text and spinner just keep spinning. I’ve found that it does log the user in on the first try, but they’re never notified through the confirmation text. I’m assuming the success message for the AJAX call is never received, but I don’t know why that would be. I’m using ZenCache for caching on the site.
August 8, 2015 at 21:31 #72292GenevieveLeJeuneParticipantI am having the same issue. I have had to temporarily remove the ajax login and revert to using the standard wp-login.php form. It’s not a good user experience!
I have no issues on my test server but wonder if the ajax calls are returning correctly? I’m using inmotionhosting and my site is located in the /public_html rather than the root folder. Could this be the cause of the error?
Please help with the fix!?
Thanks
August 18, 2015 at 15:56 #73569AndreiModeratorI need a link to a page where this is happening so I can debug it and see what’s the issue.
Looking forward.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAugust 19, 2015 at 12:49 #73696AndreiModeratorI see you have Kleo 2.4.3 installed and our latest version is 3.0.6, please update it and let me know if the issue is still present.
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAugust 19, 2015 at 13:32 #73701AndreiModeratorI’ve given a deeper look into that login call and founded a small issue, so please wait for the 3.0.7 update which will completely fix your issue.
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 18, 2015 at 06:04 #78323drearypanoramicParticipantHi,
I too am experiencing this issue with my client’s site. I’ve installed 3.07, but it’s still happening. Much like with the examples above, I’m unable to log in from the home page (just sits there spinning). I can log in from other pages. I have tried disabling ALL non-theme plugins, and the issue persists. I’ve also tried deleting the cahce (WP SuperCache), with no luck.
Has there been any progress made on this issue?
September 18, 2015 at 13:47 #78345AndreiModeratorFirstly try to upgrade to 3.0.9, and secondly you can post a link to your site so we can inspect the issue a little bit.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 18, 2015 at 20:08 #78421topnationParticipant@andrei You keep saying to upgrade but I still see people are having the same issues, furthermore it seems there were glitches in the new versions so I stayed away from the upgrade until everything is fixed. Yes, I am on an older Kleo version, but I see users with 3.07 having the same issue when I was told to upgrade to 3.06. So that obviously would not work.
I’m starting to wonder are you able to fix this issue? Its been a few months now, I sent my credentials, can you just go into the backend in the FTP account and apply the fix?
September 18, 2015 at 20:28 #78425AndreiModeratorBecause of the update dependencies you should better upgrade to 3.0.9, after that if the issue is still present I can give a closer look at your site.
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 19, 2015 at 23:39 #78585drearypanoramicParticipantUpgrading to 3.0.9 fixed the problem for me, thanks!
September 26, 2015 at 09:07 #795525high-photohubParticipantI’ve been following this thread, as I have the same issue… upgraded to Kleo 3.0.9 and thought it was fixed but seems it isn’t as lots of our members are having problems, and now so am I. Problem is the same ” The “Loading…” text and spinner just keep spinning” and it never logs you in, even when I caler my browser’s cache.
Anyone else still having this problem?
Cheers, j
September 27, 2015 at 00:15 #79641AndreiModeratorGive me a link to your website so I can investigate what’s happening.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 28, 2015 at 06:58 #797205high-photohubParticipantThanks Andrei,
I checked it again today and it was the same for admin and user login from front-end (OK from wp-login.php). I then logged in via wp-login page and cleared the cache, logged out and retried… And all good for both admin and user, so it must ne a caching thing.
I use ZenCache and have now changed the settings for the front page (but it will still be cached, just auto-refreshed if updated) and have user-specific cache for my members.
I will setup an admin account for you and send in private reply below, though it might be hard to reproduce if it’s a caching issue?
Thanks.
September 30, 2015 at 02:41 #79996AndreiModerator@5high-photohub I think in your case the issue is generated because you have an extra captcha step in /wp-login.php which is not present in the ajax popup ( and not easy to add ). Please deactivate the login captcha plugin and let me know if it works.
@econstreams give me more details about how can I reproduce this on your site ( maybe provide me an account to test with ), looking forwardHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘KLEO’ is closed to new topics and replies.