Message delete multiple error: Entity queries must explicitly set ...access checked

Created on 8 August 2023, over 1 year ago
Updated 29 September 2023, about 1 year ago

Problem/Motivation

When I try to delete messages, I get this error:

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 144 of /app/web/core/lib/Drupal/Core/Entity/Query/Sql/Query.php).

Steps to reproduce

(With messages already created)
Go to /admin/config/message/message_delete_multiple
Select a message type
Press submit =>
"The website encountered an unexpected error. Please try again later."

Proposed resolution

Added accessCheck(FALSE) to query.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇺🇸United States stephen Verdant

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

Comments & Activities

Production build 0.71.5 2024