AccessCheck Issue

Created on 27 May 2023, over 1 year ago
Updated 3 June 2023, over 1 year ago

Problem/Motivation

When entering an incorrect email that is close to a registered email for example:
Registered email: some.email@email.com
Incorrect Email: someemail@email.com

An AccessCheck issue occurs:

"PHP message: Uncaught PHP Exception Drupal\Core\Entity\Query\QueryException: "Entity queries must explicitly set whether the query should be access checked or not. See Drupal\Core\Entity\Query\QueryInterface::accessCheck()." at core/lib/Drupal/Core/Entity/Query/Sql/Query.php line 141"

referrer: "example.com/user/login"

Steps to reproduce

  • Have Email login option selected.
  • Have Option for Email login only
  • Navigate to user Login Page
  • Enter incorrect email

I have removed my file path from the error message and the referrer url. I'm only experiencing this issue when the Mail Login module is enabled. I believe this error is related to emails that may not be stored in the database. I found just entering a random email that is not stored in a user account yields the same results.

Tested on:
Drupal 10.0.9
Nginx 1.22.0
PHP 8.1.7 & 8.1.12

🐛 Bug report
Status

Fixed

Version

2.7

Component

Code

Created by

🇨🇦Canada _gramur

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

Comments & Activities

Production build 0.71.5 2024