VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: ssm971 on November 26, 2021, 22:51:54 PM

Title: constant errors of "Username already exists"
Post by: ssm971 on November 26, 2021, 22:51:54 PM
Joomla! 3.10.3 Stable and VirtueMart 3.8.8 10472

Hello,

I ask for help to repair an error that is constant in the "user registration"... several people are reporting that they are not being able to register due to an error that appears "Username already exists"... how do I fix this error?

I've researched this forum and i couldn't find anything current that can help me! Att. Thank.


Title: Re: constant errors of "Username already exists"
Post by: pinochico on November 27, 2021, 02:02:19 AM
Quotehow do I fix this error?

Ehy do you mean is this error?

Is no error, is features
From J3.8 (I think) in DB table user was added username as unique index.

I'm surprised you don't know this crucial information.
Title: Re: constant errors of "Username already exists"
Post by: jenkinhill on November 27, 2021, 11:31:32 AM
Find the language constant that shows the message "Username already exists" (or where the actual message is) and override it to include "Please use a different username" or words to that effect.
Title: Re: constant errors of "Username already exists"
Post by: Jörgen on November 27, 2021, 13:57:36 PM
It could also be included in the JavaScript File responsible for evaluating the input.

Jörgen @ Kreativ Fotografi
Title: Re: constant errors of "Username already exists"
Post by: ssm971 on November 27, 2021, 14:50:53 PM
Quote from: pinochico on November 27, 2021, 02:02:19 AM
Quotehow do I fix this error?

Ehy do you mean is this error?

Is no error, is features
From J3.8 (I think) in DB table user was added username as unique index.

I'm surprised you don't know this crucial information.

Hello Pinochico,

I may have used the expression "error" in a pejorative way and / or erroneously ... the fact is that I already knew of this change, but the "client" who is making a registration has no obligation to know ... and this is causing a user to leak before they even make a possible purchase.
Title: Re: constant errors of "Username already exists"
Post by: ssm971 on November 27, 2021, 14:59:57 PM
Quote from: jenkinhill on November 27, 2021, 11:31:32 AM
Find the language constant that shows the message "Username already exists" (or where the actual message is) and override it to include "Please use a different username" or words to that effect.


Hello Jenkinhill,

it would be a good option to change in the language constant, but the problem continues, after the user fills in several fields and when it receives this warning "Username already exists", the fields delete and you must fill in again... This is a demotivation for the user.
Title: Re: constant errors of "Username already exists"
Post by: ssm971 on November 27, 2021, 15:04:05 PM
Quote from: Jörgen on November 27, 2021, 13:57:36 PM
It could also be included in the JavaScript File responsible for evaluating the input.

Jörgen @ Kreativ Fotografi

Hello Jörgen,

sorry, but my knowledge in PHP and JavaScript are greatly reduced... I have no idea how and where to insert... the path and code. Thank you.
Title: Re: constant errors of "Username already exists"
Post by: pinochico on November 27, 2021, 15:43:17 PM
Quoteit would be a good option to change in the language constant, but the problem continues, after the user fills in several fields and when it receives this warning "Username already exists", the fields delete and you must fill in again... This is a demotivation for the user.

Not delete, if you right change/fix/develop/setup the VM registration form - with basic skills php and JS

We prepared this - fields are filled after error still nad not deleted, but I don't know how (I have developers in our company) - this solutions we use long time from VM2 (VM is not ready for top e-commerce solutions and need a lot of little fix/change...)

Basic idea I have with edit form in php, but if you need different solutions, then you have to wait for others, maybe these put exactly code :)
Title: Re: constant errors of "Username already exists"
Post by: ssm971 on November 27, 2021, 18:31:21 PM
Quote from: pinochico on November 27, 2021, 15:43:17 PM
Quoteit would be a good option to change in the language constant, but the problem continues, after the user fills in several fields and when it receives this warning "Username already exists", the fields delete and you must fill in again... This is a demotivation for the user.

Not delete, if you right change/fix/develop/setup the VM registration form - with basic skills php and JS

We prepared this - fields are filled after error still nad not deleted, but I don't know how (I have developers in our company) - this solutions we use long time from VM2 (VM is not ready for top e-commerce solutions and need a lot of little fix/change...)

Basic idea I have with edit form in php, but if you need different solutions, then you have to wait for others, maybe these put exactly code :)


Hello Pinochico,

Would you be able to present this change/solution you have and tell you where to hit and indicate the path (folder and file)? Maybe it'll help a lot of people.