Error when displaying player list
-
Hi,
For all our player lists we are getting the following error:
Warning: number_format() expects parameter 2 to be long, string given in /home/…./afchornchurch.com/wp-content/plugins/sportspress/includes/class-sp-player-list.php on line 500See here: http://www.afchornchurch.com/work-in-progress/
We did use the Configure option to try and re-order the player performance and player statistics values to try and get the player stats (in this case Appearances) to display to the left of the statistics as it currently shows in the rightmost column.
This didn’t work though and in putting it back we accidentally deleted the Appearances statistic metric. We added this back in though – we have another site that uses Sportspress so we copied the config exactly.It looks like the data may be corrupted but presumably you’ll be able to see which field is causing the error (line 500 in class-sp-player-list.php).
Line 500: $placeholder = number_format( $placeholder, $stat->precision, ‘.’, ” );
If it’s corruption and we have to delete all the players and re-input that’s not an issue but if it’s a config issue then I doubt that will work.
Thanks,
Andy
The topic ‘Error when displaying player list’ is closed to new replies.