Transient name sent has boolean instead of string

Hi !

I recently switched from PHP 7.4 to 8.0 and saw that I had white screen errors sometimes (just need to refresh and it works usually).
I thought it was Query Monitor plugins, but according to the traceroute, it seems that it is OG which seems to sometimes send transient name as boolean.

The bug only appears when WP_DEBUG, and associated LOG variables are true in wp-config

Fatal error: Uncaught Error: str_replace(): Argument #3 ($subject) must be of type array|string, bool given
in /wp-content/plugins/query-monitor/collectors/transients.php on line 84

Call stack:

    str_replace()
    wp-content/plugins/query-monitor/collectors/transients.php:84
    QM_Collector_Transients::setted_transient()
    wp-content/plugins/query-monitor/collectors/transients.php:59
    QM_Collector_Transients::action_setted_blog_transient()
    wp-includes/class-wp-hook.php:324
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:348
    WP_Hook::do_action()
    wp-includes/plugin.php:517
    do_action()
    wp-includes/option.php:1360
    set_transient()
    wp-content/plugins/og/includes/iworks/class-iworks-opengraph.php:769
    iWorks_OpenGraph::wp_head()
    wp-includes/class-wp-hook.php:324
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:348
    WP_Hook::do_action()
    wp-includes/plugin.php:517
    do_action()
    wp-includes/general-template.php:3052
    wp_head()
    wp-content/themes/highwind-child/header.php:43
    require_once()
    wp-includes/template.php:790
    load_template()
    wp-includes/template.php:725
    locate_template()
    wp-includes/general-template.php:48
    get_header()
    wp-content/themes/highwind-child/single.php:10
    include()
    wp-includes/template-loader.php:106
    require_once()
    wp-blog-header.php:19
    require()

Can you confirm ?

Thx!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer