Title: Depricated errors
Last modified: April 16, 2025

---

# Depricated errors

 *  [mlisa1](https://wordpress.org/support/users/mlisa1/)
 * (@mlisa1)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/depricated-errors/)
 * 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)

 *  [zyphlar](https://wordpress.org/support/users/zyphlar/)
 * (@zyphlar)
 * [1 year ago](https://wordpress.org/support/topic/depricated-errors/#post-18453574)
 * You could try passing “” instead of null inside of Username Updater’s code, then
   those string functions would be less whiny.
 *  [Stephen Bernhardt](https://wordpress.org/support/users/sabernhardt/)
 * (@sabernhardt)
 * [1 year ago](https://wordpress.org/support/topic/depricated-errors/#post-18453898)
 * 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**).
 *     ```wp-block-code
       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.

 * ![](https://s.w.org/plugins/geopattern-icon/username-updater.svg)
 * [Easy Username Updater](https://wordpress.org/plugins/username-updater/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/username-updater/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/username-updater/)
 * [Active Topics](https://wordpress.org/support/plugin/username-updater/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/username-updater/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/username-updater/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Stephen Bernhardt](https://wordpress.org/support/users/sabernhardt/)
 * Last activity: [1 year ago](https://wordpress.org/support/topic/depricated-errors/#post-18453898)
 * Status: not resolved