Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transient name sent has boolean instead of string #11

Closed
iworks opened this issue Nov 20, 2023 · 0 comments
Closed

Transient name sent has boolean instead of string #11

iworks opened this issue Nov 20, 2023 · 0 comments
Assignees

Comments

@iworks
Copy link
Owner

iworks commented Nov 20, 2023

https://wordpress.org/support/topic/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

https://wordpress.org/support/topic/php-8-0-compatibility-37/#post-17214638

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()
@iworks iworks self-assigned this Nov 20, 2023
@iworks iworks closed this as completed Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant