Apache Template content repeating in callstack
Lathan Bidwell <[email protected]> Tue, 13 Jan 2015 15:53:59 -0500
| Newsgroups | gmane.comp.lang.perl.modules.template-toolkit |
|---|---|
| Message-ID | <CAOqPvqgf5YQkzdbza-i024dmaBLQU6RN+XmqUqo3CjV6XUBHeA@mail.gmail.com> |
--===============8278882427704590801==
Content-Type: multipart/alternative; boundary=001a11c3826c722d5f050c8ed2a9
--001a11c3826c722d5f050c8ed2a9
Content-Type: text/plain; charset=UTF-8
I am running into a wierd bug where the Template Toolkit variables are
dirtied from template files that are not being called in the same request.
When I check the callstack, I get this:
Callers: $VAR1 = [
'path/to/real/page',
'path/to/wrapper/file',
'navigation.tt <http://nav.tt/>',
'input text',
'templates/external/gallery_cycle.html',
'input text',
'templates/external/gallery.html',
'input text',
'templates/external/gallery.html',
'input text',
'templates/external/gallery.html',
'input text',
'templates/external/gallery.html',
'input text',
'templates/external/gallery.html',
'input text',
'templates/external/gallery.html',
'input text',
'templates/external/gallery_cycle.html',
'input text',
'templates/external/gallery.html',
'input text',
'templates/external/gallery_cycle.html',
'input text',
'templates/external/gallery.html',
'input text',
'templates/external/gallery_cycle.html',
'input text',
'templates/external/gallery.html',
'input text',
'templates/external/gallery.html',
'input text',
'templates/external/gallery.html',
'input text',
'templates/external/gallery.html',
'input text',
'templates/external/gallery.html',
'templates/external/gallery.html',
'nav.tt', # template that is calling Asset plugin
'Template::Plugin::Asset.pm' # Plugin that i am getting the
callstack from
];
This page's content and variables randomly show up on other pages.
Any idea on where to start debugging? I get a bit lost when delving into
the Template Context object.
We do have a TT cache setup in /tmp/tt/, and I'm curious as to whether
updating the real files could somehow interact with the TT cache to pull
these extra 'input text' into the call stack.
This is happening once every several minutes on my production web servers,
so any help would be appreciated.
Lathan Bidwell
--001a11c3826c722d5f050c8ed2a9
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">I am running into a wierd bug where the Template Toolkit v=
ariables are dirtied from template files that are not being called in the s=
ame request. When I check the callstack, I get this:<div><span style=3D"fon=
t-size:13px">Callers: $VAR1 =3D [</span><br style=3D"font-size:13px"><span =
style=3D"font-size:13px">=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 'path/to/re=
al/page</span><span style=3D"font-size:13px">',</span><br style=3D"font=
-size:13px"><span class=3D"im" style=3D"font-size:13px">=C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 'path/to/wrapper/file',<br>=C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 '<a href=3D"http://nav.tt/" target=3D"_blank">navigation.=
tt</a>',<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 'input text',<br=
></span><span style=3D"font-size:13px">=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 &=
#39;templates/external/gallery_</span><span style=3D"font-size:13px">cycle.=
html',</span><br style=3D"font-size:13px"><div style=3D"font-size:13px"=
><div class=3D"adm"><div id=3D"q_14ae5145e3f1a57c_3" class=3D"h4"><div clas=
s=3D""></div></div></div><div class=3D"im">=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 'input text',<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 'templa=
tes/external/gallery.html',<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 '=
input text',<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 'templates/exter=
nal/gallery.html',<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 'input tex=
t',<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 'templates/external/galle=
ry.html',<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 'input text',<b=
r>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 'templates/external/gallery.html&#=
39;,<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 'input text',<br>=C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 'templates/external/gallery.html',<br>=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 'input text',<br>=C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 'templates/external/gallery.html',<br>=C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 'input text',<br>=C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 'templates/external/gallery_cycle.html',<br>=C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 'input text',<br>=C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 'templates/external/gallery.html',<br>=C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 'input text',<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 'templates/external/gallery_cycle.html',<br>=C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 'input text',<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 'templates/external/gallery.html',<br>=C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 'input text',<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 &=
#39;templates/external/gallery_cycle.html',<br>=C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 'input text',<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 '=
;templates/external/gallery.html',<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 'input text',<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 'templa=
tes/external/gallery.html',<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 '=
input text',<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 'templates/exter=
nal/gallery.html',<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 'input tex=
t',<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 'templates/external/galle=
ry.html',<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 'input text',<b=
r>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 'templates/external/gallery.html&#=
39;,<br></div></div><span style=3D"font-size:13px">=C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 'templates/external/gallery.</span><span style=3D"font-size:=
13px">html',</span><div class=3D"" style=3D"font-size:13px"><div id=3D"=
:2nd" class=3D"" tabindex=3D"0"><span style=3D"color:rgb(80,0,80)">=C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 '</span><a href=3D"http://nav.tt/" target=
=3D"_blank">nav.tt</a><span style=3D"color:rgb(80,0,80)">', # template =
that is calling Asset plugin</span><br></div></div><div class=3D"" style=3D=
"font-size:13px"><div class=3D"im">=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 '=
Template::Plugin::Asset.pm' # Plugin that i am getting the callstack fr=
om<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 ];</div><div class=3D"im"><br></div><div =
class=3D"im">This page's content and variables randomly show up on othe=
r pages.<br></div><div class=3D"im"><br></div><div class=3D"im">Any idea on=
where to start debugging? I get a bit lost when delving into the Template =
Context object.</div><div class=3D"im"><br></div><div class=3D"im">We do ha=
ve a TT cache setup in /tmp/tt/, and I'm curious as to whether updating=
the real files could somehow interact with the TT cache to pull these extr=
a 'input text' into the call stack.<br></div><div class=3D"im"><br>=
</div><div class=3D"im">This is happening once every several minutes on my =
production web servers, so any help would be appreciated.</div><div class=
=3D"im"><br></div><div class=3D"im">Lathan Bidwell</div></div></div></div>
--001a11c3826c722d5f050c8ed2a9--
--===============8278882427704590801==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates
--===============8278882427704590801==--