Title: Type Error after update
Last modified: November 21, 2022

---

# Type Error after update

 *  Resolved [francescomion](https://wordpress.org/support/users/francescomion/)
 * (@francescomion)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/type-error-after-update/)
 * After the last update on 14/11/2022, I can’t change the members’ roles and it’s
   a big problem for registering on my website.
 * This is the error:
    TypeError: str_replace(): Argument #2 ($replace) must be 
   of type string when argument #1 ($search) is a string
 * I need to solve it as soon as possible, please.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [Amrit Kumar Shrestha](https://wordpress.org/support/users/shresthauzwal/)
 * (@shresthauzwal)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/type-error-after-update/#post-16222196)
 * Hi [@francescomion](https://wordpress.org/support/users/francescomion/),
 * We will release the plugin update today to resolve the issue. Please update the
   plugin and check whether the issue is resolved or not.
 * Regards!
 *  Thread Starter [francescomion](https://wordpress.org/support/users/francescomion/)
 * (@francescomion)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/type-error-after-update/#post-16226466)
 * Hi [@shresthauzwal](https://wordpress.org/support/users/shresthauzwal/), I saw
   the update, but there is still the error!
 * The plugin now is in 2.2.5 version, but if I try to change the role of a member
   I get the same error:
 * TypeError: str_replace(): Argument #2 ($replace) must be of type string when 
   argument #1 ($search) is a string
 * So the new version doesn’t resolve it. Could you resolve it as soon as possible?
 * Please, thanks to the availability
 *  Plugin Support [Amrit Kumar Shrestha](https://wordpress.org/support/users/shresthauzwal/)
 * (@shresthauzwal)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/type-error-after-update/#post-16226687)
 * You have raised the same topic in multiple tickets so we will close this ticket
   and get back to us via another ticket.
 * Regards!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Type Error after update’ is closed to new replies.

 * ![](https://ps.w.org/user-registration/assets/icon-256x256.gif?rev=3284028)
 * [User Registration & Membership - Free & Paid Memberships, Subscriptions, Content Restriction, User Profile, Custom User Registration & Login Builder](https://wordpress.org/plugins/user-registration/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/user-registration/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/user-registration/)
 * [Active Topics](https://wordpress.org/support/plugin/user-registration/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-registration/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-registration/reviews/)

## Tags

 * [member](https://wordpress.org/support/topic-tag/member/)
 * [role](https://wordpress.org/support/topic-tag/role/)
 * [type error](https://wordpress.org/support/topic-tag/type-error/)

 * 3 replies
 * 2 participants
 * Last reply from: [Amrit Kumar Shrestha](https://wordpress.org/support/users/shresthauzwal/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/type-error-after-update/#post-16226687)
 * Status: resolved