Details
-
Sub-task
-
Resolution: Duplicate
-
Critical
-
None
-
2015.05, 5.4.7
-
None
Description
When removing content I get the exception "Could not find 'Content' with identifier '[ID]'". The problem seems to be that SignalSlot/ContentService.php deleteContent() first deletes the content, and then emits a DeleteContentSignal:
https://github.com/ezsystems/ezpublish-kernel/blob/3ab82f6adc9441b2ccf11bd21c00509f423d7c28/eZ/Publish/Core/SignalSlot/ContentService.php#L289
Later on, when this signal is received, HTTP cache is purged, and in the process ContentService::loadContentInfo() is called:
https://github.com/ezsystems/ezpublish-kernel/blob/3ab82f6adc9441b2ccf11bd21c00509f423d7c28/eZ/Publish/Core/MVC/Symfony/Cache/Http/InstantCachePurger.php#L69
But at this point the content no longer exists.