Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

PHP Fatal error: Maximum function nesting level of '100' reached


Go to End


5 Posts   5791 Views

Avatar
danzzz

Community Member, 175 Posts

3 May 2011 at 9:31pm

hi there,

if I add ?flush=all to my URLS it results in:

[Tue May 03 11:26:38 2011] [error] [client xx.xx.xx.xx] PHP Fatal error:  Maximum function nesting level of '100' reached, aborting! in /var/www/domain.com/sapphire/core/model/DataObjectSet.php on line 1041

The stack trace has more than 100 items.

??

thx

Avatar
swaiba

Forum Moderator, 1899 Posts

3 May 2011 at 9:58pm

do you have dataobjects that have a circular relationship?

i.e.
obj1 has_one obj2
obj2 has_many obj3
obj3 has_one obj1

Avatar
danzzz

Community Member, 175 Posts

3 May 2011 at 10:32pm

yes I have such relations ...

Avatar
swaiba

Forum Moderator, 1899 Posts

3 May 2011 at 10:36pm

I'd try removing it (temporarily) and see if that is causing it. I've had trouble with ModelAdmin when the DataObjects are being scaffolded that with relationships like these... in some cases I've just had to hardcoded the odd has_one as TableID and avoid using the $obj->Table(), and instead always do a DataObject::get_by_id

Avatar
danzzz

Community Member, 175 Posts

3 May 2011 at 10:37pm

ok & thx for that infos.