On Drupal 10 there is fatal error when opening custom token list /admin/structure/token-custom

The website encountered an unexpected error. Please try again later.

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\Core\Entity\Query\Sql\Query->execute() (Line: 37)
Drupal\token_custom_plus\TokenCustomPlusListBuilder->getEntityIds() (Line: 88)
Drupal\Core\Entity\EntityListBuilder->load() (Line: 241)

This is due to https://www.drupal.org/node/3201242

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

k-l created an issue. See original summary.

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

himanshu_jhaloya’s picture

Assigned: Unassigned » himanshu_jhaloya
Status: Active » Needs review

Created MR. fixed the error. Please review

himanshu_jhaloya’s picture

Assigned: himanshu_jhaloya » Unassigned
yorickdv’s picture

Status: Needs review » Reviewed & tested by the community

Code looks good and patch works for me