• We are aware that a no permission error was shown when you tried to purchase in the last 2 days, this is now fixed.

Bug Bug with tie votes

beerForo

Member
Joined
Dec 28, 2019
Messages
96
If it's a tie with 24 hours left the Vote button disappears until the next cron.

I just had this happen. I will PM you the link.
 
Last edited:

beerForo

Member
Joined
Dec 28, 2019
Messages
96
Happened again (no one broke the tie yet but here is the bug)
Today: 12:02 "24 hours left to vote" regular announcement, not tie announcement.
(Vote button disappeared)
Manually ran cron at 12:18
Post was made "There's a tie, 24 hours is added" and the post button appears.
The bug is when 24 hours are left, and there is a tie, there is no vote button. So you manually run the cron for the button and "tie" post.
This is an annoying bug as I am sure a tie will happen again, thanks.
 

beerForo

Member
Joined
Dec 28, 2019
Messages
96
Okay

1. The auto-post was made that there is 24 hours left to vote.
2. A member went to vote and said the vote button was missing.
3. I checked and yes, the vote button was missing and there is still 1 day left to vote.
4. I figured "let me try to run the cron manually to see what happens."
5. I ran the cron, and a new post was made "There is a tie, 24 hours have been added." AND the button was back.

The bug is, when the normal "24 hours left" post is made, IF AT THAT TIME there is a tie, the VOTE BUTTON disappears.
 

MtoR

Freaky Coder
Staff member
Joined
Nov 14, 2015
Messages
4,956
It's most certainly related to the other issue we have, the 1 day left to vote has most certainly been issued a day later than it should ahve been.
 

beerForo

Member
Joined
Dec 28, 2019
Messages
96
Nothing was manual in the bug!
The vote button disappeared with 24 hours left to vote. This should not happen. There are 24 hours left to vote and it is removed from the media. This is a bug.
THEN I ran the cron manually to troubleshoot, AFTER the bug was found.
Then, a post was made "There is a tie, 24 hours have been added" and the button came back.
That is the reason I knew it was a tie and the cause of the bug. Otherwise the button would have been gone a whole day.
 

MtoR

Freaky Coder
Staff member
Joined
Nov 14, 2015
Messages
4,956
You say there was 24H left based on computation or based on the message ?
 

MtoR

Freaky Coder
Staff member
Joined
Nov 14, 2015
Messages
4,956
Ok but that doesn't answer to my question.
 

beerForo

Member
Joined
Dec 28, 2019
Messages
96
I'm not sure but I sent the thread in my PM so you could check the timestamps.
 

MtoR

Freaky Coder
Staff member
Joined
Nov 14, 2015
Messages
4,956
Yeah, as I said it shows yesterday.
So yesterday would be the 29.

So a day after 21+7.
 
  • Like
Reactions: beerForo

beerForo

Member
Joined
Dec 28, 2019
Messages
96
Thanks for checking. If you think the bug is related to the cron timing/timestamp bug I would hope you could make that fix a priority, since it affects more than one action. Thank you again.
 

MtoR

Freaky Coder
Staff member
Joined
Nov 14, 2015
Messages
4,956
It seems it is.
This is not going to be a priority I am sorry, with the COVID-19 confinement I have less time to code.
 

beerForo

Member
Joined
Dec 28, 2019
Messages
96
Understood!
I just sent you a donation, the value of one license, I hope it helps you out.
 
  • Like
Reactions: MtoR

beerForo

Member
Joined
Dec 28, 2019
Messages
96
It seems it is.
However, the button disappeared again this morning.
So if you look at the posts made by the system:
24 hours left (button disappeared)
Ran the cron manually, button appeared, and: Tie - 24 hours added post was made
No one voted to break tie so:
The next day, the 24 hours left post was made again (NOT the tie one) and the button disappeared again.
Ran the cron manually again, button appeared and Tie - 24 hours added post made.
You can see all this in the thread.
Hopefully this helps. Thanks
 

beerForo

Member
Joined
Dec 28, 2019
Messages
96
Update:
Yes this seems to be related to the cron and the timestamps.
My contest started at 12:06 but the cron was set at 12:00. SO every other cron ran earlier, like 12:01, 12:03, etc. and the wrong post was made and the vote button disappeared. The right post ran, and the vote button appeared if it ran at 12:06 or after (manually).
Temporary fix:
For anyone reading, I have a temporary fix which will fix all issues related to cron.
1) Every month, after your contest starts, adjust your cron run time to run a minute after the timestamp of the first post (contest start thread). So for example if you set if for 12:00 and the first post was made at 12:03, now, set the cron to 12:04 and you should not have any issues that month. Or:
2) There's a free add-on on XF that lets you change the post date in the tools menu. You could just adjust the date of the first post (contest start thread) to when your cron is set to run and you should not have any issues that month since all subsequent posts would be at or after that date.

Of course, these are temporary fixes. Thanks for your time.
 
Last edited:
  • Like
Reactions: MtoR