diff --git a/Classes/Domain/Index/Queue/GarbageRemover/AbstractStrategy.php b/Classes/Domain/Index/Queue/GarbageRemover/AbstractStrategy.php index a11ee0b307..311c2544a6 100644 --- a/Classes/Domain/Index/Queue/GarbageRemover/AbstractStrategy.php +++ b/Classes/Domain/Index/Queue/GarbageRemover/AbstractStrategy.php @@ -111,6 +111,10 @@ protected function deleteIndexDocuments(string $table, int $uid, int $language = try { $site = $indexQueueItem->getSite(); } catch (InvalidArgumentException $e) { + $site = null; + } + + if ($site === null) { $this->queue->deleteItem($indexQueueItem->getType(), $indexQueueItem->getIndexQueueUid()); continue; }