Title: PHP Fatal errors
Last modified: April 2, 2025

---

# PHP Fatal errors

 *  Resolved [iviweb](https://wordpress.org/support/users/iviweb/)
 * (@iviweb)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/php-fatal-errors-22/)
 * Getting PHP fatal errors in debug:
 *     ```wp-block-code
       PHP Fatal error:  Uncaught Breeze\Detection\Exception\MobileDetectException: No user-agent has been set. in /home/public_html/wp-content/plugins/breeze/vendor-extra/mobiledetect/build/php8/vendor/mobiledetect/mobiledetectlib/src/MobileDetect.php:1118Stack trace:#0 /home/public_html/wp-content/plugins/breeze/inc/cache/execute-cache.php(184): Breeze\Detection\MobileDetect->isMobile()#1 /home/public_html/wp-content/advanced-cache.php(17): include_once('/home/public_html...')#2 /home/public_html/wp-settings.php(98): include('/home/public_html...')#3 /home/public_html/wp-config.php(113): require_once('/home/public_html...')#4 /home/public_html/wp-load.php(50): require_once('/home/public_html...')#5 /home/public_html/wp-blog-header.php(13): require_once('/home/public_html...')#6 /home/public_html/index.php(17): require('/home/public_html...')#7 {main}  thrown in /home/public_html/wp-content/plugins/breeze/vendor-extra/mobiledetect/build/php8/vendor/mobiledetect/mobiledetectlib/src/MobileDetect.php on line 1118
       ```
   
 *     ```wp-block-code
       PHP Fatal error:  Uncaught TypeError: Breeze_PurgeCache::purge_post_on_new_comment(): Argument #2 ($approved) must be of type int, string given, called in /home/public_html/wp-includes/class-wp-hook.php on line 324 and defined in /home/public_html/wp-content/plugins/breeze/inc/cache/purge-cache.php:420Stack trace:#0 /home/public_html/wp-includes/class-wp-hook.php(324): Breeze_PurgeCache->purge_post_on_new_comment()#1 /home/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()#2 /home/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()#3 /home/public_html/wp-includes/comment.php(2348): do_action()#4 /home/public_html/wp-includes/comment.php(3700): wp_new_comment()#5 /home/public_html/wp-comments-post.php(25): wp_handle_comment_submission()#6 {main}  thrown in /home/public_html/wp-content/plugins/breeze/inc/cache/purge-cache.php on line 420
       ```
   
 * Plugin Version: 2.2.8
 * WordPress: Version 6.7.2
 * Server architecture: Linux 5.10.0-32-amd64 x86_64
 * Web server: Apache/2.4.62 (Debian)
 * PHP version: 8.1.31 (Supports 64bit values)
 * PHP SAPI: fpm-fcgi

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

 *  [Jawad Malik](https://wordpress.org/support/users/jawadwp/)
 * (@jawadwp)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/php-fatal-errors-22/#post-18399532)
 * Hi [@iviweb](https://wordpress.org/support/users/iviweb/)
 * Thank you for reaching out and sharing the full stack trace.
 * I’ve created a ticket for the second error you’re encountering related to the`
   Uncaught TypeError`. We’ll release a quick fix as soon as possible.
 * Regarding the first error related to the user-agent, it’s very rare and, to my
   knowledge, this is the first time it has been reported. Could you please let 
   me know if you’re seeing it on every request or only in specific cases? That 
   information will help me replicate the issue and provide a proper fix.
 * Looking forward to your response.
   Best,Jawad
 *  Plugin Author [owaisalam](https://wordpress.org/support/users/owaisalam/)
 * (@owaisalam)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/php-fatal-errors-22/#post-18409561)
 * This issue has been fixed in Breeze version 2.2.9. Please update to the latest
   version.

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

The topic ‘PHP Fatal errors’ is closed to new replies.

 * ![](https://ps.w.org/breeze/assets/icon-256x256.gif?rev=3352595)
 * [Breeze Cache](https://wordpress.org/plugins/breeze/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/breeze/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/breeze/)
 * [Active Topics](https://wordpress.org/support/plugin/breeze/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/breeze/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/breeze/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [owaisalam](https://wordpress.org/support/users/owaisalam/)
 * Last activity: [1 year, 1 month ago](https://wordpress.org/support/topic/php-fatal-errors-22/#post-18409561)
 * Status: resolved