WordPress.org

Ready to get started?Download WordPress

Forums

Login With Ajax
Redirect not working for non admin users (30 posts)

  1. lorembolo
    Member
    Posted 1 year ago #

    Hi,
    Thanks for this plugin.

    I use it on a website in wich I want to have a memeber access. I use Login with ajax in combination with S2 Member.

    I got a redirect issue on this page : http://artisti.bernardcousin.fr/ventes-privees.
    A level0 user (try testeur/testeur) should be redirected to http://artisti.bernardcousin.fr/ventes-privees (same page with private content). I try to configure it, but no way. The redirection redirects only the admin user.

    How can I solve this ?

    Thanks.

    http://wordpress.org/extend/plugins/login-with-ajax/

  2. angelo
    NetWebLogic Support
    Posted 1 year ago #

    hi,

    I tried this one and seems to be working fine; Is that using redirection settings at WP Settings > Login With Ajax and are you using version 3.1.2 ?

  3. lorembolo
    Member
    Posted 1 year ago #

    hi,

    it really doesn't work for me. I configured everything in settings-->login with ajax, but every user (except admin) is not redirected.

    yes, I use 3.1.2

  4. lorembolo
    Member
    Posted 1 year ago #

    Somethnig else : when registering, the error is the same. I got the waiting animation looping but no confirmation message. Maybe a JS issue?

    edit : no, cause it works for admin.

  5. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    will test this out and get back to you asap (will need a week or so)

  6. lorembolo
    Member
    Posted 1 year ago #

    thx a lot.
    If it can help, it seems to be caused by some conflict with s2Member.
    It works fine if I uninstall s2M...

  7. Dimitris73
    Member
    Posted 1 year ago #

    Hello and thank you for this plugin.
    I have exactly the same issue with lorembolo. I am using s2Member too.

  8. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    haven't tested it yet, but it may well have to do with the fact that s2Member also redirects on login, that may be taking priority.

    e.g. in settings - Login Welcome Page

  9. vihegay
    Member
    Posted 1 year ago #

    Hello,

    i have a similar problem... i use ajax with login with s2member together.

    Until now it worked fine but since the last update (?), when a member tries to log in, the preloader does not stop turning. Some members can log in finally by escaping the log in page and going to another one (no redirection), some of the members can not log in at all...

    Admin can log in without difficulty.

    Do not forget that this plugin worked with s2member very well before.

    Waiting for the news and solutions and thank in advance !

  10. vihegay
    Member
    Posted 1 year ago #

    I would like to add some other information... it seems that something happened with some members since this incident exists.

    I have two websites, one works since one year, the other one is under construction. For both i use LWA plugin and s2Member plugin.

    I created a Test profile in the new website to see how the member sees it. But since LWA plugin does not work properly, i can not log in with the Test username and keyword.
    In the meantime, a member of the existing (older) website said that he can not log in anymore. I tested his log in and it has the same problem like Test member on the other website.
    I tried to change their password, it does not work, those members are completely blocked.

  11. advaitavs
    Member
    Posted 1 year ago #

    I am having same problem.

    I am also using S2 membership plugin.

    Need help!

  12. gecko_guy
    Member
    Posted 1 year ago #

    Same problem, also s2Member, which I can't disable for security reasons.

  13. vihegay
    Member
    Posted 1 year ago #

    In the meantime please come also to this forum : http://www.s2member.com/forums/topic/s2member-and-loginwithajax-issue/ because this problem comes from s2member too.

    When i disable s2Member plugin, the members, who could not log in, can log in anew.

    In the meantime we are waiting for a solution, if you can answer please Marcus !

  14. gecko_guy
    Member
    Posted 1 year ago #

    Just an update. I have also notified s2Member, and should have mentioned in my OP that this has only started happening since the latest update.

    Looking forward to a resolution.

    Many thanks

    Guy

  15. vihegay
    Member
    Posted 1 year ago #

    Thanks Gecko... In the meantime there is something about the demoted time of the member who can not log in... do all you have the same problem, i mean that only some membvers who can not log in or it concerns all of your members ?

  16. gecko_guy
    Member
    Posted 1 year ago #

    Anyone who is not an Admin, because the the admin is redirected to the WP admin area, and others are not.

    So something is not working with the re-direction

  17. vihegay
    Member
    Posted 1 year ago #

    On my website the redirection does not work either but the members can log in when they click on another page... only one member who can not do it.

  18. voala
    Member
    Posted 1 year ago #

    Help! I have the same issue. s2members with Login with Ajax. Login not working for non-admin users. This is a great plugin, would hate to have to revert to the old login form.

  19. gecko_guy
    Member
    Posted 1 year ago #

    Oh dear, well this has made it unusable for me, and I can't find a membership plugin that works the way I need it to other than s2Member, so I guess I am going back to the old version of login with Ajax.

    I hope it has no security holes, because other than it works properly in my particular setup.

  20. gecko_guy
    Member
    Posted 1 year ago #

    I have posted this on the s2 board too:

    Well, I have given up on Login with Ajax for the time being.

    I have decided to use an alternative called zM Ajax Login & Register

    This is a real fudge, but what I am doing now is to invoke the login form in a modal window, that opens when clicked using a link, and a redirect to the page that it should be on in the first place (and was when LWA was working).

    The only disadvantage now is that when logging out, the user is redirected back to the home page, but I can live with that (or will find another way to redirect logout), and it has also meant using conditional menu displays for logged in / logged out users, and hacking the core files of zM Ajax Login & Register.

    I am pissed off to say the least (although ony in the general sense).

    I recognise that it is impossible for developers to test every scenario, and I am grateful for the years of good use I had out of LWA, which is why I am so disappointed to let it go.

  21. gecko_guy
    Member
    Posted 1 year ago #

    ...and an edit to above. This just causes other problems :(

    If anyone has a solution it would be great to know.

    I just don't understand why the admin user has no problems, but all other levels the little logging in spinner just revolves indefinitely until the page is refreshed.

  22. vihegay
    Member
    Posted 1 year ago #

    Gecko,

    make a "Test" member please and tell me if you can log in with it.

    The LWA animation will loop, do not care about it, when it is looping, click on another page to see if your Test member could log in or not.

  23. gecko_guy
    Member
    Posted 1 year ago #

    Thanks for your interest Vihegay, but I have found another solution which does not include s2Member.

    I have hated s2Member from day one, and I am very pleased to get rid of it. It is slow and heavy.

    My own situation is that I do not need all the payment gateways etc, and my protected content is a portfolio of images.

    I have protected the members only content by using the Groups plugin combined with Groups 404.

    I can keep Login With Ajax as it is working again, but during my investigations I discovered a really cool premium modal login plugin, so will probably end up switching to that anyway.

  24. vihegay
    Member
    Posted 1 year ago #

    Ok, it is good to know that there are other possibilities... :)

    Can you tell us the exact name of those plugins (Groupe and Groups 404) ?

    In the meantime i had to open a new profile for my member who was blocked and now he can log in with no difficulties and even the looping is disappeared of the LWA animation... But as i have 160 members, i can not delete them and open a new profile for each...

    MARCUS ! Please tell us if youhave found a solution.

    Thanks !

  25. gecko_guy
    Member
    Posted 1 year ago #

    For me the main issue is s2Member. I hate that plugin!

    People who take payments obviously need something like it, but if it is just restricted content then:

    http://wordpress.org/plugins/groups/

    and it's addon:

    http://wordpress.org/plugins/groups-404-redirect/

    404 redirect has dependency on Groups, won't work alone.

    I didn't have to change any of my user profiles, but I did need to go through all the restricted posts and add them to groups control.

  26. lorembolo
    Member
    Posted 1 year ago #

    No news from the developers about this issue ?

    @guecko_Guy : could you gie us the name of the "premium modal plugin" you are talking about ?

    Thx

  27. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    considering this is a free plugin I develop in my spare time (which I have very little of), patience is appreciated :)

    I spent some time digging into this problem, and the reason for this conflict is pretty clear - s2member redirects users to a login page when logging in. Any plugin that forces redirects with logins/logouts is possible to cause conflicts.

    I'll implement a specific section for disabling s2member redirects via our plugin, but the solution right now is to create a blank file wp-content/mu-plugins/disable-s2member-redirect.php (create it and the directory if needed) and add this (no spaces at top):

    <?php
    add_filter('ws_plugin__s2member_login_redirect', create_function('$arg','return false;'));

    personally (not that I'm inviting a debate here), I think s2member is the best membership plugin out there for many reasons. I should have done a search before looking at their code, because they already have the answer to this problem - http://www.s2member.com/forums/topic/how-to-remove-s2member-login-redirect-hook/

  28. gecko_guy
    Member
    Posted 1 year ago #

    Thanks Marcus. I wasn't really complaining and was rather just expressing frustration as it has caused many hours of work for me.

    I like LWA and have gone back to it now that I can control access to the restricted content using Groups. I only wish I had found that hook removal information sooner!

    s2Member is powerful, and as a solution that uses payment gateways it may be necessary for many. It is very slow though, so in my case I am happy to be rid of it.

    Keep up the good work, it is appreciated!

    @lorembolo, I had started using Modal Login for WordPress:

    http://codecanyon.net/item/modal-log-in-for-wordpress/3509483

    but it has the same problem with s2Member and redirects. It looks very pretty though, so if you want a fancy login then I think it is great, but it will still need you to remove the login hook for s2 that Marcus has referred to.

  29. vihegay
    Member
    Posted 1 year ago #

    Hello Marcus,

    thanks for your answer and we know very well that you do not have much time for free plugins ! We appreciate a lot what you did already !

    It seems that i do not have problem with the login anymore, however i do not have solution yet for the looping of the animation and the page does not refresh/redirect.

    Markus, do you have a solution for that ?
    Lorembolo, do you still have that problem ?

  30. vihegay
    Member
    Posted 1 year ago #

    Just a remark, i installed back the LWA version 3.0.4.1 and there is no problem with it : no looping, page refresh and redirect to profile page as i want...

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic