disabled users

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
ijn953
Posts: 12
Joined: 15 Oct 2017, 14:24

disabled users

Post by ijn953 »

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
ijn953
Posts: 12
Joined: 15 Oct 2017, 14:24

Re: disabled users

Post by ijn953 »

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
OutBoxFactory.com
Posts: 1
Joined: 31 Dec 2021, 18:06

Re: disabled users

Post by OutBoxFactory.com »

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 );
}
Post Reply