Auto Update not working

Post here to discuss topics relate to the 4.x version for the ASP Football Pool software program. All support topics should go here.
Post Reply
jhronesz
Posts: 43
Joined: Sat Aug 31, 2013 4:20 pm

Auto Update not working

Post by jhronesz »

I tried to use the score auto update last night and it did not work. any ideas?
User avatar
raider_nation
Posts: 34
Joined: Mon Aug 26, 2013 8:10 pm

Re: Auto Update not working

Post by raider_nation »

You beat me to it. See my post.
HZass
Posts: 19
Joined: Mon Sep 02, 2013 9:54 am

Re: Auto Update not working

Post by HZass »

Auto Update also does not work if there are any games in progress. The code just hangs. I think that this not a bug but a feature to ensure that only complete games are updated.
User avatar
philwojo
Posts: 143
Joined: Mon Aug 26, 2013 4:22 pm

Re: Auto Update not working

Post by philwojo »

This is how it was last year as well, it wouldn't update until all games for a given day were completed.

I don't know enough about the code to try and fix it or point it toward a different site, I am just not that good with code to update it.

I was hoping someone would have found a work around for this, but still doesn't appear that there is one.

I know there are other sites out there that have scores on them, but again I just don't know how to alter the code so I don't screw it all up.

Phil
User avatar
philwojo
Posts: 143
Joined: Mon Aug 26, 2013 4:22 pm

Re: Auto Update not working

Post by philwojo »

OK, had a friend (Doug K from Turbo Tourney) help me fix this issue, and I now have it working, here is the fix:

Find the updateScores.asp file in your root directory


Find:

Code: Select all

if (s.toLowerCase() == "final") {
Replace with:

Code: Select all

if ((s != null) && (s.toLowerCase() == "final")) {
Again a huge thanks to Doug for helping fix this issue!!

Here was his explanation:
The problem is with in-progress games this value is null and so the comparison to the "final" is failing (not being handled by error handling). This will cause the code to skip the game if the value is null.

Phil
HZass
Posts: 19
Joined: Mon Sep 02, 2013 9:54 am

Re: Auto Update not working

Post by HZass »

Works like a champ. Thanks for the update.
crazycoyle96
Posts: 7
Joined: Thu Sep 05, 2013 9:37 am

Re: Auto Update not working

Post by crazycoyle96 »

WOW! Thankyou for this fix! For 7 years now I have been updating these manually, never could get that auto-update to work. Woohoo! Whats your paypal? Id like to donate a few bucks as a thanks!
User avatar
philwojo
Posts: 143
Joined: Mon Aug 26, 2013 4:22 pm

Re: Auto Update not working

Post by philwojo »

Honestly I am just as thankful to have it fixed. Just spread the word to use this board for support on the program so we can get as much knowledge on here as possible.

And all the thanks goes to my friend, Doug, if you need basketball software check out his site ([click]www.turbotourney.com[/click]).

Phil
jhronesz
Posts: 43
Joined: Sat Aug 31, 2013 4:20 pm

Re: Auto Update not working

Post by jhronesz »

One of the other things was that 2012 was still in my updatescores.asp, so I had to update that as well. Great work!

Anyone ever figured out how to get spreads to update like the scores??
User avatar
philwojo
Posts: 143
Joined: Mon Aug 26, 2013 4:22 pm

Re: Auto Update not working

Post by philwojo »

There was another thread about the 2012 issue, and Mike had actually updated that and posted it on his site as well.

I don't use spreads so I never look at that to be honest.

Phil
User avatar
philwojo
Posts: 143
Joined: Mon Aug 26, 2013 4:22 pm

Re: Auto Update not working

Post by philwojo »

One other benefit is now that if you leave it on the scoring page and have the "Auto-Update" checked it will updates games on an interval and you don't even have to monitor it!!
kristoffae
Posts: 15
Joined: Wed Aug 28, 2013 9:19 am

Re: Auto Update not working

Post by kristoffae »

YES!!!!! Thanks for getting this working!!!!
nananaja003
Posts: 9
Joined: Fri Oct 30, 2015 11:08 pm

Re: Auto Update not working

Post by nananaja003 »

checked it will updates games on an interval and you don't even have to monitor it!!
สล็อตออนไลน์
User avatar
philwojo
Posts: 143
Joined: Mon Aug 26, 2013 4:22 pm

Re: Auto Update not working

Post by philwojo »

Thanks for posting, that has been known since it was working. If you notice that post was from over 2 years ago.

Glad you found it for you, but just to be clear this isn't a new feature is all.

Phil
holgar
Posts: 32
Joined: Fri Aug 22, 2014 5:30 pm

Re: Auto Update not working

Post by holgar »

Interesting... I can never get this to work automatically. My browser always times out.

My set up is a Windows Server 2012 R2 machine always on (media server, etc) that I log in as the admin. Then I go to update scores and check the box. The first scores update no problem but then I can't get it to update again automatically due to logging itself out (timeout). Is it possible to set the timeout differently so it doesn't on this one IP? I don't all users to have infinite timeout as thats a security problem...
User avatar
philwojo
Posts: 143
Joined: Mon Aug 26, 2013 4:22 pm

Re: Auto Update not working

Post by philwojo »

I have not had that problem, but I really don't have any idea if it can be done or not. Is there a setting in the main config file for timeouts? I don't recall off hand.
User avatar
Stutgrtguy
Posts: 167
Joined: Sun Oct 20, 2013 3:54 pm
Location: Colorado

Re: Auto Update not working

Post by Stutgrtguy »

I remember finding the script somewhere where you could change the time between "auto update" to say 5 mins to 10 mins. But ive never had a problem timing out, I can let the script run 4-5 hours and it still pulls the correct info. Havent had it time out...server error?
User avatar
philwojo
Posts: 143
Joined: Mon Aug 26, 2013 4:22 pm

Re: Auto Update not working

Post by philwojo »

I have it running from Thursday through Monday and it never times out on me.
holgar
Posts: 32
Joined: Fri Aug 22, 2014 5:30 pm

Re: Auto Update not working

Post by holgar »

Hmmm- happened again this week. I open a browser on the machine (Chrome) and log in as the admin. Check the auto-update box and it'll load the first time but thats it. Then I refresh the page and it makes me log back in as the admin.

Oh well, seasons over so time to make the tweaks for next year (who am I kidding... I'll wait till the 11th hour before week 1 and not test them before putting into production).
User avatar
philwojo
Posts: 143
Joined: Mon Aug 26, 2013 4:22 pm

Re: Auto Update not working

Post by philwojo »

Do you refresh each time? If you do that could be the problem, you need to just leave it alone after you check it.

Do you have any other altered code that you've done? If so maybe that is causing a problem.
Post Reply