PHP Fatal Error | Drupal\Core\Entity\Query\QueryException: Entity queries must explicitly set whether the query should be access checked or not

Created on 23 May 2023, about 1 year ago
Updated 8 December 2023, 7 months ago

Problem/Motivation

Getting following PHP Fatal Error with Drupal 10.

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/html/core/lib/Drupal/Core/Entity/Query/Sql/Query.php).

Steps to reproduce

  1. Install Drupal 10.
  2. Install and configure recently_read module.
  3. Create and view a node.

Proposed resolution

Access checking must be explicitly specified on content entity queries โ†’

๐Ÿ› Bug report
Status

RTBC

Version

1.0

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia samit.310@gmail.com

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024