Path Auto Alias List Error - Entity queries must explicitly set whether the query should be access checked or not

Created on 29 April 2023, about 1 year ago
Updated 30 April 2023, about 1 year ago

Problem/Motivation

Not able to access the alias list in admin/config/search/path

Steps to reproduce

Update from drupal 9 to drupal 10.

Proposed resolution

Unknown.

Remaining tasks

Figure out what this means or provide hint where to look for solutions:

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: 34)
Drupal\language_neutral_aliases\NeutralPathAliasListBuilder->getEntityIds() (Line: 86)
Drupal\Core\Entity\EntityListBuilder->load() (Line: 218)
Drupal\Core\Entity\EntityListBuilder->render() (Line: 121)
Drupal\path\PathAliasListBuilder->render() (Line: 23)
Drupal\Core\Entity\Controller\EntityListController->listing()
call_user_func_array() (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 163)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 74)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 58)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 686)
Drupal\Core\DrupalKernel->handle() (Line: 19)

This error actually occurs no matter if pathauto is enabled or not.
Drupal 10.0.8

πŸ› Bug report
Status

Closed: works as designed

Version

1.11

Component

Code

Created by

πŸ‡©πŸ‡°Denmark grn

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

Comments & Activities

Production build 0.69.0 2024