[Templates] Exceedingly strange problem
Hann, Brian
Brian.Hann@umb.com
Mon, 23 Sep 2002 10:14:10 -0500
At the current moment, these are the lines I have remove to get it to =
work:
---------------------
</tr>
</table>
</td>
</tr>
</table>
</form>
---------------------
(Minus the --------------------- of course)
If I try to remove up to </table>:
---------------------
</table>
</td>
</tr>
</table>
</form>
---------------------
It fails. As you can see there are no plugin calls there. I AM using a =
plugin once earlier in the template but it works fine in other templates =
and in this one when I remove that HTML. It also does not output to =
STDOUT, it just returns a value. I've also tried removing the plugin =
USE and call and it didn't fix anything.
The same thing happens in IE 5.5 and Mozilla 1.0. Commenting out the =
HTML does not fix it. I've tried removing different variables that I'm =
sending it without effect. A "perl -c" on the compiled template comes =
back with a syntax OK. I'm pretty sure something is bad earlier in the =
template that causes it to fubar later, but I cannot for the life of me =
find it.
Thanks,
Brian
-----Original Message-----
From: darren chamberlain [mailto:dlc@users.sourceforge.net]
Sent: Monday, September 23, 2002 8:37 AM
To: templates@template-toolkit.org
Subject: Re: [Templates] Exceedingly strange problem
* Hann, Brian <Brian.Hann@umb.com> [2002-09-20 16:50]:
> 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.
It sounds like the template is outputting something to STDOUT before the
headers are being printed.
> Now if I delete a certain number of lines from the end of my file, it
> displays. The last lines are just HTML, no directives. The VERY
> strange thing is, the number of lines I have to remove to get it to
> display is not constant. I can remove the last 10 and it will always
> display, if I remove the last 9 sometimes it will display, sometimes
> it won't.
So, what are the last 10 (ish) lines of the template? I would imagine
there's a plugin in there that is printing to STDOUT behind your
script's back, which is what is causing the errors.
(darren)
--=20
Distrust any enterprise that requires new clothes.
-- Henry David Thoreau
_______________________________________________
templates mailing list
templates@template-toolkit.org
http://www.template-toolkit.org/mailman/listinfo/templates