Hi
i'm trying to disable old users (not wanting to delete them yet)
part of the users I can disable and some I get the following message :
APPLICATION ERROR #813
That email is already being used. Please go back and select another one.
Please use the "Back" button in your web browser to return to the previous page. There you can correct whatever problems were identified in this error or select another action. You can also click an option from the menu bar to go directly to a new section.
does someone have an idea what the error and how to fix it? (i have it with more than 10 users)
MantisBT Version 2.9.0
Schema Version 209
PHP Version 7.0.22-0ubuntu0.16.04.1
Database Driver mysqli
Database Version, Description 5.7.20, 5.7.20-0ubuntu0.16.04.1
thanks
disabled users
Moderators: Developer, Contributor
Re: disabled users
I solved it
someone had created a lot of users with different names but with the same email address
so before I try to disable I'm adding a number on the beginning of the email address and i got no problem
thanks
someone had created a lot of users with different names but with the same email address
so before I try to disable I'm adding a number on the beginning of the email address and i got no problem
thanks
-
- Posts: 1
- Joined: 31 Dec 2021, 18:06
Re: disabled users
I found the solution:
In manage_user_update.php replace this
user_ensure_email_unique( $t_email, $f_user_id );
with
if($t_old_email != $t_email){
user_ensure_email_unique( $t_email, $f_user_id );
}
In manage_user_update.php replace this
user_ensure_email_unique( $t_email, $f_user_id );
with
if($t_old_email != $t_email){
user_ensure_email_unique( $t_email, $f_user_id );
}