21294 Posts in 5734 Topics by 2602 members
General Questions
SilverStripe Forums » General Questions » PHP Fatal error: Maximum function nesting level of '100' reached
General questions about getting started with SilverStripe that don't fit in any of the categories above.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 3240 Views |
-
PHP Fatal error: Maximum function nesting level of '100' reached

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
-
Re: PHP Fatal error: Maximum function nesting level of '100' reached

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 -
Re: PHP Fatal error: Maximum function nesting level of '100' reached

3 May 2011 at 10:32pm
yes I have such relations ...
-
Re: PHP Fatal error: Maximum function nesting level of '100' reached

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
-
Re: PHP Fatal error: Maximum function nesting level of '100' reached

3 May 2011 at 10:37pm
ok & thx for that infos.
| 3240 Views | ||
|
Page:
1
|
Go to Top |


