Query accessCheck() error when using D10

Created on 28 July 2023, over 1 year ago
Updated 29 July 2023, over 1 year ago

Problem/Motivation

When using the autocomplete field on a D10 site, when the entity form is submitted the following error is reported:

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: 145)
Drupal\synonyms\Plugin\Synonyms\Provider\Field->synonymsFind(Object) (Line: 163)
Drupal\synonyms_autocomplete\SynonymsService\Behavior\AutocompleteService->autocompleteLookup('Something', 'TN7nv2ukYglHIiBGtNQZM1GYCGtqGVXJ2YIWbXx85zk') (Line: 118)
Drupal\synonyms_autocomplete\Element\SynonymsEntityAutocomplete::validateEntityAutocomplete(Array, Object, Array)
call_user_func_array(Array, Array) (Line: 282)

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

2.1

Component

Autocomplete widget (synonyms_autocomplete)

Created by

πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

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

Comments & Activities

Production build 0.71.5 2024