1 Troubleshooting TPAC errors
2 ---------------------------
4 If there is a problem such as a TT syntax error, it generally shows up as an
5 ugly server failure page. If you check the Apache error logs, you will probably
6 find some solid clues about the reason for the failure. For example, in the
7 following example, the error message identifies the file in which the problem
8 occurred as well as the relevant line numbers.
10 Example error message in Apache error logs:
13 bash# grep "template error" /var/log/apache2/error_log
14 [Tue Dec 06 02:12:09 2011] [warn] [client 127.0.0.1] egweb: template error:
15 file error - parse error - opac/parts/record/summary.tt2 line 112-121:
16 unexpected token (!=)\n [% last_cn = 0;\n FOR copy_info IN
17 ctx.copies;\n callnum = copy_info.call_number_label;\n