From 02293ce1ca64fb1a57bcf0cfd51d56be9f8baeeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elias=20H=C3=A4u=C3=9Fler?= Date: Tue, 29 Aug 2023 08:54:29 +0200 Subject: [PATCH] [BUGFIX] Delete index documents without available site Resolves: #3769 Releases: main, 11.5 --- .../Domain/Index/Queue/GarbageRemover/AbstractStrategy.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Classes/Domain/Index/Queue/GarbageRemover/AbstractStrategy.php b/Classes/Domain/Index/Queue/GarbageRemover/AbstractStrategy.php index d27984bed8..d91c7a7421 100644 --- a/Classes/Domain/Index/Queue/GarbageRemover/AbstractStrategy.php +++ b/Classes/Domain/Index/Queue/GarbageRemover/AbstractStrategy.php @@ -95,6 +95,10 @@ protected function deleteIndexDocuments(string $table, int $uid, int $language = try { $site = $indexQueueItem->getSite(); } catch (InvalidArgumentException) { + $site = null; + } + + if ($site === null) { $this->queue->deleteItem($indexQueueItem->getType(), $indexQueueItem->getIndexQueueUid()); continue; }