- Issue created by @bronismateusz
I also have this problem, but it doesn't seem limited to one module.
Every time I try to delete something, it occurs (deleting a node, taxonomy term, menu item, ...). So I would think it's a core issue, although in this post ( https://www.drupal.org/project/drupal/issues/3318457 💬 QueryException: Entity queries must explicitly set whether the query should be access checked or not Closed: works as designed ) it is explicitly said that's not the case.- 🇬🇧United Kingdom darren.fisher
Also experiencing this issue with Drupal 10, PHP 8.2. Thumbnails are not generating and trying to visit the refresh UI results in:
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\QueryAggregate->prepare() (Line: 25) Drupal\Core\Entity\Query\Sql\QueryAggregate->execute() (Line: 54) Drupal\media_thumbnails\Batch\RefreshBatch::count() (Line: 33) Drupal\media_thumbnails\Form\MediaThumbnailRefreshForm->getDescription() (Line: 45) Drupal\Core\Form\ConfirmFormBase->buildForm(Array, Object) call_user_func_array(Array, Array) (Line: 534) Drupal\Core\Form\FormBuilder->retrieveForm('media_thumbnails_refresh_form', Object) (Line: 281) Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73) Drupal\Core\Controller\FormController->getContentResult(Object, Object) call_user_func_array(Array, Array) (Line: 123) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 580) Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 121) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97) Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 163) Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 74) Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58) Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48) Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106) Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85) Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48) Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51) Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 51) Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 686) Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
- Assigned to drubb
- Status changed to Needs review
over 1 year ago 4:06pm 28 March 2023 - 🇩🇪Germany drubb Sindelfingen
I've just published a new dev version that should fix the problem. Please try it out!
- Status changed to RTBC
over 1 year ago 9:54am 6 July 2023 Tested and seems to work for me. It'd be nice to tag a new release for it.
- Status changed to Fixed
over 1 year ago 1:23pm 14 September 2023 Automatically closed - issue fixed for 2 weeks with no activity.