QueryException: Entity queries must explicitly set whether the query should be access checked or not.

Created on 12 June 2023, over 1 year ago
Updated 16 January 2024, 10 months ago

Problem/Motivation

Saving a message template throws an error with message: 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(). in Drupal\Core\Entity\Query\Sql\Query->prepare() (line 141 of /var/www/XXX/core/lib/Drupal/Core/Entity/Query/Sql/Query.php).

Steps to reproduce

Using message_ui, create a new message template on the latest version of Drupal 10, then click "edit" and "save". The site crashes and the log will contain the error message listed above.

๐Ÿ› Bug report
Status

Closed: duplicate

Version

1.4

Component

Code

Created by

๐Ÿ‡น๐Ÿ‡ญThailand AlfTheCat

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

Comments & Activities

Production build 0.71.5 2024