<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle17
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle18
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:#1F497D;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:1898392315;
mso-list-type:hybrid;
mso-list-template-ids:1748015266 -1162293240 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
{mso-level-start-at:5;
mso-level-number-format:bullet;
mso-level-text:-;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:"Calibri",sans-serif;
mso-fareast-font-family:Calibri;
mso-bidi-font-family:"Times New Roman";}
@list l0:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:"Courier New";}
@list l0:level3
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Wingdings;}
@list l0:level4
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Symbol;}
@list l0:level5
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:"Courier New";}
@list l0:level6
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Wingdings;}
@list l0:level7
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Symbol;}
@list l0:level8
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:"Courier New";}
@list l0:level9
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Wingdings;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Good catch!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I’m sure other people have better ways to do this, but this is what works for me in our environment:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">First I copy the original RT file into the local/ directory tree (per standard RT modification practices).<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">But I make two copies there – one is named with a “.orig” file extension.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> e.g.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> Tabs<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> Tabs.orig<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">The .orig file is a copy of the original Tabs file (at the time I modified it, lets say version 4.0.9.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">After I run an upgrade (e,g, to 4.2.12), I first do a ‘diff’ on the Tabs.orig (remember, that is 4.0.9) against the new Tabs (4.2.12).<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">If the files are the same (no changes in the new version of RT), I keep my changed Tabs file as-is.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">If there are changes in the new rev, I must manually merge my changes into it.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">(and then copy the new version (original) as the new Tabs.orig, ready for the next upgrade).<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">A nice side effect of this is that I can run a ‘find’ command after each upgrade for *.orig, to ensure I am merging all code changes.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Just my 2 cents.<o:p></o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><![if !supportLists]><span style="color:#1F497D"><span style="mso-list:Ignore">-<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]><span style="color:#1F497D">Brent<o:p></o:p></span></p>
<p class="MsoListParagraph"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> rt-users [mailto:rt-users-bounces@lists.bestpractical.com]
<b>On Behalf Of </b>David Ramage<br>
<b>Sent:</b> Tuesday, November 10, 2015 6:42 PM<br>
<b>To:</b> rt-users@lists.bestpractical.com<br>
<b>Subject:</b> Re: [rt-users] Unable to create scrips in RT 4.2.12<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">The previous admin had made some customizations to the Tabs file. It looks like some internal URL plumbing changed between 4.0.9 and 4.2.12, and the URLs specified in the menu pointed to bad locations.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> rt-users [<a href="mailto:rt-users-bounces@lists.bestpractical.com">mailto:rt-users-bounces@lists.bestpractical.com</a>]
<b>On Behalf Of </b>David Ramage<br>
<b>Sent:</b> Monday, November 09, 2015 3:54 PM<br>
<b>To:</b> <a href="mailto:rt-users@lists.bestpractical.com">rt-users@lists.bestpractical.com</a><br>
<b>Subject:</b> [rt-users] Unable to create scrips in RT 4.2.12<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Good afternoon,<o:p></o:p></p>
<p class="MsoNormal">I recently inherited a RT installation. After upgrading our test system to 4.2.12 I am unable to create scrips, either locally or for a specific queue. I get a standard “An internal error has occurred” message from the web UI, and the
following in syslog:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">[17510] Can't call method "Queue" on an undefined value at /opt/rt4/sbin/../lib/RT/Scrip.pm line 450.#012#012Stack:#012 [/opt/rt4/sbin/../lib/RT/Scrip.pm:450]#012
<o:p></o:p></p>
<p class="MsoNormal">[/opt/rt4/share/html/Admin/Elements/EditScrip:83]#012 <o:p>
</o:p></p>
<p class="MsoNormal">[/opt/rt4/share/html/Widgets/TitleBox:56]#012 <o:p></o:p></p>
<p class="MsoNormal">[/opt/rt4/share/html/Admin/Elements/EditScrip:89]#012 <o:p>
</o:p></p>
<p class="MsoNormal">[/opt/rt4/share/html/Admin/Queues/Scrip.html:52]#012 <o:p></o:p></p>
<p class="MsoNormal">[/opt/rt4/share/html/Admin/autohandler:49]#012 <o:p></o:p></p>
<p class="MsoNormal">[/opt/rt4/sbin/../lib/RT/Interface/Web.pm:681]#012 <o:p></o:p></p>
<p class="MsoNormal">[/opt/rt4/sbin/../lib/RT/Interface/Web.pm:369]#012 <o:p></o:p></p>
<p class="MsoNormal">[/opt/rt4/share/html/autohandler:53]#012<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have verified that the undefined value is $args{‘TicketObj’} in the Stage function in Scrip.pm, but haven’t gotten any further. I’ll be greatful for any suggestions.<o:p></o:p></p>
</div>
</body>
</html>