Title: Compatibility issues with PHP8.3
Last modified: April 16, 2026

---

# Compatibility issues with PHP8.3

 *  [thefriendlancer](https://wordpress.org/support/users/thefriendlancer/)
 * (@thefriendlancer)
 * [1 month, 3 weeks ago](https://wordpress.org/support/topic/compatibility-issues-with-php8-3/)
 * We switched our site recently to PHP8.3 coming from PHP7.4
 * However, WP Slimstats stopped working and we are seeing several Error 500 in 
   the logs, please see blow:
 * [https://drive.google.com/file/d/1TUS3d5326JdRa3pmjIFOkWJJZ0XBd2Mg/view?usp=drivesdk](https://drive.google.com/file/d/1TUS3d5326JdRa3pmjIFOkWJJZ0XBd2Mg/view?usp=drivesdk)
 * These errors are gone when switched back to PHP7.4 so this must be a PHP version
   error.
 * How can this be fixed?

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

 *  Plugin Contributor [Parhum Khoshbakht](https://wordpress.org/support/users/parhumm/)
 * (@parhumm)
 * [1 month, 3 weeks ago](https://wordpress.org/support/topic/compatibility-issues-with-php8-3/#post-18883922)
 * Hi [@thefriendlancer](https://wordpress.org/support/users/thefriendlancer/) ,
 * Thanks for the detailed report and for testing on both PHP versions.
 * The jump from PHP 7.4 to 8.3 is a big one – PHP 8.0 removed several functions
   that older code relied on (like `each()` and `create_function()`), and any plugin
   still using them will crash with a 500 error. We’ve cleaned all of these out 
   in recent releases. **Version 5.4.11 has been verified compatible with PHP 8.3.**
 * **Could you check which version of SlimStat you’re running?** You’ll find it 
   under **Dashboard > Plugins**. If it’s anything older than 5.4.x, updating to
   5.4.11 should fix this. You can update from the WordPress admin (Plugins > Update)
   or by uploading the latest version via FTP to overwrite the existing install.
 * If you’re already on the latest version and the 500s persist, the next step would
   be to check the PHP error log. The screenshot you shared shows the HTTP access
   log (the 500 status codes), but the actual PHP error message that tells us exactly
   what went wrong lives in a different log. Add these two lines to your wp-config.
   php, reload a page, then check wp-content/debug.log:
 * `define( 'WP_DEBUG', true );`
   `define( 'WP_DEBUG_LOG', true );`
 * Share the SlimStat-related lines from that file and we’ll pinpoint the exact 
   issue.
 *  Thread Starter [thefriendlancer](https://wordpress.org/support/users/thefriendlancer/)
 * (@thefriendlancer)
 * [1 month, 2 weeks ago](https://wordpress.org/support/topic/compatibility-issues-with-php8-3/#post-18890043)
 * Hi [@parhumm](https://wordpress.org/support/users/parhumm/)
 * We are using the latest version of the plugin – Version 5.4.11
 * When I reported it, we were using Version 5.4.9 but I just upgraded now to Version
   5.4.11 but issue is still the same.
 * Below are the error logs:
 * [24-Apr-2026 13:22:30 UTC] PHP Fatal error: Uncaught Error: Class “finfo” not
   found in /home/username/public_html/wp-content/plugins/wp-slimstat/src/Dependencies/
   League/MimeTypeDetection/FinfoMimeTypeDetector.php:30
   Stack trace: 0 /home/username/
   public_html/wp-content/plugins/wp-slimstat/src/Dependencies/League/Flysystem/
   Local/LocalFilesystemAdapter.php(82): SlimStat\Dependencies\League\MimeTypeDetection\
   FinfoMimeTypeDetector->__construct() 1 /home/username/public_html/wp-content/
   plugins/wp-slimstat/src/Services/Browscap.php(119): SlimStat\Dependencies\League\
   Flysystem\Local\LocalFilesystemAdapter->__construct(‘/home/username…’) 2 /home/
   username/public_html/wp-content/plugins/wp-slimstat/src/Services/Browscap.php(
   64): SlimStat\Services\Browscap::get_browser_from_browscap(Array, ‘/home/username…’)
   3 /home/username/public_html/wp-content/plugins/wp-slimstat/src/Tracker/Processor.
   php(362): SlimStat\Services\Browscap::get_browser() 4 /home/username/public_html/
   wp-content/plugins/wp-slimstat/src/Tracker/Ajax.php(440): SlimStat\Tracker\Processor::
   process() 5 /home/username/public_html/wp-content/plugins/wp-slimstat/src/Tracker/
   Tracker.php(18): SlimStat\Tracker\Ajax::process() 6 /home/username/public_html/
   wp-content/plugins/wp-slimstat/src/Controllers/Rest/TrackingRestController.php(
   221): SlimStat\Tracker\Tracker::slimtrack_ajax() 7 /home/username/public_html/
   wp-includes/rest-api/class-wp-rest-server.php(1292): SlimStat\Controllers\Rest\
   TrackingRestController->handle_tracking(Object(WP_REST_Request)) 8 /home/username/
   public_html/wp-includes/rest-api/class-wp-rest-server.php(1125): WP_REST_Server-
   >respond_to_request(Object(WP_REST_Request), ‘/slimstat/v1/hi…’, Array, NULL)
   9 /home/username/public_html/wp-includes/rest-api/class-wp-rest-server.php(439):
   WP_REST_Server->dispatch(Object(WP_REST_Request)) 10 /home/username/public_html/
   wp-includes/rest-api.php(467): WP_REST_Server->serve_request(‘/slimstat/v1/hi…’)
   11 /home/username/public_html/wp-includes/class-wp-hook.php(341): rest_api_loaded(
   Object(WP)) 12 /home/username/public_html/wp-includes/class-wp-hook.php(365):
   WP_Hook->apply_filters(”, Array) 13 /home/username/public_html/wp-includes/plugin.
   php(570): WP_Hook->do_action(Array) 14 /home/username/public_html/wp-includes/
   class-wp.php(418): do_action_ref_array(‘parse_request’, Array) 15 /home/username/
   public_html/wp-includes/class-wp.php(821): WP->parse_request(”) 16 /home/username/
   public_html/wp-includes/functions.php(1343): WP->main(”) 17 /home/username/public_html/
   wp-blog-header.php(16): wp() 18 /home/username/public_html/index.php(17): require(‘/
   home/username…’) 19 {main}
 * thrown in /home/username/public_html/wp-content/plugins/wp-slimstat/src/Dependencies/
   League/MimeTypeDetection/FinfoMimeTypeDetector.php on line 30
   [24-Apr-2026 13:
   22:32 UTC] PHP Fatal error: Uncaught Error: Class “finfo” not found in /home/
   username/public_html/wp-content/plugins/wp-slimstat/src/Dependencies/League/MimeTypeDetection/
   FinfoMimeTypeDetector.php:30Stack trace: 0 /home/username/public_html/wp-content/
   plugins/wp-slimstat/src/Dependencies/League/Flysystem/Local/LocalFilesystemAdapter.
   php(82): SlimStat\Dependencies\League\MimeTypeDetection\FinfoMimeTypeDetector-
   >__construct() 1 /home/username/public_html/wp-content/plugins/wp-slimstat/src/
   Services/Browscap.php(119): SlimStat\Dependencies\League\Flysystem\Local\LocalFilesystemAdapter-
   >__construct(‘/home/username…’) 2 /home/username/public_html/wp-content/plugins/
   wp-slimstat/src/Services/Browscap.php(64): SlimStat\Services\Browscap::get_browser_from_browscap(
   Array, ‘/home/username…’) 3 /home/username/public_html/wp-content/plugins/wp-
   slimstat/src/Tracker/Processor.php(362): SlimStat\Services\Browscap::get_browser()
   4 /home/username/public_html/wp-content/plugins/wp-slimstat/src/Tracker/Ajax.
   php(440): SlimStat\Tracker\Processor::process() 5 /home/username/public_html/
   wp-content/plugins/wp-slimstat/src/Tracker/Tracker.php(18): SlimStat\Tracker\
   Ajax::process() 6 /home/username/public_html/wp-content/plugins/wp-slimstat/src/
   Controllers/Rest/TrackingRestController.php(221): SlimStat\Tracker\Tracker::slimtrack_ajax()
   7 /home/username/public_html/wp-includes/rest-api/class-wp-rest-server.php(1292):
   SlimStat\Controllers\Rest\TrackingRestController->handle_tracking(Object(WP_REST_Request))
   8 /home/username/public_html/wp-includes/rest-api/class-wp-rest-server.php(1125):
   WP_REST_Server->respond_to_request(Object(WP_REST_Request), ‘/slimstat/v1/hi…’,
   Array, NULL) 9 /home/username/public_html/wp-includes/rest-api/class-wp-rest-
   server.php(439): WP_REST_Server->dispatch(Object(WP_REST_Request)) 10 /home/username/
   public_html/wp-includes/rest-api.php(467): WP_REST_Server->serve_request(‘/slimstat/
   v1/hi…’) 11 /home/username/public_html/wp-includes/class-wp-hook.php(341): rest_api_loaded(
   Object(WP)) 12 /home/username/public_html/wp-includes/class-wp-hook.php(365):
   WP_Hook->apply_filters(”, Array) 13 /home/username/public_html/wp-includes/plugin.
   php(570): WP_Hook->do_action(Array) 14 /home/username/public_html/wp-includes/
   class-wp.php(418): do_action_ref_array(‘parse_request’, Array) 15 /home/username/
   public_html/wp-includes/class-wp.php(821): WP->parse_request(”) 16 /home/username/
   public_html/wp-includes/functions.php(1343): WP->main(”) 17 /home/username/public_html/
   wp-blog-header.php(16): wp() 18 /home/username/public_html/index.php(17): require(‘/
   home/username…’) 19 {main}
 * thrown in /home/username/public_html/wp-content/plugins/wp-slimstat/src/Dependencies/
   League/MimeTypeDetection/FinfoMimeTypeDetector.php on line 30
 *  Thread Starter [thefriendlancer](https://wordpress.org/support/users/thefriendlancer/)
 * (@thefriendlancer)
 * [4 weeks, 1 day ago](https://wordpress.org/support/topic/compatibility-issues-with-php8-3/#post-18907206)
 * Any ideas on the issue? Does the error logs help?

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcompatibility-issues-with-php8-3%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/wp-slimstat/assets/icon.svg?rev=2832242)
 * [SlimStat Analytics](https://wordpress.org/plugins/wp-slimstat/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-slimstat/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-slimstat/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-slimstat/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-slimstat/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-slimstat/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * 3 replies
 * 2 participants
 * Last reply from: [thefriendlancer](https://wordpress.org/support/users/thefriendlancer/)
 * Last activity: [4 weeks, 1 day ago](https://wordpress.org/support/topic/compatibility-issues-with-php8-3/#post-18907206)
 * Status: not resolved