Problem/Motivation

I have this error in my code.

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

Drupal\Core\Entity\EntityStorageException: 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\Sql\SqlContentEntityStorage->save() (line 817 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).

From stacktrace I find error come from this module.

Proposed resolution

Follow https://www.drupal.org/node/3201242 steps

Remaining tasks

Find all entityQuery and add accessCheck(TRUE)

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

vanilla-bear created an issue. See original summary.

yazanmajadba’s picture

Issue summary: View changes
yazanmajadba’s picture

Status: Active » Reviewed & tested by the community

tested and it's working

mfrosch made their first commit to this issue’s fork.

mfrosch’s picture

Status: Reviewed & tested by the community » Fixed

Released in stable.
Thx for your support!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.