Title: BUG warning
Last modified: October 2, 2017

---

# BUG warning

 *  [oanhtran1804](https://wordpress.org/support/users/oanhtran1804/)
 * (@oanhtran1804)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/bug-warning/)
 * Hi,
    I created user account in admin manager. username@ ==> The correct should
   be : ERROR: This username is invalid because it uses illegal characters. Please
   enter a valid username.
 * BUT it come with ALL warning:
    ERROR: This username is invalid because it uses
   illegal characters. Please enter a valid username. ERROR: This username is already
   registered. Please choose another one. ERROR: This email is already registered,
   please choose another one.
 * Please fix it.
    Thanks

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

 *  Plugin Author [Benaceur](https://wordpress.org/support/users/benaceur/)
 * (@benaceur)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/bug-warning/#post-9549544)
 * what do you mean by: “in admin manager”?
    and your site is single or multisite?
 *  Thread Starter [oanhtran1804](https://wordpress.org/support/users/oanhtran1804/)
 * (@oanhtran1804)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/bug-warning/#post-9549846)
 * Not multi side. I used created user/add new user in admin as normal. Nothing 
   special
 *  Plugin Author [Benaceur](https://wordpress.org/support/users/benaceur/)
 * (@benaceur)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/bug-warning/#post-9550178)
 * you can have a conflict with another plugin or code because I do not have this
   problem
 *  Plugin Author [Benaceur](https://wordpress.org/support/users/benaceur/)
 * (@benaceur)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/bug-warning/#post-9551148)
 * The restriction is disabled for users who have the capability to add new users(
   create_users)
 *  Thread Starter [oanhtran1804](https://wordpress.org/support/users/oanhtran1804/)
 * (@oanhtran1804)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/bug-warning/#post-9551626)
 * Ok thank you for respond. I will working to more to see what is going on.
 *  Plugin Author [Benaceur](https://wordpress.org/support/users/benaceur/)
 * (@benaceur)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/bug-warning/#post-9555229)
 * yes you are right, there is a problem but not in the plugin, it is in the wordpress
   in admin (backend), for example you have an existing “pmp” name, if you add a
   character for example like ca “/ pmp” you will have two error messages:
 *     ```
       ERROR: This username is invalid because it uses illegal characters. Please enter a valid username.
       ERROR: This username is already registered. Please choose another one.
       ```
   
 * even if you disable the plugin the mesages appear.
    in the meantime you have 
   two temporary solutions: 1- add the user from the frontend (wp-login.php?action
   =register). 2- edit the file (wp-admin \ includes \ user.php) and replace this
   line: `$user->user_login = sanitize_user($_POST['user_login'], true);` by: `$
   user->user_login = $_POST['user_login'];`
 * **note**:this is not a serious problem.
    -  This reply was modified 8 years, 8 months ago by [Benaceur](https://wordpress.org/support/users/benaceur/).
 *  Thread Starter [oanhtran1804](https://wordpress.org/support/users/oanhtran1804/)
 * (@oanhtran1804)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/bug-warning/#post-9555654)
 * Thank you i will working on it.

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

The topic ‘BUG warning’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/restrict-usernames-emails-characters_29ac61.
   svg)
 * [Restrict Usernames Emails Characters](https://wordpress.org/plugins/restrict-usernames-emails-characters/)
 * [Support Threads](https://wordpress.org/support/plugin/restrict-usernames-emails-characters/)
 * [Active Topics](https://wordpress.org/support/plugin/restrict-usernames-emails-characters/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/restrict-usernames-emails-characters/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/restrict-usernames-emails-characters/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [oanhtran1804](https://wordpress.org/support/users/oanhtran1804/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/bug-warning/#post-9555654)
 * Status: not resolved