• I have these errors coming up on Query Monitor for your plugin:

    strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated

    str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated

    These are in wp-includes/functions.php

    I’ve been advised to uninstall the plugin but prefer not to is there anyway to fix this? I’m using the latest plugin version 1.0.6 with WP version 6.8

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • You could try passing “” instead of null inside of Username Updater’s code, then those string functions would be less whiny.

    An empty string can silence the pair of notices on any administration pages, but the plugin’s Update page would continue to display/log a notice about null in strip_tags(). The 'options.php' string seems to be a better choice (verify that the plugin still works as intended).

    add_submenu_page( 'options.php', __('Update', 'easy_username_updater') , __('Update', 'easy_username_updater') , $allowed_group, 'eup_username_update', 'eup_user_update' );
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Depricated errors’ is closed to new replies.