Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drupal\Core\Database\IntegrityConstraintViolationException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'צביה -en' for key 'user__name #149

Open
morovinger opened this issue Jun 1, 2024 · 2 comments

Comments

@morovinger
Copy link

morovinger commented Jun 1, 2024

Sometimes getUidByName in GigyaController.php returns empty array even though the name exists
This happens on regular basis if pre-gigya users exist in db
i suggest use user_load_by_name() as it tends to work more stability

@shaharzillber
Copy link
Collaborator

Hey,

Thank you for your message. Just to ensure security, we can't utilize user_load_by_name(). Have you encountered any specific cases where you received an empty array when you expected data to be present?

@Ynhockey
Copy link
Collaborator

Ynhockey commented Aug 5, 2024

Hi @morovinger It is necessary that the users are synchronized between Drupal and Gigya upon initial install. If your Drupal install has non-Gigya users that need to login with Gigya, they should be imported into Gigya. There is a system for quick mass import if you require – it's possible to open a support ticket and get help with this.

Does the issue also happen with any new users?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants