<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
This message is related to my previous thread titled "HTML templates in RT 4.2.1".<br>
<br>
I changed the subject because I think the problem is unfortunately deeper than I thought at first.<br>
<br>
Even with our much-simplified template (attached), we sometimes have stack dumps in the RT log, related to template parsing.
<br>
Sometimes the stack dump starts with "[error]: Template parsing error: ...", and this usually does not prevent RT from sending out the email.<br>
Other times the stack dump starts with: "[error]: Scrip Preapre nn died. ..." and this
<b>does</b> prevent RT from sending out the email.<br>
<br>
I have been unable to track down the offending elements. Every case seems different.
<br>
I am somehow convinced it can be tracked down to changes in the way RT shreds HTML, but I have no proof till now.<br>
<br>
Here are a couple of stack dumps:<br>
<br>
<big><tt>---------------------------------------------------------</tt><tt><br>
</tt><tt>[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</tt><tt><br>
</tt><tt>ithLinks/AndTables.pm line 217.</tt><tt><br>
</tt><tt><br>
</tt><tt>Stack:</tt><tt><br>
</tt><tt> [/usr/local/share/perl5/HTML/FormatText/WithLinks/AndTables.pm:217]</tt><tt><br>
</tt><tt> [/usr/local/share/perl5/HTML/FormatText/WithLinks/AndTables.pm:101]</tt><tt><br>
</tt><tt> [/usr/local/share/perl5/HTML/FormatText/WithLinks/AndTables.pm:83]</tt><tt><br>
</tt><tt> [/opt/rt4/sbin/../lib/RT/Interface/Email.pm:1777]</tt><tt><br>
</tt><tt> [/opt/rt4/sbin/../lib/RT/Transaction.pm:348]</tt><tt><br>
</tt><tt> [template:14]</tt><tt><br>
</tt><tt> [/opt/rt4/sbin/../lib/RT/Template.pm:551]</tt><tt><br>
</tt><tt> [/opt/rt4/sbin/../lib/RT/Template.pm:507]</tt><tt><br>
</tt><tt> [/opt/rt4/sbin/../lib/RT/Template.pm:435]</tt><tt><br>
</tt><tt> [/opt/rt4/sbin/../lib/RT/Template.pm:415]</tt><tt><br>
</tt><tt> [/opt/rt4/sbin/../lib/RT/Action/SendEmail.pm:139]</tt><tt><br>
</tt><tt> [/opt/rt4/sbin/../lib/RT/Action/Notify.pm:69]</tt><tt><br>
</tt><tt> [/opt/rt4/sbin/../lib/RT/ScripAction.pm:222]</tt><tt><br>
</tt><tt> [/opt/rt4/sbin/../lib/RT/Scrip.pm:561]</tt><tt><br>
</tt><tt> [/opt/rt4/sbin/../lib/RT/Scrips.pm:358]</tt><tt><br>
</tt><tt> [/opt/rt4/sbin/../lib/RT/Transaction.pm:189]</tt><tt><br>
</tt><tt> [/opt/rt4/sbin/../lib/RT/Record.pm:1626]</tt><tt><br>
</tt><tt> [/opt/rt4/sbin/../lib/RT/Ticket.pm:533]</tt><tt><br>
</tt><tt> [/opt/rt4/sbin/../lib/RT/Interface/Email.pm:1415]</tt><tt><br>
</tt><tt> [/opt/rt4/share/html/REST/1.0/NoAuth/mail-gateway:61] (/opt/rt4/sbin/../lib/RT/Template.pm:546)</tt><tt><br>
</tt><tt>---------------------------------------------------------</tt><tt><br>
</tt><tt>[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/</tt><tt><br>
</tt><tt>WithLinks/AndTables.pm line 217.</tt><tt><br>
</tt><tt><br>
</tt><tt>Stack:</tt><tt><br>
</tt><tt> [/usr/local/share/perl5/HTML/FormatText/WithLinks/AndTables.pm:217]</tt><tt><br>
</tt><tt> [/usr/local/share/perl5/HTML/FormatText/WithLinks/AndTables.pm:101]</tt><tt><br>
</tt><tt> [/usr/local/share/perl5/HTML/FormatText/WithLinks/AndTables.pm:83]</tt><tt><br>
</tt><tt> [/opt/rt4/sbin/../lib/RT/Interface/Email.pm:1777]</tt><tt><br>
</tt><tt> [/opt/rt4/sbin/../lib/RT/Template.pm:666]</tt><tt><br>
</tt><tt> [/opt/rt4/sbin/../lib/RT/Template.pm:421]</tt><tt><br>
</tt><tt> [/opt/rt4/sbin/../lib/RT/Action/SendEmail.pm:139]</tt><tt><br>
</tt><tt> [/opt/rt4/sbin/../lib/RT/Action/Notify.pm:69]</tt><tt><br>
</tt><tt> [/opt/rt4/sbin/../lib/RT/ScripAction.pm:222]</tt><tt><br>
</tt><tt> [/opt/rt4/sbin/../lib/RT/Scrip.pm:561]</tt><tt><br>
</tt><tt> [/opt/rt4/sbin/../lib/RT/Scrips.pm:358]</tt><tt><br>
</tt><tt> [/opt/rt4/sbin/../lib/RT/Scrips.pm:291]</tt><tt><br>
</tt><tt> [/opt/rt4/sbin/../lib/RT/Ticket.pm:2555]</tt><tt><br>
</tt><tt> [/opt/rt4/sbin/../lib/RT/Ticket.pm:2526]</tt><tt><br>
</tt><tt> [/opt/rt4/sbin/../lib/RT/Ticket.pm:2596]</tt><tt><br>
</tt><tt> [/usr/local/share/perl5/HTML/Mason/Request.pm:1295]</tt><tt><br>
</tt><tt> [/opt/rt4/share/html/Ticket/autohandler:66]</tt><tt><br>
</tt><tt> [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:680]</tt><tt><br>
</tt><tt> [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:368]</tt><tt><br>
</tt><tt> [/opt/rt4/share/html/autohandler:53] (/opt/rt4/sbin/../lib/RT/Scrip.pm:564)</tt><tt><br>
</tt><tt>---------------------------------------------------------</tt><tt><br>
</tt></big><br>
Anybody seeing this?<br>
<br>
Bye<br>
Cris<br>
<div class="moz-signature"><br>
</div>
</body>
</html>