• Resolved bsweileh

    (@bsweileh)


    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

    https://www.ads-software.com/plugins/badgeos/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Michael Beckwith

    (@tw2113)

    The BenchPresser

    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.

    Thread Starter bsweileh

    (@bsweileh)

    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

    Michael Beckwith

    (@tw2113)

    The BenchPresser

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

    Thread Starter bsweileh

    (@bsweileh)

    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

    Thread Starter bsweileh

    (@bsweileh)

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

    Thread Starter bsweileh

    (@bsweileh)

    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

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    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 https://www.ads-software.com/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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘"Log in to Website" trigger not working’ is closed to new replies.