• Resolved nathpw

    (@nathpw)


    Hi

    I’ve just started the new season with my first ever pool and after the first games I can’t calculate the rankings… Can you please assist?

    I’ve entered predictions and actual scores, calculations seem to run without any issues/errors reported but the rankings don’t update, I enabled debugging and this is what I’m getting… Just line 83 & 372, over and over again

    [19-Aug-2017 21:33:15 UTC] PHP Notice: Undefined offset: 0 in /hXXXX/class-football-pool-admin-score-calculation.php on line 83

    [19-Aug-2017 21:33:16 UTC] PHP Notice: Undefined offset: 0 in /hXXXX/class-football-pool-admin-score-calculation.php on line 372

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter nathpw

    (@nathpw)

    Just had a look in my rankings table in the DB, 0 records… not sure if that is related…

    Plugin Author AntoineH

    (@antoineh)

    Hi,

    This is indeed related to the ranking table. There should be at least one record there with the default ranking. Not sure why this record is missing.

    I think the problem will be solved when you insert the record manually.

    INSERT INTO pool_wp_rankings 
    	(id, name, user_defined, calculate) 
    VALUES
    	(1, 'default ranking', 0, 1);
    
    • This reply was modified 7 years, 7 months ago by AntoineH.
    Thread Starter nathpw

    (@nathpw)

    Worked like a bomb! Inserted the record, recalculated and all the rankings are there ??

    Plugin Author AntoineH

    (@antoineh)

    Great! Have fun with the plugin ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Undefined offset: 0 in class-football-pool-admin-score-calculation.php’ is closed to new replies.