ensignlee / ssbook

ssbook
5 stars 3 forks source link

Problem with view bet page #174

Closed camerondavison closed 12 years ago

camerondavison commented 12 years ago

whats wrong with your site. I have been using it for a couple months and love it..last few days i keep getting computer code at top when viewing my bets..cant view diff bet types etc..is it down? you guys gonna fix it?

Looks like there is some errors showing up for people.

camerondavison commented 12 years ago

Seeing the following in the logs

2011-09-30 23:22:03 Warning: Warning (2): Invalid argument supplied for foreach() in [/home/loyd/git/ssbook/src/app/controllers/bets_controller.php, line 232]

2011-09-30 21:02:17 Warning: Warning (2): array_keys() expects parameter 1 to be array, null given in [/home/loyd/git/ssbook/src/app/controllers/bets_controller.php, line 232]

camerondavison commented 12 years ago

scratch that comment. i had an out of date piece of code. now I am seeing

Notice (8): Undefined offset: 1 [APP/vendors/calculator/winning.php, line 183] Notice (8): Undefined offset: 1 [APP/controllers/bets_controller.php, line 712]

camerondavison commented 12 years ago

some how that guy was able to bet on team_total -> over rather than team_total -> home_over or visitor_over I am going to change his bet to home over

UPDATE sharpbettracker.user_bets SET direction = 'home_over' WHERE user_bets.id =26861;

The game was 2011-09-27 Blue Jays @ White Sox

camerondavison commented 12 years ago

I am going to close this now. I think that the "computer code at the top" part of it is done. I am going to go ahead and submit piece of #154 to put a version number on the js pages as well. If that is the "cant view diff bet types" because of a caching problem.