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

Created on 23 April 2024, 2 months ago
Updated 17 June 2024, 10 days 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.69.0 2024