Trying to use User_Local.pm and failing

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, line 323.\nCompilation failed in require at (eval 1323)
line 3, line 323.\n\t…propagated at
/usr/lib/perl5/5.8.8/base.pm line 85, line 323.\nBEGIN
failed–compilation aborted at
/opt/opt.CORE/rt-3.8.11/rhel5/bin/…/lib/RT/CurrentUser.pm line 96,
line 323.\nCompilation failed in require at
/opt/opt.CORE/rt-3.8.11/rhel5/bin/…/lib/RT.pm line 515, line
323.\nCompilation failed in require at (eval 2) line 1, 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

smcclure.vcf (144 Bytes)

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, line 323.\nCompilation failed in require at (eval 1323)
line 3, line 323.\n\t…propagated at

Perl packages need to end in a true value such as “1;”

Look at the last line of the Queue_Local.pm example on the wiki page you
linked to.

Paul
Thanks. It was that and some other syntax things in the User_Local.pm

Susie

Susan K. McClure
smcclure@rice.edu
713.348.4852