Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Deep recursion in includes...

Quote Reply
Deep recursion in includes...
Has anyone got an idea as to what this error means? I'm assuming it is something to do with having an included file, containing anoter include within it. Am I right? If so, is there any way to get around it? Unsure

Quote:
A fatal error has occured:

GT::Template::Parser (15842): Deep recursion in includes, quiting! at /usr/home/clubsite/usr/local/etc/httpd/cgi-bin/linkssql/admin/GT/Template/Parser.pm line 498.

Please enable debugging in setup for more details.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Deep recursion in includes... In reply to
You should be able to nest 10 includes - if you are doing more than that then you need to rethink what you are doing :)

Code:

++$include_safety <= 10 or return $self->error("DEEPINC", 'FATAL');

Last edited by:

Paul: Feb 13, 2003, 6:11 AM
Quote Reply
Re: [Paul] Deep recursion in includes... In reply to
Yeah, tried upping that '10' to '15' and that didn't fix it. I'm really not sure if its that problem Unsure

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Deep recursion in includes... In reply to
Just wondering...there is a <%endinclude%> tag listed in GT/Templates/Parser.pm ... what exactly is this for? Previous includes have been done with;

<%include file.html%>

Have you ever used this tag? Unsure

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Deep recursion in includes... In reply to
The parser handles this tag automatically.
Quote Reply
Re: [Paul] Deep recursion in includes... In reply to
Duh...fixed it Smile It was cos I managed to loop the include into including itself Tongue Adding the following line of code showed me that it kept trying to install itself :|

Code:
print "Includes: $include_safety - $filename";

Its all working great now Smile

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!