Code deprecation (may be related to core WP)
-
Hi,
I would like to report a potential small issue in wpforms-lite that I’ve spotted using the very good and useful plugin “Query Monitor”.
This (hidden) error is triggered on every single page of the site (whether it has a contact form on it or not).
Message:
stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated
Location:
wp-includes/functions.wp-styles.php:90
WPForms\ErrorHandler->error_handler()
wp-content/plugins/wpforms-lite/src/ErrorHandler.php:171
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:17Component
Extension : wpforms-lite
I’m unsure if this is caused by wp-includes/functions.wp-styles.php:90; or if wpforms just calls this core WP file which itself would be the cause for the deprecation message.
I just wanted to inform you about it, in case there is anything you can do about it. Whether it is by an update of your plugin, or an update proposal of core functions used by your plugin.
I hope this is useful in some way.
Best regards
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.