• When clicking the menu option Statistics, the statstics page renders correctly and I can choose players to display. The resulting URL has the format /statistics/?users[0]=12&view=stats&user=0

    However, when clicking a player name, you first get the player predictions and can then click on the Statistics icon shown on that page. That leads to a different URL format (/statistics/?view=user&user=12), and this does not display correctly: I see the page title and the chart options icon but the rest of the page, including the sidebar, is not shown.

    https://ww.wp.xz.cn/plugins/football-pool/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author AntoineH

    (@antoineh)

    Can you enable the debug settings in WordPress and post the error log (between code tags)?

    Sounds like some kind of error that prevents the page from rendering correctly.

    Thread Starter dekkerpj

    (@dekkerpj)

    Notice: the_author was called with an argument that is deprecated since version 2.1 with no alternative available. in /wp-includes/functions.php on line 3195 Notice: the_author was called with an argument that is deprecated since version 1.5! Use get_the_author() instead if you do not want the value echoed. in /wp-includes/functions.php on line 3193 Notice: get_userdatabylogin wordt ontraden sinds versie 3.3! Gebruik in plaats daarvan get_user_by(‘login’). in /wp-includes/functions.php on line 3078 Notice: Undefined variable: phpexec_output in /wp-content/plugins/phpexec.php on line 67 Strict Standards: Only variables should be passed by reference in /wp-content/plugins/football-pool/pages/class-football-pool-statistics-page.php on line 195 Fatal error: Call to undefined method Football_Pool_Pool::get_jokers() in /wp-content/plugins/football-pool/classes/class-football-pool-chart-data.php on line 153

    Plugin Author AntoineH

    (@antoineh)

    What version of the plugin are you using?
    If I look in the 2.4.2 source code the method is where it should be.

    Thread Starter dekkerpj

    (@dekkerpj)

    I use 2.4.2! I assume you refer to the last 2 lines from the log, concerning football-pool/pages/class-football-pool-statistics-page.php and football-pool/classes/class-football-pool-chart-data.php?

    In the chart-data on line 153 I have: $num_jokers = $pool->get_jokers();
    In the statistics-page on line 195: $chart->data = array_shift( $chart_data->bonus_question_pie_series( $raw_data ) );

    Thread Starter dekkerpj

    (@dekkerpj)

    Indeed, if I scan the entire plugin for all occurrences of get_jokers, I only find this reference in the chart-data php-file.

    However, after again downloading your plugin, I notice that class-football-pool-pool.php has changed and now includes the method definition:

    my version:
    public function __construct() {
    $this->num_jokers = Football_Pool_Utils::get_fp_option( ‘number_of_jokers’, FOOTBALLPOOL_DEFAULT_JOKERS, ‘int’ );

    just downloaded version:
    public function __construct() {
    $this->num_jokers = $this->get_jokers();

    I replaced the file and now it works. Do you agree?

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘stats not shown’ is closed to new replies.