Drupal 10 : entity queries must specify whether access-checked

Created on 2 January 2024, 6 months ago
Updated 20 February 2024, 4 months ago

Problem/Motivation

After activating "Commerce" for one BEE-activated content, fatal exception is generated:
[Tue Jan 02 22:10:29.965890 2024] [php:notice] [pid 578] [client 192.168.1.57:55302] 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 /home/oturpin/equiresa/web/core/lib/Drupal/Core/Entity/Query/Sql/Query.php line 141, referer: http://klipal/admin/structure/types/manage/piste

Steps to reproduce

Fresh install of drupal 10.2.x-dev + BEE:3.x-dev + commerce:2.x-dev
Activate optional "Enable Payment for booking" -> fatal exception

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇫🇷France oturpin

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

Comments & Activities

Production build 0.69.0 2024