Project

General

Profile

Actions

Bug #67209

closed

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

Added by Daniel Goerz almost 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2015-05-30
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.5
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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!

Actions

Also available in: Atom PDF