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

Created on 9 January 2023, over 1 year ago
Updated 12 January 2024, 6 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.0.1
Rate Module version: 3.0.1
PHP: 8.1

Steps to reproduce

Install Drupal 10 site.
install Rate module with composer require 'drupal/rate:^3.0' command.
Go to /admin/structure/rate_widgets
Add rate widget button.
Select the entitie commerce product
Save rate widget.
Go to product page and 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

Fixed

Version

3.0

Component

Code

Created by

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024