Impossible to add new users

Created on 29 September 2021, about 3 years ago
Updated 9 October 2023, about 1 year ago

Problem/Motivation

I have tried to register a new user and received an error message: β€œThe website encountered an unexpected error. Please try again later"

In the report log there is following:
Drupal\Core\Database\InvalidQueryException: Query condition 'profile__field_profile_nick_name.field_profile_nick_name_value IN ()' cannot be empty. in Drupal\Core\Database\Query\Condition->condition() (line 105 of /var/www/html/core/lib/Drupal/Core/Database/Query/Condition.php).

So, looks like enabled "Unique nicknames" option on the "/admin/config/opensocial/profile-fields" page caused a current issue

Steps to reproduce

- Login as Administrator or SM
- Go to "/admin/config/opensocial/profile-fields" and enable "Unique nicknames" option
- Then open "/admin/people/create" page and try to create a new user

Proposed resolution

- Add additional check for new users on validation step

πŸ› Bug report
Status

Needs work

Version

11.3

Component

Profiles

Created by

πŸ‡ΊπŸ‡¦Ukraine SV

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡«πŸ‡·France ohmdesbois

    I'm digging up this issue, because, since the last update, I get the same error when editing a user, even if the unique nickname box is not checked
    The commerce module is not installed, so I have not tried the patch.
    I tried to delete the field, but the result was catastrophic.
    A track ?
    THANKS

Production build 0.71.5 2024