[rt-users] HTML templates in RT 4.2.1

Guadagnino Cristiano guadagnino.cristiano at creval.it
Fri Dec 27 05:05:31 EST 2013


While upgrading to RT 4.2.1 (from RT 4.0.17) I had to change a few of 
our HTML templates.

Previously, we had two quite complex html templates for the Take and the 
Resolve actions. I am attaching them here so you can examine them. 
Basically they where full html pages with tables and embedded perl code.

After upgrade to RT 4.2.1 we started seeing errors in the log, like this:

[6885] [Mon Dec 23 20:37:52 2013] [error]: Scrip Prepare 10 died. - 
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/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)


I got a hard time figuring out what the problem was, but after a lot of 
debugging I found that it was the html code that was giving us problems. 
A simple text version of our template was working well. So I tried to 
re-add html code step by step. At last I found I could use simple html 
tags like <h1>, <h2>, <br />, <hr />, <i>, etc. but I could not add e.g. 
tables.

We are now using much simpler html templates (which is not bad in 
itself), but I'd like to know if this incompatibility is something that 
was planned or not, and if we can somehow restore the layout of our 
previous templates and how.

Thank you in advance.
Cristiano

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: autoreply_on_take_template.txt
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20131227/206fe9f4/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: resolved_template.txt
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20131227/206fe9f4/attachment-0001.txt>


More information about the rt-users mailing list