Support » Plugin: Football Pool » [Plugin: Football Pool] Points totally crazy

Viewing 6 replies - 1 through 6 (of 6 total)
  • The points are right when I look at my on predictions and all other predictions.
    It´s just the point at the page with the list with all players that is totally wrong.
    Everytime I remove the score on a game the scores get multiplied in som estrange way.

    Plugin Author AntoineH


    update: a few seconds too late to see your post. I’ll have a look at your page.

    Can you post some more details about your setup? Version of the plugin, WordPress, PHP and MySQL? Are you using leagues? Using bonus questions?

    The calculation of the scores is a complicated piece of code. That makes it hard to debug. So it won’t be easy to pinpoint the problem.
    But it is also one of the oldest pieces of code that is in the plugin. So I’m somewhat surprised with this behaviour.

    Are you absolutely sure the results are off? Not caused by users that have a joker set for a game or bonus question points that are added?

    Football pool: Version 1.4.1
    Wordpress: Latest
    PHP and MySQL is up to date at my host but not sure exactly wich versions.

    Im not using leagues
    Using bonus questions

    Look at my page and you will se that it is really messed up.

    Everytime the scores are recalculated for some reason the scores get even more crasy.

    Plugin Author AntoineH


    The (re)calculation of the score-table does have a multiply factor (points x joker-doubler). But it starts with a TRUNCATE TABLE statement to start with zero points.

    Can you check if you have TRUNCATE TABLE rights on the database?

    Worked like a charm!!!


    Plugin Author AntoineH


    I updated my development code with some extra checks and a DELETE FROM fallback method. Future update will handle this better (or at least give a proper error message).

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: Football Pool] Points totally crazy’ is closed to new replies.