• Hello, I have a problem with the player list. For a short time the list is not displayed as usual but with the following error.

    Warning: number_format() expects parameter 2 to be integer, string given in /var/www/web710/html/wp-content/plugins/sportspress/includes/class-sp-player-list.php on line 500

    Someone has an idea why this could lie?

    • This topic was modified 8 years, 2 months ago by berzappel.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Roch

    (@rochesterj)

    Hi!

    Thanks for reaching out!

    Please make sure you have the number of decimal places set for all your player stats / statistics.

    Also please make sure you are running the latest plugin version, we’ve had a similar issue reported and fixed a few weeks ago.

    Kind Regards,
    -Roch

    Thread Starter berzappel

    (@berzappel)

    Hey Roch,
    thanks for your tip.
    But i don’t find the misstake. I check all Players. All have the same input. Only the Name and the birth is differently.

    The Plugin have the news Version.

    Do you have any ideas ?

    Philipp

    I’m experiencing the same exact issues with the Player Lists. I’m receiving the following error message when displaying player lists:

    “Warning: number_format() expects parameter 2 to be long, string given in /home/content/p3pnexwpnas05_data01/89/2896989/html/wp-content/plugins/sportspress/includes/class-sp-player-list.php on line 500”

    I checked all the decimal places set for player stats, but see no problems. Any other recommendations or solutions?

    Plugin Author Brian

    (@brianmiyaji)

    @berzappel @ytilles this issue occurs when decimal places were left blank or entered as non-numeric values. Here’s a fix that will be included in the next update, and should get rid of this error:

    https://github.com/ThemeBoy/SportsPress/commit/7bc729dfd17f784ab275eeb31215f690f2f71ca0#diff-7241590d6e1ca7f1fbf75a074ee537d2

    ETA on next update?

    Thanks Brian! Your fix worked.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘player list’ is closed to new replies.