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

UHF-9514: Support users without email #40

Merged
merged 1 commit into from
Aug 5, 2024
Merged

UHF-9514: Support users without email #40

merged 1 commit into from
Aug 5, 2024

Conversation

tuutti
Copy link
Member

@tuutti tuutti commented Aug 5, 2024

user_load_by_mail() dies to a InvalidQueryException if the user's email address is not set:

helfi-etusivu-app  | NOTICE: PHP message: Uncaught PHP Exception Drupal\Core\Database\InvalidQueryException: "Query condition 'users_field_data.mail IN ()' cannot be empty." at /app/public/core/lib/Drupal/Core/Database/Query/Condition.php line 106
helfi-etusivu-app  | 2024/08/05 07:26:28 [error] 50#50: *743 FastCGI sent in stderr: "PHP message: Uncaught PHP Exception Drupal\Core\Database\InvalidQueryException: "Query condition 'users_field_data.mail IN ()' cannot be empty." at /app/public/core/lib/Drupal/Core/Database/Query/Condition.php line 106" while reading response header from upstream, client: 172.29.0.2, server: _, request: "GET /en/user/193/edit HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "helfi-etusivu.docker.so", referrer: "https://helfi-etusivu.docker.so/en/user/193"

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

Successfully merging this pull request may close these issues.

2 participants