[rt-users] RT <-> Knowledge Base

Jeff Hoover jeff.hoover at infotechfl.com
Tue Nov 5 14:01:12 EST 2002


Add $signature to the my array ~ line 51 to fix it (in TemplateList).

-- Jeff

At 01:28 PM 11/5/2002, James Satterfield wrote:
>I've just installed TemplateAnswers-0.4 and I'm very frequently getting this
>when I try to get to the update page.
>rt2.0.13
>Mason 1.05
>
>James.
>
>
>Mason error
>
>error in file:
>/usr/local/rt2/WebRT/data/obj/LOCAL/Ticket/Elements/TemplateList
>   line 33:  Global symbol "$signature" requires explicit package name
>
>context:   ...
>29:  $message =~ s/\r//g;
>30:  $message =~ s/\n/\\n/g;
>31:  }
>32:  if ($session{'CurrentUser'}->UserObj->Signature) {
>33:  $signature = "-- \n".$session{'CurrentUser'}->UserObj->Signature;
>34:  $signature =~ s/\r\n/\n/g;
>35:  $signature =~ s/'/\\'/g;
>36:  $signature =~ s/\n/\\n/g;
>37:  }
>...
>
>component stack:   /Ticket/Update.html [local]
>/autohandler [standard]
>
>code stack:
>/usr/local/rt2/WebRT/data/obj/LOCAL/Ticket/Elements/TemplateList:33
>/usr/local/lib/perl5/site_perl/5.005/HTML/Mason/Interp.pm:382
>/usr/local/lib/perl5/site_perl/5.005/HTML/Mason/Request.pm:468
>/usr/local/lib/perl5/site_perl/5.005/HTML/Mason/Request.pm:597
>/usr/local/rt2/WebRT/data/obj/LOCAL/Ticket/Update.html:92
>/usr/local/rt2/WebRT/data/obj/STANDARD/autohandler:69
>
>raw_error
>raw error:
>
>error while executing /Ticket/Update.html [local]:
>Error during compilation of
>/usr/local/rt2/local/WebRT/html/Ticket/Elements/TemplateList:
>Global symbol "$signature" requires explicit package name at
>/usr/local/rt2/WebRT/data/obj/LOCAL/Ticket/Elements/TemplateList line 33,
>chunk 559.
>
>HTML::Mason::Interp::__ANON__('Error during compilation of
>/usr/local/rt2/local/WebRT/html/Tick...') called at
>/usr/local/lib/perl5/site_perl/5.005/HTML/Mason/Interp.pm line 419
>HTML::Mason::Interp::_compilation_error('HTML::Mason::Interp=HASH(0x8d92fb4)
>', '/usr/local/rt2/local/WebRT/html/Ticket/Elements/TemplateList', 'Global
>symbol "$signature" requires explicit package name at /us...') called at
>/usr/local/lib/perl5/site_perl/5.005/HTML/Mason/Interp.pm line 382
>HTML::Mason::Interp::load('HTML::Mason::Interp=HASH(0x8d92fb4)',
>'/Ticket/Elements/TemplateList') called at
>/usr/local/lib/perl5/site_perl/5.005/HTML/Mason/Request.pm line 468
>HTML::Mason::Request::fetch_comp('HTML::Mason::Request::ApacheHandler=HASH(0
>x901ff48)', '/Ticket/Elements/TemplateList') called at
>/usr/local/lib/perl5/site_perl/5.005/HTML/Mason/Request.pm line 597
>HTML::Mason::Request::comp('HTML::Mason::Request::ApacheHandler=HASH(0x901ff
>48)', '/Ticket/Elements/TemplateList', 'id', 1, 'QuoteTransaction', undef,
>'Source', 'Update') called at
>/usr/local/rt2/WebRT/data/obj/LOCAL/Ticket/Update.html line 92
>HTML::Mason::Commands::__ANON__('id', 1024, 'Action', 'Respond') called at
>/usr/local/lib/perl5/site_perl/5.005/HTML/Mason/Component.pm line 131
>HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x901783
>c)', 'id', 1024, 'Action', 'Respond') called at
>/usr/local/lib/perl5/site_perl/5.005/HTML/Mason/Request.pm line 654
>eval {...} called at
>/usr/local/lib/perl5/site_perl/5.005/HTML/Mason/Request.pm line 654
>HTML::Mason::Request::comp('HTML::Mason::Request::ApacheHandler=HASH(0x901ff
>48)', 'HTML::Mason::Component::FileBased=HASH(0x901783c)', 'id', 1024,
>'Action', 'Respond') called at
>/usr/local/lib/perl5/site_perl/5.005/HTML/Mason/Request.pm line 317
>HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x
>901ff48)') called at /usr/local/rt2/WebRT/data/obj/STANDARD/autohandler line
>69
>HTML::Mason::Commands::__ANON__('id', 1024, 'Action', 'Respond') called at
>/usr/local/lib/perl5/site_perl/5.005/HTML/Mason/Component.pm line 131
>HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x848c62
>4)', 'id', 1024, 'Action', 'Respond') called at
>/usr/local/lib/perl5/site_perl/5.005/HTML/Mason/Request.pm line 654
>eval {...} called at
>/usr/local/lib/perl5/site_perl/5.005/HTML/Mason/Request.pm line 654
>HTML::Mason::Request::comp('HTML::Mason::Request::ApacheHandler=HASH(0x901ff
>48)', 'HASH(0x900e6dc)',
>'HTML::Mason::Component::FileBased=HASH(0x848c624)', 'id', 1024, 'Action',
>'Respond') called at
>/usr/local/lib/perl5/site_perl/5.005/HTML/Mason/Request.pm line 160
>eval {...} called at
>/usr/local/lib/perl5/site_perl/5.005/HTML/Mason/Request.pm line 160
>HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x901ff
>48)', '/Ticket/Update.html', 'id', 1024, 'Action', 'Respond') called at
>/usr/local/lib/perl5/site_perl/5.005/HTML/Mason/ApacheHandler.pm line 914
>HTML::Mason::ApacheHandler::handle_request_1('HTML::Mason::ApacheHandler=HAS
>H(0x8d92e04)', 'Apache=SCALAR(0x810292c)',
>'HTML::Mason::Request::ApacheHandler=HASH(0x901ff48)', undef) called at
>/usr/local/lib/perl5/site_perl/5.005/HTML/Mason/ApacheHandler.pm line 560
>eval {...} called at
>/usr/local/lib/perl5/site_perl/5.005/HTML/Mason/ApacheHandler.pm line 560
>HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(
>0x8d92e04)', 'Apache=SCALAR(0x810292c)') called at
>/usr/local/rt2/bin/webmux.pl line 165
>RT::Mason::handler('Apache=SCALAR(0x810292c)') called at /dev/null line 0
>eval {...} called at /dev/null line 0
>
>
>
>-----Original Message-----
>From: Aaron T Porter [mailto:atporter at gateway.primate.net]
>Sent: Thursday, October 24, 2002 6:20 PM
>To: Bruce Campbell
>Cc: rt-users at lists.fsck.com
>Subject: Re: [rt-users] RT <-> Knowledge Base
>
>
>On Fri, Oct 25, 2002 at 12:53:53AM +0200, Bruce Campbell wrote:
> > To be honest, I haven't tried it (well, completely missed the
> > announcement as was catching up with mail after Greece).  Looking at
> > it (cue download and inspection), you've still got the caveat of the
> > text of all of the Queue's Templates being loaded into the HTML page
> > and then being jiggled around with javascript.
>
> > I think something like this could go into TemplateAnswers 0.4 (Aaron?)
>
>         Actually, TemplateAnswers 0.4 didn't make it into contrib yet (fixes
>some dumb JavaScript errors dealing with \r's). I'll look into these changes
>-- I actually cut something like that *out* of the old StockAnswers. The
>in-html ugliness was mandated by our workflow requirements.
>
>http://primate.net/src/TemplateAnswers-0.4.tar.gz
>_______________________________________________
>rt-users mailing list
>rt-users at lists.fsck.com http://lists.fsck.com/mailman/listinfo/rt-users
>
>Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm
>_______________________________________________
>rt-users mailing list
>rt-users at lists.fsck.com
>http://lists.fsck.com/mailman/listinfo/rt-users
>
>Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

--
Jeff Hoover                      <Jeff.Hoover at InfoTechFL.com>
Web Programmer, Info Tech, Inc.
5700 SW 34th Street, Suite 1235         phone: (352) 381-4400
Gainesville, FL   32608                   fax: (352) 381-4444




More information about the rt-users mailing list