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

Created on 23 April 2024, 8 months ago
Updated 17 June 2024, 6 months ago

Problem/Motivation

Getting following error: while running drush updatedb -y

 [error]  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.2.5
run drush updatedb -y

Proposed resolution

Added accessCheck to query which is being executed on \Drupal\menu_token\Service\MenuTokenContextManager::getUndiscoveredMenuDefinitions:46

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

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom miteshmap

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