• 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

    (@benaceur)

    what do you mean by: “in admin manager”?
    and your site is single or multisite?

    Thread Starter oanhtran1804

    (@oanhtran1804)

    Not multi side. I used created user/add new user in admin as normal. Nothing special

    Plugin Author Benaceur

    (@benaceur)

    you can have a conflict with another plugin or code because I do not have this problem

    Plugin Author Benaceur

    (@benaceur)

    The restriction is disabled for users who have the capability to add new users (create_users)

    Thread Starter oanhtran1804

    (@oanhtran1804)

    Ok thank you for respond. I will working to more to see what is going on.

    Plugin Author Benaceur

    (@benaceur)

    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 7 years, 1 month ago by Benaceur.
    Thread Starter oanhtran1804

    (@oanhtran1804)

    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.