Re: debugging

Lathan Bidwell <[email protected]> Thu, 10 Dec 2015 12:44:02 -0500
Newsgroups gmane.comp.lang.perl.modules.template-toolkit
Message-ID <CAOqPvqjkYcc54R==9q_rF_QdgpF=mdFQuchErz1HqZvx-cOo3Q@mail.gmail.com>
--===============9195788920760227984==
Content-Type: multipart/alternative; boundary=047d7b5d975ba53c6a05268ec04d

--047d7b5d975ba53c6a05268ec04d
Content-Type: text/plain; charset=UTF-8

Is this related to TT's strict?

http://template-toolkit.org/docs/manual/Config.html#section_STRICT



*Lathan Bidwell*Web Programmer
Division of Integrated Marketing & Communication
Andrews University

269-471-6313
*office*www.andrews.edu

"Seek Knowledge.  Affirm Faith.  Change the World."


On Thu, Dec 10, 2015 at 12:07 PM, Dave Howorth <dhoworth-fDajt2Yx3S8pY9vWkoisglpr/1R2p/[email protected]>
wrote:

> I'm sure I've forgotten something simple about how to debug templates.
>
> I have DEBUG_ALL on and I'm seeing this message:
>
>
> keyword-index: Template undef error - id is undefined
>
>
> keyword-index.tt is a template but it doesn't have any variable or
> component of a variable called id
>
>
> Neither do I see how to connect the error messages with any of the debug
> output above it, which is a bunch of lines similar to the last pair:
>
>
> [Template::Context] filter(lower, [ ]<no alias>)
> [Template::Filters] fetch(lower, <no args>,
> Template::Context=HASH(0xe614920))
>
>
> Any thoughts on how to identify my error gratefully received.
>
> Cheers, Dave
>
> _______________________________________________
> templates mailing list
> [email protected]
> http://mail.template-toolkit.org/mailman/listinfo/templates
>
>
> --
> BEGIN-ANTISPAM-VOTING-LINKS
> ------------------------------------------------------
>
> NOTE: This message was trained as non-spam.  If this is wrong,
> please correct the training as soon as possible.
>
> Teach CanIt if this mail (ID 09PPR83pJ) is spam:
> Spam:
> http://www.andrews.edu/spam/b.php?i=09PPR83pJ&m=1e3b50edf8e1&c=s
> Not spam:
> http://www.andrews.edu/spam/b.php?i=09PPR83pJ&m=1e3b50edf8e1&c=n
> Forget vote:
> http://www.andrews.edu/spam/b.php?i=09PPR83pJ&m=1e3b50edf8e1&c=f
> Fraud/Phish:
> http://www.andrews.edu/spam/b.php?i=09PPR83pJ&m=1e3b50edf8e1&c=p
> ------------------------------------------------------
> END-ANTISPAM-VOTING-LINKS
>
>

