[Templates] Exceedingly strange problem

Simon Wilcox essuu@ourshack.com
Tue, 24 Sep 2002 13:49:56 +0100 (BST)


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 
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.

-- 
"Zaphod old mate, I trust you as far as I could comfortably spit out a
 rat"