stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated
-
Hi,
The issue was noticed thanks to Query Monitor plugin. Using it, you will likely be able to see the PHP deprecation upon using Gutenify plugin.
It appears the issue resides in
wp-content/plugins/gutenify/core/inc/class-block-inline-styles.php
that returns a null parameter to a string, which would be deprecated by PHP 8. That is my understanding as a sysadmin, I’m no PHP dev, so a direct look at the error will surely help you better understand the issue.So here is what Query Monitor reveals:
stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated
wp-includes/functions.wp-styles.php:90
stripos()
wp-includes/functions.wp-styles.php:90
wp_add_inline_style()
wp-content/plugins/gutenify/core/inc/class-block-inline-styles.php:34
Gutenify_block_inline_styles::add_inline_styles()
wp-includes/class-wp-hook.php:324
do_action('wp_enqueue_scripts')
wp-includes/script-loader.php:2263
wp_enqueue_scripts()
wp-includes/class-wp-hook.php:324
do_action('wp_head')
wp-includes/general-template.php:3065
wp_head()
wp-includes/template-canvas.php:17
1 Extension : gutenifyI hope this is useful in some way! And I remain available if further details are required to help diagnose and resolve the issue.
Best regards
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.