[Rtir] Installation problem

Randy Smith perlstalker at vuser.org
Tue Nov 24 16:23:08 EST 2009


Wagner Sartori Junior wrote:
> Hello,
> 
> I'd installed a brand new RT, RTFM installation. Everything works OK I
> can login my tickets are being created, ...
> 
> Then I installed RTIR exactly how README file says, now I'm getting in
> apache error_log:
> [Tue Nov 24 15:42:35 2009] [error] [client x.x.x.x] Global symbol
> "@QUEUES" requires explicit package name at
> /opt/rt3/local/plugins/RT-IR/lib/RT/IR.pm line 193.\nBEGIN not safe
> after errors--compilation aborted at
> /opt/rt3/local/plugins/RT-IR/lib/RT/IR.pm line 240.\nCompilation
> failed in require at /opt/rt3/bin/../lib/RT.pm line 627.\n
> 
> My RT_SiteConfig.pm has:
> Set(@Plugins, 'RT::FM', 'RT::IR');
> 
> Do you have any clue?
> 

I reverted line 193 to what it was in 2.4.1. I don't what the correct
answer is but that "works" for me.


--- RT-IR-2.4.1/lib/RT/IR.pm    2009-01-12 15:22:19.000000000 -0700
+++ RT-IR-2.4.2/lib/RT/IR.pm    2009-11-24 13:55:53.000000000 -0700
@@ -46,7 +46,7 @@
 #
 package RT::IR;

-our $VERSION = '2.4.1';
+our $VERSION = '2.4.2';

 use 5.008003;
 use warnings;
@@ -190,7 +190,7 @@
 sub States {
     my %arg = ( Queue => undef, Active => 1, Inactive => 0, @_ );

-    my @queues = !$arg{'Queue'} ? ( values %STATES )
+    my @queues = !$arg{'Queue'} ? (@QUEUES)
         : ref $arg{'Queue'}? @{ $arg{'Queue'} } : ( $arg{'Queue'} );


-- 
Randy Smith
http://www.vuser.org/
http://perlstalker.blogspot.com/



More information about the Rtir mailing list