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.

General Questions /

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

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

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


Reply


5 Posts   4554 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, 1808 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, 1808 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.