Issue Bug Closed

#67209Calling InstallTools ClearCacheService->clearAll() from CLI leads to php fatal

Daniel Goerz 05/30/15, 15:28 updated 06/21/15, 23:52

Description

I just stumbled over an issue with calling clearAll() in \TYPO3\CMS\Install\Service\ClearCacheService from CLI.

I created a litte Extension that you can use to reproduce this on github: https://github.com/ervaude/bug_reproduce

Basically it adds an CommandController that calls the mentioned function. If you install the extension and run the cli command, you will be able to reproduce this error (at least I was):

./typo3/cli_dispatch.phpsh extbase cacheapi:clearallcaches
PHP Fatal error:  Nesting level too deep - recursive dependency? in .../typo3/sysext/extbase/Classes/SignalSlot/Dispatcher.php on line 94

I debugged var_dump($slotMethodName) all the Slots that were called before the fatal to get closer to the problem, but I failed to find a solution. Anyway here is the debug output:

./typo3/cli_dispatch.phpsh extbase cacheapi:clearallcaches
string(27) "addUserPermissionsToStorage"
string(21) "scanAvailablePackages"
string(20) "removeFromRepository"
string(32) "cleanupProcessedFilesPostFileAdd"
string(36) "cleanupProcessedFilesPostFileReplace"
string(22) "buildStaticMappingFile"
string(22) "buildStaticMappingFile"
string(22) "buildSpriteHtmlIconTag"
string(22) "buildSpriteIconClasses"
string(59) "addCachingFrameworkRequiredDatabaseSchemaToTablesDefinition"
string(43) "addCategoryDatabaseSchemaToTablesDefinition"
string(21) "scanAvailablePackages"
string(59) "addCachingFrameworkRequiredDatabaseSchemaToTablesDefinition"
string(52) "addExtensionCategoryDatabaseSchemaToTablesDefinition"
string(36) "addUserPermissionsToCategoryTreeData"
string(14) "processActions"
string(13) "appendMessage"
string(27) "addUserPermissionsToStorage"
string(21) "scanAvailablePackages"
string(20) "removeFromRepository"
string(32) "cleanupProcessedFilesPostFileAdd"
string(36) "cleanupProcessedFilesPostFileReplace"
string(22) "buildStaticMappingFile"
PHP Fatal error:  Nesting level too deep - recursive dependency? in ...typo3/sysext/extbase/Classes/SignalSlot/Dispatcher.php on line 95

This fatal does not occure on 6.2.12!

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.