On Mon, Oct 31, 2011 at 11:48:28PM -0700, Allen wrote: > I can't tell which Template has the perl code that threw an error in > my logfile. > > Does "[template:12]" below refer to the template with a database id of > #12, like > > http://rt/Admin/Global/Template.html?Queue=0&Template=12 > > Do I have to hunt through all my templates looking at line 12? Where > do the lines in templates start? The first line including mail > headers? Or the first line of perl code? > > Here is the log, how do I tell which template has the error?
There should be more log before that, although you may need to turn up your log level. It'll tell you what Scrips it is processing and once you know the Scrip Id you can work out the Template id. -kevin > [Tue Nov 1 05:49:08 2011] [error]: Template parsing error: Can't call > method "Id" on an undefined value at template line 12. > Stack: [template:12] > [/usr/share/request-tracker4/lib/RT/Template.pm:454] > [/usr/share/request-tracker4/lib/RT/Template.pm:410] > [/usr/share/request-tracker4/lib/RT/Template.pm:339] > [/usr/share/request-tracker4/lib/RT/Template.pm:319] > [/usr/share/request-tracker4/lib/RT/Action/SendEmail.pm:154] > [/usr/share/request-tracker4/lib/RT/Action/Autoreply.pm:66] > [/usr/share/request-tracker4/lib/RT/ScripAction.pm:226] > [/usr/share/request-tracker4/lib/RT/Scrip.pm:448] > [/usr/share/request-tracker4/lib/RT/Scrips.pm:234] > [/usr/share/request-tracker4/lib/RT/Transaction.pm:179] > [/usr/share/request-tracker4/lib/RT/Record.pm:1447] > [/usr/share/request-tracker4/lib/RT/Ticket.pm:669] > [/usr/share/request-tracker4/lib/RT/Interface/Email.pm:1496] > [/usr/share/request-tracker4/html/REST/1.0/NoAuth/mail-gateway:61] > (/usr/share/request-tracker4/lib/RT/Template.pm:449) > -------- > RT Training Sessions (http://bestpractical.com/services/training.html) > * Barcelona, Spain November 28 & 29, 2011
pgpKtTB3xuNiW.pgp
Description: PGP signature
-------- RT Training Sessions (http://bestpractical.com/services/training.html) * Barcelona, Spain November 28 & 29, 2011
