Forums / General / TemplateCompile=enabled => ..maximum nesting level of 40..

TemplateCompile=enabled => ..maximum nesting level of 40..

Author Message

H-Works Agency

Thursday 21 February 2008 11:26:20 am

Hello,

I have a template problem when i put "TemplateCompile=enabled".

I have this message :

The maximum nesting level of 40 has been reached. The execution is stopped to avoid infinite recursion.

This template is an XML pagelayout fetching current node with "$module_result.node_id" and displaying the result in a xml view.

This technique works perfectly when i am in test mode.

Can someone help me on this ?

Thanx in advance.

EZP is Great

Ɓukasz Serwatka

Thursday 21 February 2008 1:32:45 pm

Hi,

This message come either from eZ Publish or from xdebug PHP extension. You can rise value in template.ini.[ControlSettings].MaxLevel or in php.ini (check xdebug manual for more information).

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Jean-Luc Nguyen

Monday 12 October 2009 8:50:21 am

Hello,

Is it a good practice to do rise this value or is there a way to correct it?

http://www.acidre.com

H-Works Agency

Monday 12 October 2009 9:08:43 am

No you should put debugging on and find what create this error in your templates or in your translations files.

Rgrds

EZP is Great

Gunnstein Lye

Wednesday 09 June 2010 4:03:38 am

If you see this message, double check that it is what you think it is.

If the message really says: "No translation found for message: 'The maximum nesting level of 40 has been reached. The execution is stopped to avoid infinite recursion.', tried the following files: ........"

...then it means only that this string is not translated. You have no recursion problem in this case. The same goes for all other "No translation found" messages. You may see such messages even though the untranslated strings they refer to are not displayed anywhere.