WordPress.org

Ready to get started?Download WordPress

Forums

BadgeOS
[resolved] "Log in to Website" trigger not working (8 posts)

  1. bsweileh
    Member
    Posted 6 months ago #

    Hello,

    I can't get the "log in to Website" trigger to add points to a user or award a badge. I am using the latest version of BadgeOS. I followed the steps - they seem quite straight forward. I don't seem to have issues with other triggers. No log entries are created upon logging into the website and nothing gets added to the "my achievements" widget.

    Please advise. Thanks.

    Best regards,
    Belal

    http://wordpress.org/plugins/badgeos/

  2. Michael Beckwith
    Member
    Plugin Author

    Posted 6 months ago #

    Any changes with this one since the first post?

    Could you share what settings you've used for your achievement type? Sounds like you already checked every other area I'd have you check on.

  3. bsweileh
    Member
    Posted 6 months ago #

    Hi Michael,

    Still no success. I have selected

    'Earned by "completing steps"
    and 'Require: "log into website" 1 time"

    I do have wishlist member installed and am wondering if there is a conflict between BadgeOS and Wishlist member. I noticed a similar conflict using WPAchievements to award achievements upon loggin in as well.

    Best regards,
    Belal

  4. Michael Beckwith
    Member
    Plugin Author

    Posted 6 months ago #

    If you could, disable Wishlist member and see if you get the expected results then.

  5. bsweileh
    Member
    Posted 6 months ago #

    Hi Michael,

    When wishlist member is disabled, the user does get the badge and the point - but the first time the user logs in, the login process tends to time out and the user gets awarded the badge and points a few hundred times (I have some screenshots but am unable to upload them to these forums). I suspect somesort of infinite loop. When the user logs in the second time, it doesn't time out and the badge and points are only awarded once.

    Please advise. Thanks.

    Best regards,
    Belal

  6. bsweileh
    Member
    Posted 6 months ago #

    Also, how can I erase all achievement data for a particular user? Right now, the user has 100s of repeated badges and awards.

  7. bsweileh
    Member
    Posted 6 months ago #

    Lastly, while testing, I have deactivated all plugins which may relate to logging in and adding actions to the wp_login action hook. In all cases, I get users getting hundreds of badges.

    Best regards,
    Belal

  8. Michael Beckwith
    Member
    Plugin Author

    Posted 6 months ago #

    Definitely sounds like a solid case for infinite loop. The question is where is it getting caught and why. Not a lot of debugging I can do with that without any actual links or admin access. I know I use http://wordpress.org/plugins/query-monitor/ a lot lately, especially for seeing what functions get attached to what hooks etc. That may help debug a little bit.

    Regarding deleting achievements for one user, there's the tedious way and the easy way. Tedious involves going to their user profile in the WP Admin, and deleting each achievement. Sadly we don't have bulk delete on this, at least not right now (feature idea). So it'd be one at a time.

    The easy way is to log into your phpmyadmin or whatever you use for db management, and delete the appropriate meta key for the user.

Reply

You must log in to post.

About this Plugin

About this Topic