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

Created on 8 May 2023, about 1 year ago

Describe your bug or feature request.

I am trying to setup commerce registration module. After placing an order when I went to "admin/commerce/orders", I get the following error "The website encountered an unexpected error. Please try again later.". The log shows the details of the error.

[Mon May 08 11:16:16.105293 2023] [php:notice] [pid 7609] [client 127.0.0.1:50934] Uncaught PHP Exception 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()." at /home/ravisagar/myfiles/projects/sparxsys.local/public_html/web/core/lib/Drupal/Core/Entity/Query/Sql/Query.php line 141, referer: http://www.sparxsys.local/admin/commerce/orders

If a bug, provide steps to reproduce it from a clean install.

1. Placing an order on the product variation for commerce registration
2. Go to "admin/commerce/orders"

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇬🇧United Kingdom ravisagar

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

Comments & Activities

Production build 0.69.0 2024