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!

  • This area is dedicated to the support of our xF1 add-ons. For xF2, please use the dedicated area: HERE.

Bug Cannot Reproduce Start of voting announcement not being made

JayT

Member
I've also noticed that the starting of voting announcement is not being made. If I manually go in the ACP and run the cron job it will make the announcement but it never does on its own. Right now I have September's contest open for voting as of yesterday but no announcement was made.
 
My contest ended yesterday and voting started. The next time the cron job will run is this evening at 8:01. I'll wait until then and see if it works. I would have thought the announcement should come at the same time the contest opens for voting and not a day later.
 
It says it is.Next scheduled run is today at 8:01pm. I'll see if the announcement is made tonight. My contest is set to start on the 1st of each month and run for 30 days. Yesterday was the last day and voting opened just no announcement. This has happened every month but I went and ran the cron manually. This time I'll wait until this evening. At least then I can see if it's running at all.
 
To warn for the voting phase, it waits for the end of the media time submit and the enf of the media time submit + 24H.
So depending on synchronization it might happen that the cron run earlier than the votes opening you know so it will wait for the next cron run 24H after.
 
Ok I did not get an announcement that voting started even though the cron job time passed. When I manually ran it this time it also did not make an announcement it did however start a repeat of the contest that already started earlier.
 
Running the cron manually is not something that should be done as it indeed can lead to a double creation if you run it twice on the contest creation day.

Regarding the voting announcement, it's odd, can you please send me a screenshot of your options ?
 
Everything seems fine on options side.

I have checked the code again and it seems fine to me.
I suspect a timing synchronization issue between the cron run and the time range I use to warn.

I think to avoid that I would have to make a whole different code and not rely on time but rather on the fact that submission period is finished and whether I already warned for the voting start or not.

However, this is not a quick fix so I'll implement this in the next release.
 
Ok. Twice I was able to get the announcement to post by running the cron job. It looks like I ran the cron a second time on the day the contest ended and after the normally scheduled run of the cron already took place.
 
Will the new version correct this issue as well?

If not could I set the cron to run a second time only on the day voting would start? I would set it to run a few minutes after the regularly scheduled run. This might not be proper but would probably make the announcement.
 
No this has not been managed as I stated to you it requires some deeper changes to ensure it runs smooth.

running the cron twice is not a good idea if it's the same day than the creation date.
 
Well it's weird the add-on is making the announcement now. At one point I disabled all of my add-ons looking for a bug, I wonder if that reset it somehow? The announcements are a day late though. So for example my contest ended on 11/30 and once closed for uploads the voting options appeared. But the announcement for the voting came on 12/1. Maybe the timing issue will be fixed with your planned changes. Anyway I'm glad it's making the announcement now.
 
Didn't work this month for some reason. It did work for two or three in a row though. So I guess this fix is still needed.
 
Do you only have announcements configured for that particular stage ?

Ie. what about submission end, prior voting end, etc... ?
 
I have had the add-on running for the last six months, first month was July 2016. It has only announced the start of voting three out of those six months. July, September and December no announcement was made. August, October and November the announcement was made but it was made a day late. I had a four way tie in September with no announcement but I think you fixed that issue. There was a problem with the Winner Award but you fixed that too I believe. Otherwise the Contest Start and User Submission have always worked.





untitled.JPG
 
Hum, this is really very odd, you seem to be the only that is experiencing such an issue.

Are you sure there is no issue with cron tasks on your server ?

Clément
 
Top