[Templates] Confusing Apache::Template error: reason: file error - error: not found

[prev] [thread] [next] [Date index for 2005/05/13]

From: Paul Sharpe
Subject: [Templates] Confusing Apache::Template error: reason: file error - error: not found
Date: 10:26 on 13 May 2005
What's going on here?

$ cat foo.tt2
[% foo = [0,0] %]
foo.0 = [% foo.0 %]
foo.1 = [% foo.1 %]
[% foo.0 / foo.1 %]

$ tpage foo.tt2
undef error - Illegal division by zero at ./foo.tt2 line 4.

OK, that error makes sense...

$ GET http://localhost/foo/
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>500 Internal Server Error</TITLE>
...

# tail /var/log/apache/error.log

[Fri May 13 10:48:58 2005] [error] access to .../foo.tt2 failed for
127.0.0.1, reason: file error - error: not found

... but that one doesn't.

paul


_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

[Templates] Confusing Apache::Template error: reason: file error - error: not found
Paul Sharpe 10:26 on 13 May 2005

Generated at 07:01 on 17 May 2005 by mariachi v0.52