[Templates] Exceedingly strange problem
Hann, Brian
Brian.Hann@umb.com
Tue, 24 Sep 2002 09:27:46 -0500
Yes, I have code in there to catch it if processing the template dies, =
and that works correctly. This one is just not outputting any data.
Brian
-----Original Message-----
From: Simon Wilcox [mailto:essuu@ourshack.com]
Sent: Tuesday, September 24, 2002 7:50 AM
To: Hann, Brian
Cc: templates@template-toolkit.org
Subject: Re: [Templates] Exceedingly strange problem
On Fri, 20 Sep 2002, Hann, Brian wrote:
> For some reason, in the template I am trying to display, sometimes I =
get
> nothing, no header or text so I get the 500 error and the "premature =
end
> of script headers" line in my error log.
I've seen this when the template processing fails and I haven't =
explicitly=20
caught it (only the once of course ;).
Make sure you have something to catch it, from the manual :
$tt->process('letters/overdrawn', $vars) || die $tt->error(), "\n";
HTH,
Simon.
--=20
"Zaphod old mate, I trust you as far as I could comfortably spit out a
rat"
=20