Football Pool
Ranking Issue (4 posts)

  1. mikespence
    Posted 2 years ago #


    I've been using this but the ranking page keeps displaying 0 even though we are a few weeks in to the season. I'm not using leagues but would like to display a list of everyone and their scores. I keep getting this message:

    No results yet. Below is a list of all users.

    Any help would be great! Thanks.


  2. rezag
    Posted 2 years ago #

    By any chance are you using it in an added site in a multisite install? If so, that could be it.

  3. mikespence
    Posted 2 years ago #

    I'm not using multisite, just a single domain install.

  4. AntoineH
    Plugin Author

    Posted 2 years ago #

    For some reason the get_pool_ranking() function isn't returning any results. Some things you may check:

    1. Did you do a score calculation in the admin?

    2. Are there any rows in the pool_wp_scorehistory table in the database? There should be some after a calculation.

    3. If point 2 shows some rows: what is the ranking_id for those rows? Is it "1" (a.k.a. the default ranking)?

    4. Check if the get_pool_ranking() function is called with the right parameters (league should be 0 and ranking should be 1, or at least the same as a ranking_id in your scorehistory table). Easy way to check: locate the print_pool_ranking() function in the class-football-pool-pool.php file and replace the first line of that function with this one:

    $output = Football_Pool_Utils::debug( "league: {$league}, ranking: {$ranking_id}", "return" );

    If you post your results it may help me in locating the problem.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Football Pool
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.