PHP Fatal Error | Cron execution Entity queries must explicitly set whether the query should be access checked or not

Created on 8 December 2023, 12 months ago
Updated 1 August 2024, 4 months ago

Problem/Motivation

Getting following PHP Fatal Error with Drupal 10.

When executing cron.

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

Install Drupal 10.
Install and configure recently_read module.
Execute cron

Proposed resolution

https://www.drupal.org/node/3201242

🐛 Bug report
Status

Closed: duplicate

Version

1.3

Component

Code

Created by

🇬🇧United Kingdom j_edery

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024