[rt-users] Trying to use User_Local.pm and failing

Susan K. McClure smcclure at rice.edu
Thu Jun 7 16:00:05 EDT 2012


I have a  3.8.11 system, plus the May security patches.  Since the 
security patch
updated  ../rt/lib/RT/User_Overlay.pm and we had already had a local change
at .../rt/local/lib/RT/User_Overlay.pm, I am trying to modify our local 
version to
match up with the new User_Overlay.pm.

I am trying to use the "CustomizingWithOverlays" method from
  http://requesttracker.wikia.com/wiki/CustomizingWithOverlays

I have created a new file with our changes in
.../rt/local/lib/RT/User_Local.pm

But when I try to startup apache and RT I receive these errors:

> [Thu Jun 07 12:43:31 2012] [error] RT/User_Local.pm did not return a 
> true value at /opt/opt.CORE/rt-3.8.11/rhel5/bin/../lib/RT/Base.pm line 
> 173, <DATA> line 323.\nCompilation failed in require at (eval 1323) 
> line 3, <DATA> line 323.\n\t...propagated at 
> /usr/lib/perl5/5.8.8/base.pm line 85, <DATA> line 323.\nBEGIN 
> failed--compilation aborted at 
> /opt/opt.CORE/rt-3.8.11/rhel5/bin/../lib/RT/CurrentUser.pm line 96, 
> <DATA> line 323.\nCompilation failed in require at 
> /opt/opt.CORE/rt-3.8.11/rhel5/bin/../lib/RT.pm line 515, <DATA> line 
> 323.\nCompilation failed in require at (eval 2) line 1, <DATA> line 323.\n
> [Thu Jun 07 12:43:31 2012] [error] Can't load Perl file: 
> /opt/opt.CORE/rt-3.8.11/rhel5/bin/webmux.pl for server rt2.rice.edu:0, 
> exiting...

The line 173 in ../lib/RT/Base.pm is where is checking for overlays:

> 166
> 167 sub _ImportOverlays {
> 168     my $class = shift;
> 169     my ($package,undef,undef) = caller();
> 170     $package =~ s|::|/|g;
> 171     for my $type (qw(Overlay Vendor Local)) {
> 172         my $filename = $package."_".$type.".pm";
> 173         eval { require $filename };
> 174         die $@ if ($@ && $@ !~ qr{^Can't locate $filename});
> 175     }

Any ideas on these errors?  Or can someone explain 
CustomizingWithOverlays in more detail or point
to some examples please?

Thanks


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smcclure.vcf
Type: text/x-vcard
Size: 144 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20120607/c59de081/attachment.vcf>


More information about the rt-users mailing list