• Resolved mtta

    (@mtta)


    I get a critical error when creating League Tables, wordpress email contains this error

    WordPress version 6.3.1
    Active theme: Sporty (version 1.8.8)
    Current plugin: SportsPress (version 2.7.16)
    PHP version 8.2.9

    Error Details
    =============
    An error of type E_ERROR was caused in line 395 of the file /home2/mtta/public_html/wp-content/plugins/sportspress/includes/class-sp-league-table.php. Error message: Uncaught TypeError: Unsupported operand types: int + string in /home2/mtta/public_html/wp-content/plugins/sportspress/includes/class-sp-league-table.php:395
    Stack trace:
    #0 /home2/mtta/public_html/wp-content/plugins/sportspress/includes/admin/post-types/meta-boxes/class-sp-meta-box-table-data.php(29): SP_League_Table->data()
    #1 /home2/mtta/public_html/wp-admin/includes/template.php(1443): SP_Meta_Box_Table_Data::output()
    #2 /home2/mtta/public_html/wp-admin/edit-form-advanced.php(688): do_meta_boxes()
    #3 /home2/mtta/public_html/wp-admin/post.php(206): require(‘/home2/mtta/pub…’)
    #4 {main}
      thrown

    I have tried rolling back the site to an older version and importing that data and the same error occurs, I have also tried deleting this current seasons events/results and as soon as I enter any data I get this error even when I try generating a table for a previous season.

    Any assistance would be greatly appreciated.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Savvas

    (@savvasha)

    Hi there @mtta ,

    Did you try to switch to a default theme like Rookie or TwentyTenty to confirm that this is not a theme issue related to your PHP version (8.2.x)?

    Thanks,
    Savvas

    Thread Starter mtta

    (@mtta)

    Hi @savvasha,

    Yes, I have tried both Rookie and the Twenty Thirteen themes. I have also tried PHP 5.4, 7.6 and 8.0.

    Plugin Contributor Savvas

    (@savvasha)

    Ok, I am currently using PHP 8.2.x and not able to reproduce this issue. Can you provide me step-to-step details on how to reproduce it?

    Thanks,
    Savvas

    Thread Starter mtta

    (@mtta)

    I do not think this can be reproduced elsewhere, I suspect that my result data is causing the issue, everything seems to work when I delete the current season results. But as soon as I start entering results the league tables stop working.

    Plugin Contributor Savvas

    (@savvasha)

    The error starts showing as soon as you add the first result? Maybe there is a misconfiguration in one of your fixtures?

    Thread Starter mtta

    (@mtta)

    I ended up encountering this issue again for our new season, which this time I may have isolated the issue.
    This issue occurs when the “Full Time” in an event is left blank.
    If I set it to ‘0’ mins, it fixes the issue and the League table generate.

    Not sure why this happens, as my old events prior to mid 2023 also dont have a number in this field but the League tables work fine.

    Plugin Contributor Savvas

    (@savvasha)

    Hi @mtta,

    Try to set the default Full time duration at SportsPress->Settings->Matches->Full Time

    For example:

    Thanks,
    Savvas

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

The topic ‘League Tables not generating’ is closed to new replies.