Exception when adding licensed product to the cart

Created on 4 April 2023, over 1 year ago
Updated 21 May 2023, over 1 year ago

Problem/Motivation

After starting with a fresh install of Drupal 10.0.7 and Commerce License, I created a store with one product successfully following the path on the README. This worked fine. But when I tried to test it by buying a product and adding it to the cart, it generated an 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(). in Drupal\Core\Entity\Query\Sql\Query->prepare() (line 141 of /var/www/html/com7/web/core/lib/Drupal/Core/Entity/Query/Sql/Query.php).

Steps to reproduce

Start with a clean install and follow these instructions for "products that grant licenses that expire:"

https://git.drupalcode.org/project/commerce_license/-/blob/8.x-2.x/READM...

If there's anything I can check, let me know.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bogdog400

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

Comments & Activities

Production build 0.71.5 2024