By Philippe on Wednesday, 11 March 2020
Posted in General
Likes 0
Views 409
Votes 0
Hello,

When I last updated Joomla 3.9.16, I got an error (see in attachments).
I tried to fix the problem, using the Joomla fix Database tool. But here again I get an error:
1062 Duplicate entry 'matissou' for key 'idx_username'

By deleting this user, the following user is affected.

Thank you for helping me
Philippe
I did I accidentally deleted this user account on your test site "matissou" but that is not this user account issue actually.

After consult with our developer regarding this, the reason why you hitting that error during update your site Joomla is because your Joomla user table has duplicate username, you can run this following SQL query to see which account has duplicate username, it shouldn't have this happen.


select username from jasm1_users
group by username having count(username) > 1;



select * from jasm1_users where username = 'sandrine';


So you have to see which user account is the real one, either you delete it or update another username to different name.

After you done it, then you have to execute this SQL query because this is Joomla latest version trying to execute index all of your existing user under #__users table.


ALTER TABLE `jasm1_users` ADD UNIQUE INDEX `idx_username` (`username`);
·
Wednesday, 11 March 2020 10:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you very much Arlex.
The problem is now fixed.

Philippe
·
Wednesday, 11 March 2020 17:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You are most welcome. Glad to hear that your issue has been resolved now.

Just for your information, I have locked and marked this thread as resolved to avoid confusions in the future. Please start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiries.

Thanks for understanding.
·
Wednesday, 11 March 2020 17:51
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post