[rt-users] Problems in templates in Rt 4.2.1

Guadagnino Cristiano guadagnino.cristiano at creval.it
Thu Jan 2 11:18:57 EST 2014


This message is related to my previous thread titled "HTML templates in RT 4.2.1".

I changed the subject because I think the problem is unfortunately deeper than I thought at first.

Even with our much-simplified template (attached), we sometimes have stack dumps in the RT log, related to template parsing.
Sometimes the stack dump starts with "[error]: Template parsing error: ...", and this usually does not prevent RT from sending out the email.
Other times the stack dump starts with: "[error]: Scrip Preapre nn died. ..." and this does prevent RT from sending out the email.

I have been unable to track down the offending elements. Every case seems different.
I am somehow convinced it can be tracked down to changes in the way RT shreds HTML, but I have no proof till now.

Here are a couple of stack dumps:

---------------------------------------------------------
[14911] [Thu Jan  2 10:25:43 2014] [error]: Template parsing error: Can't call method "content" on an undefined value at /usr/local/share/perl5/HTML/FormatText/W
ithLinks/AndTables.pm line 217.

Stack:
  [/usr/local/share/perl5/HTML/FormatText/WithLinks/AndTables.pm:217]
  [/usr/local/share/perl5/HTML/FormatText/WithLinks/AndTables.pm:101]
  [/usr/local/share/perl5/HTML/FormatText/WithLinks/AndTables.pm:83]
  [/opt/rt4/sbin/../lib/RT/Interface/Email.pm:1777]
  [/opt/rt4/sbin/../lib/RT/Transaction.pm:348]
  [template:14]
  [/opt/rt4/sbin/../lib/RT/Template.pm:551]
  [/opt/rt4/sbin/../lib/RT/Template.pm:507]
  [/opt/rt4/sbin/../lib/RT/Template.pm:435]
  [/opt/rt4/sbin/../lib/RT/Template.pm:415]
  [/opt/rt4/sbin/../lib/RT/Action/SendEmail.pm:139]
  [/opt/rt4/sbin/../lib/RT/Action/Notify.pm:69]
  [/opt/rt4/sbin/../lib/RT/ScripAction.pm:222]
  [/opt/rt4/sbin/../lib/RT/Scrip.pm:561]
  [/opt/rt4/sbin/../lib/RT/Scrips.pm:358]
  [/opt/rt4/sbin/../lib/RT/Transaction.pm:189]
  [/opt/rt4/sbin/../lib/RT/Record.pm:1626]
  [/opt/rt4/sbin/../lib/RT/Ticket.pm:533]
  [/opt/rt4/sbin/../lib/RT/Interface/Email.pm:1415]
  [/opt/rt4/share/html/REST/1.0/NoAuth/mail-gateway:61] (/opt/rt4/sbin/../lib/RT/Template.pm:546)
---------------------------------------------------------
[22792] [Thu Jan  2 15:29:03 2014] [error]: Scrip Prepare 10 died. - Can't call method "content" on an undefined value at /usr/local/share/perl5/HTML/FormatText/
WithLinks/AndTables.pm line 217.

Stack:
  [/usr/local/share/perl5/HTML/FormatText/WithLinks/AndTables.pm:217]
  [/usr/local/share/perl5/HTML/FormatText/WithLinks/AndTables.pm:101]
  [/usr/local/share/perl5/HTML/FormatText/WithLinks/AndTables.pm:83]
  [/opt/rt4/sbin/../lib/RT/Interface/Email.pm:1777]
  [/opt/rt4/sbin/../lib/RT/Template.pm:666]
  [/opt/rt4/sbin/../lib/RT/Template.pm:421]
  [/opt/rt4/sbin/../lib/RT/Action/SendEmail.pm:139]
  [/opt/rt4/sbin/../lib/RT/Action/Notify.pm:69]
  [/opt/rt4/sbin/../lib/RT/ScripAction.pm:222]
  [/opt/rt4/sbin/../lib/RT/Scrip.pm:561]
  [/opt/rt4/sbin/../lib/RT/Scrips.pm:358]
  [/opt/rt4/sbin/../lib/RT/Scrips.pm:291]
  [/opt/rt4/sbin/../lib/RT/Ticket.pm:2555]
  [/opt/rt4/sbin/../lib/RT/Ticket.pm:2526]
  [/opt/rt4/sbin/../lib/RT/Ticket.pm:2596]
  [/usr/local/share/perl5/HTML/Mason/Request.pm:1295]
  [/opt/rt4/share/html/Ticket/autohandler:66]
  [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:680]
  [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:368]
  [/opt/rt4/share/html/autohandler:53] (/opt/rt4/sbin/../lib/RT/Scrip.pm:564)
---------------------------------------------------------

Anybody seeing this?

Bye
Cris

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20140102/4cb8968c/attachment.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: simple_resolved_template.txt
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20140102/4cb8968c/attachment.txt>


More information about the rt-users mailing list