Title: Is your plugin compatible with PHP 8+ ?
Last modified: November 9, 2023

---

# Is your plugin compatible with PHP 8+ ?

 *  Resolved [kuperman87](https://wordpress.org/support/users/kuperman87/)
 * (@kuperman87)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/is-your-plugin-compatible-with-php-8/)
 * Hi,
   I can see a fatal error with php8 or 8.1 and SportsPress plugin, here you
   can see the log:PHP Fatal error: Uncaught TypeError: Unsupported operand types:
   string + int in /…/wp-content/plugins/sportspress/includes/class-sp-player-list.
   php:272
    -  This topic was modified 2 years, 7 months ago by [kuperman87](https://wordpress.org/support/users/kuperman87/).

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

 *  Plugin Contributor [Savvas](https://wordpress.org/support/users/savvasha/)
 * (@savvasha)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/is-your-plugin-compatible-with-php-8/#post-17189319)
 * Hi there,
 * Is this error appeared on all your player lists? Which php version are you using?
   8 or 8.1?
 * Thanks,
   Savvas
 *  Thread Starter [kuperman87](https://wordpress.org/support/users/kuperman87/)
 * (@kuperman87)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/is-your-plugin-compatible-with-php-8/#post-17192656)
 * Hi,
   Error appeared on my frontpage, so I’ve checked error log file and found 
   this entry:PHP Fatal error: Uncaught TypeError: Unsupported operand types: string
   + int in /…/wp-content/plugins/sportspress/includes/class-sp-player-list.php:
   272It’s visible in php 8.0 and 8.1 when I change php to 7.4 everything is fine..
 *  Plugin Contributor [Savvas](https://wordpress.org/support/users/savvasha/)
 * (@savvasha)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/is-your-plugin-compatible-with-php-8/#post-17192990)
 * Hi [@kuperman87](https://wordpress.org/support/users/kuperman87/),
 * Can you share a link to your frontpage? Do you have any player lists appeared
   on your frontpage? Are you using any performance stats with decimal places?
 * Thanks,
   Savvas
 *  [andrekelling](https://wordpress.org/support/users/andrekelling/)
 * (@andrekelling)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/is-your-plugin-compatible-with-php-8/#post-17411797)
 * is this really thread resolved?
   got a very similar issue here:`**Fatal error**:
   Uncaught TypeError: Unsupported operand types: int + string in /wp-content/plugins/
   sportspress/includes/class-sp-league-table.php:396 Stack`
 * running with PHP v8.3.
   `(int) $totals[ $team_id ]['eventminutes'] + $minutes`
   there is happening some type casting for the one `int` type var and for the concatenated
   string type var not.**type strictness is an issue now**!_so what could get done
   in between is just casting the second string var too and hope it’s correct without
   understanding the whole thing behind 🙂_`(int) $totals[ $team_id ]['eventminutes']
   + (int) $minutes`_and then hope the next update will fix it._

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

The topic ‘Is your plugin compatible with PHP 8+ ?’ is closed to new replies.

 * ![](https://ps.w.org/sportspress/assets/icon-256x256.png?rev=1252005)
 * [SportsPress - Sports Club & League Manager](https://wordpress.org/plugins/sportspress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sportspress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sportspress/)
 * [Active Topics](https://wordpress.org/support/plugin/sportspress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sportspress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sportspress/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [andrekelling](https://wordpress.org/support/users/andrekelling/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/is-your-plugin-compatible-with-php-8/#post-17411797)
 * Status: resolved