--047d7b5d975ba53c6a05268ec04d
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Is this related to TT&#39;s strict?<div><br></div><div><a =
href=3D"http://template-toolkit.org/docs/manual/Config.html#section_STRICT"=
>http://template-toolkit.org/docs/manual/Config.html#section_STRICT</a><br>=
</div></div><div class=3D"gmail_extra"><br clear=3D"all"><div><div class=3D=
"gmail_signature"><div dir=3D"ltr"><div><div dir=3D"ltr"><b style=3D"color:=
rgb(0,0,0);font-family:Calibri,sans-serif;font-size:14px"><div><br></div><d=
iv style=3D"font-family:Verdana,Helvetica,Arial;font-size:9pt">Lathan Bidwe=
ll</div><br></b><font style=3D"color:rgb(0,0,0);font-family:Verdana,Helveti=
ca,Arial;font-size:x-small"><span style=3D"font-size:8pt">Web Programmer<sp=
an><br>Division of Integrated Marketing &amp; Communication<br>Andrews Univ=
ersity<br><br></span><span><span title=3D"Call with Google Voice">269-471-6=
313</span>=C2=A0=C2=A0</span><b>office<br></b><span><a href=3D"http://www.a=
ndrews.edu/" style=3D"color:rgb(17,85,204)" target=3D"_blank">www.andrews.e=
du</a><br><br>&quot;Seek Knowledge.=C2=A0 Affirm Faith.=C2=A0 Change the Wo=
rld.&quot;</span></span></font><br><div><br></div></div></div></div></div><=
/div>
<br><div class=3D"gmail_quote">On Thu, Dec 10, 2015 at 12:07 PM, Dave Howor=
th <span dir=3D"ltr">&lt;<a href=3D"mailto:dhoworth-fDajt2Yx3S8pY9vWkoisglpr/1R2p/[email protected]" targ=
et=3D"_blank">dhoworth-fDajt2Yx3S8pY9vWkoisglpr/1R2p/[email protected]</a>&gt;</span> wrote:<br><blockquo=
te class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc so=
lid;padding-left:1ex">I&#39;m sure I&#39;ve forgotten something simple abou=
t how to debug templates.<br>
<br>
I have DEBUG_ALL on and I&#39;m seeing this message:<br>
<br>
<br>
keyword-index: Template undef error - id is undefined<br>
<br>
<br>
<a href=3D"http://keyword-index.tt" rel=3D"noreferrer" target=3D"_blank">ke=
yword-index.tt</a> is a template but it doesn&#39;t have any variable or<br=
>
component of a variable called id<br>
<br>
<br>
Neither do I see how to connect the error messages with any of the debug<br=
>
output above it, which is a bunch of lines similar to the last pair:<br>
<br>
<br>
[Template::Context] filter(lower, [ ]&lt;no alias&gt;)<br>
[Template::Filters] fetch(lower, &lt;no args&gt;,<br>
Template::Context=3DHASH(0xe614920))<br>
<br>
<br>
Any thoughts on how to identify my error gratefully received.<br>
<br>
Cheers, Dave<br>
<br>
_______________________________________________<br>
templates mailing list<br>
<a href=3D"mailto:[email protected]">templates@template-toolki=
t.org</a><br>
<a href=3D"http://mail.template-toolkit.org/mailman/listinfo/templates" rel=
=3D"noreferrer" target=3D"_blank">http://mail.template-toolkit.org/mailman/=
listinfo/templates</a><br>
<br>
<br>
--<br>
BEGIN-ANTISPAM-VOTING-LINKS<br>
------------------------------------------------------<br>
<br>
NOTE: This message was trained as non-spam.=C2=A0 If this is wrong,<br>
please correct the training as soon as possible.<br>
<br>
Teach CanIt if this mail (ID 09PPR83pJ) is spam:<br>
Spam:=C2=A0 =C2=A0 =C2=A0 =C2=A0 <a href=3D"http://www.andrews.edu/spam/b.p=
hp?i=3D09PPR83pJ&amp;m=3D1e3b50edf8e1&amp;c=3Ds" rel=3D"noreferrer" target=
=3D"_blank">http://www.andrews.edu/spam/b.php?i=3D09PPR83pJ&amp;m=3D1e3b50e=
df8e1&amp;c=3Ds</a><br>
Not spam:=C2=A0 =C2=A0 <a href=3D"http://www.andrews.edu/spam/b.php?i=3D09P=
PR83pJ&amp;m=3D1e3b50edf8e1&amp;c=3Dn" rel=3D"noreferrer" target=3D"_blank"=
>http://www.andrews.edu/spam/b.php?i=3D09PPR83pJ&amp;m=3D1e3b50edf8e1&amp;c=
=3Dn</a><br>
Forget vote: <a href=3D"http://www.andrews.edu/spam/b.php?i=3D09PPR83pJ&amp=
;m=3D1e3b50edf8e1&amp;c=3Df
Fraud/Phish" rel=3D"noreferrer" target=3D"_blank">http://www.andrews.edu/sp=
am/b.php?i=3D09PPR83pJ&amp;m=3D1e3b50edf8e1&amp;c=3Df<br>
Fraud/Phish</a>: <a href=3D"http://www.andrews.edu/spam/b.php?i=3D09PPR83pJ=
&amp;m=3D1e3b50edf8e1&amp;c=3Dp" rel=3D"noreferrer" target=3D"_blank">http:=
//www.andrews.edu/spam/b.php?i=3D09PPR83pJ&amp;m=3D1e3b50edf8e1&amp;c=3Dp</=
a><br>
------------------------------------------------------<br>
END-ANTISPAM-VOTING-LINKS<br>
<br>
</blockquote></div><br></div>

--047d7b5d975ba53c6a05268ec04d--


--===============9195788920760227984==
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

--===============9195788920760227984==--