[TYPO3-mvc] Nesting level too deep on updating FrontendUser object

Franz Koch typo3.RemoveForMessage at elements-net.de
Thu Jan 7 15:56:42 CET 2010


Hi,

> I´m getting a Fatal error: Nesting level too deep - recursive dependency? in /var/www/dev/typo3/sysext/extbase/Classes/DomainObject/AbstractEntity.php on line 128 in a method updating a FrontendUser object:
>
> class Tx_LalAppfactory_Domain_Model_Administrator extends Tx_Extbase_Domain_Model_FrontendUser {}
>
> As you can see it simply takes the Extbase FrontendUser object. Nothing custom here.
> It seems like the recursion occurs in the usergroup ->  subgroup. For the group the test user belongs to there´s no subgroup set. The user record has only one usergroup relation.
>
> Did anyone have sth like this before?

yep, after I turned xDebug on recently I also got that error. In php.ini 
a max-nesting level of 100 was defined and this got exceeded. In my case 
I used a custom model, so it's not related to the FrontendUser model - 
it's more a general issue of extbase/fluid. I could imagine that fluid 
also does it's part in nesting viewHelpers/subclasses etc.

My temporary workaround was to rise the max nesting level to 300, but 
that's no solution for the general problem I think, because a that high 
nesting means also lot of processing to be done -> slow response.

-- 
kind regards,
Franz Koch


More information about the TYPO3-project-typo3v4mvc mailing list