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

Created on 26 September 2023, about 1 year ago
Updated 2 April 2024, 8 months ago

Problem/Motivation

Getting following 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 .../core/lib/Drupal/Core/Entity/Query/Sql/Query.php).
Drupal Version: 10.1.4
country_state_field Module version: 2.0.0
PHP: 8.1

Steps to reproduce

Install Drupal 10 site.
install country_state_field module with composer require 'drupal/country_state_field:^2.0' command.
Add this field.
Then you will get "The website encountered an unexpected error. Please try again later."

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇮🇳India Manikandan Era

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

Comments & Activities

Production build 0.71.5 2024