QueryInterface::accessCheck() is logged.

Created on 27 May 2023, almost 2 years ago
Updated 6 June 2023, almost 2 years ago

Problem/Motivation

Error log entry: Failed to to query entity. Exception: Entity queries must explicitly set whether the query should be access checked or not. See Drupal\Core\Entity\Query\QueryInterface::accessCheck().

Steps to reproduce

Drupal: 10.0.9
PHP: 8.1.18
Webserver: Apache/2.4.52 (Ubuntu)

- Follow the Google login url.
- Site returns you to the Drupal login page

This call: https://..../user/login/google/callback?state=xxxx&code=xxxx&scope=email+profile+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile+openid+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email&authuser=0&hd=xxx&prompt=none

returns with HTTP error code 500.
And this error message is logged:
Error log entry: Failed to to query entity. Exception: Entity queries must explicitly set whether the query should be access checked or not. See Drupal\Core\Entity\Query\QueryInterface::accessCheck().

🐛 Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

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.

Production build 0.71.5 2024