Bug Daily Login bonus awarded (or visually awarded) more than once

Status
Not open for further replies.

Sbenny

Customer
From time to time, users report to me the following:

0-02-01-ba32d8f16d65793cdb1fabd4ce2debd983a1dd7a8b56e35fb0ae60bc4fe7934b_649647.webp


Now, from the checks I did, it looks like the reward is awarded only once, but I'm not 100% sure about it.

Of course, I just set up one event, and it usually works fine, awarding people only once/showing the notification only once, but I've got at least 15 reports of this type in all the months I've been using your add-on.


I don't think I can provide steps to replicate this issue as it happens randomly, but I'm sure the screenshot above explains it all.
 
Which event are you using for this? If you are using Paycheck, then that would be working as intended as it retroactively pays people for "missed" days when the user logs in.

vBulletin versions of this mod used a cron job for the Paycheck event, but it was very performance intensive.
 
Interesting. There is certainly no code that would repeat the event.

My guess is that somehow, your forum is loading another page in the split second it took for the event to be calculated, inserted, and the "yes, we've gotten this award today" timestamp to be updated. As for how this could have happened, that's pure guesswork.

Once I get to this stage in the re-engineering as mentioned in the other thread, I'll see if I can find ways to improve the reliability of this. If you do ever find a pattern, feel free to let me know.
 
Status
Not open for further replies.

DragonByte Credits

XenForo 1.5.3+ XenForo 2.0.x XenForo 2.1.x XenForo 2.2.x XenForo 2.3.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
5,168
Customer rating
4.67 star(s) 6 ratings
Back
Top