What's new
Xen Factory

Register today to become a member! Once signed in, you'll be able to start purchasing our products, ask questions, request support and suggest new ideas!

  • 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 Resolved Bug with tie votes

beerForo

Member
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
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
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.
 

Clement

Freaky Coder
Staff member
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
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.
 

beerForo

Member
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.
 

Clement

Freaky Coder
Staff member
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
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
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:
Top