• Resolved Robin Labadie

    (@robin-labadie)


    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:17

    Component

    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]

Viewing 16 replies (of 16 total)
  • Thread Starter Robin Labadie

    (@robin-labadie)

    Thanks @kmacharia

    Glad you liked the analogy!

    Disabling this by default and making it a toggle for “debug mode” would likely be much more optimized than intercepting all the website’s errors into a plugin. That would be one possible better approach.

    (I’m no PHP dev, but I’m a web hosting sysadmin, and my intuition is often accurate!)

    If you could keep me posted with developers’ well informed thoughts about this, that would be lovely!

    Best regards

Viewing 16 replies (of 16 total)
  • You must be logged in to reply to this topic.