• Resolved iviweb

    (@iviweb)


    Getting PHP fatal errors in debug:


    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:1118
    Stack 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
    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:420
    Stack 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)
  • Hi @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

    (@owaisalam)

    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.