Update 8101 error - entity queries access check

Created on 8 January 2024, 11 months ago
Updated 15 May 2024, 6 months ago

Problem/Motivation

In Drupal 10, you cannot run database updates for this module because the install step has an entity access check error. A simple patch is needed to correct the issue.

Steps to reproduce

  1. Install version 1.2 of the Commerce Coupon Conditions module in Drupal 10. Composer will install normally and no issues are flagged.
  2. Attempt to run database updates (via UI or drush updb). You will get the following error:

    Entity queries must explicitly set whether the query should be access checked or not. See Drupal\Core\Entity\Query\QueryInterface::accessCheck().

Proposed resolution

Apply a patch to add access checks to the two queries present in the upgrade function within the install file.

πŸ› Bug report
Status

Fixed

Version

1.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States tbisciglia

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024