[rt-users] PerlHandler RT::Mason is the bane of my LIFE!

Greg Boug gboug at unico.com.au
Tue Jul 24 07:57:13 EDT 2001


Dan,

Generally, this happens because someone forgot a 'use' command
somewhere. Most likely, the script being run doesn't have 'use RT::blah;'
in it anywhere that is within scope of RT.pm's line 13. The script
knows to look for RT::blah because there is probably a line something
along the following:

my $a = RT::blah->new();

Most likely, the easiest way to fix it is to figure out which script
is being called at the time and just under the "use lib '/opt/rt2'"
section, add in the appropriate use line.

I am puzzled, though, as I installed that version with much
the same setup and it did find all the RT libraries just fine. Could
be a problem with the settings you used in the Makefile before you
did 'make install'... Check them over and see if there is anything
with a typo in it or something. Its possible that its not finding
_any_ libraries and that the one you are getting first happens to be
the lucky first...

Hope this helps :-)

Greg

> -----Original Message-----
> From: rt-users-admin at lists.fsck.com
> [mailto:rt-users-admin at lists.fsck.com]On Behalf Of Dan McLean
> Sent: Tuesday, 24 July 2001 8:08 PM
> To: rt-users at lists.fsck.com
> Subject: [rt-users] PerlHandler RT::Mason is the bane of my LIFE!
>
>
> Ok guys, here is a curly one for you all...
>
> There are a few other references to this problem but no clear answer.
>
> We have a RT build of 2.0.1 with MySQL, Mod_Perl 1.25, the latest
> files from
> running
> cvs -d :pserver:anoncvs at cvs.fsck.com:/raid/cvsroot co -r rt-1-1 rt
> cvs -d :pserver:anoncvs at cvs.fsck.com:/raid/cvsroot co DBIx
>
> testdeps comes up trumps (ie: everything is cool according to testdeps)
> DBI has been installed by hand, everything else is all up to date
> thru CPAN.
>
> 2 of us have spent the whole day reading through the forums, and anything
> relating to what our problem maybe so that we didn't bug you with
> a question
> when we hadn't RTFM...
>
> However we have hit the wall... a huge 20ft brick one.
>
> When we either run  /usr/local/rt2/bin/rt or when we hit the webpage(then
> the error is in the apache logs), *any* webpage wether it's RT's
> index or a
> test one we created, we get the error
>
> "Can't locate object method "new" via package "RT::Handle" at
> /usr/local/rt2/lib/RT.pm line 13."
>
> Can anyone give us *anything* to go on here... we are fresh outta ideas...
>
> Cheers...
>
> Dan & Matt
>
> p.s. the webserver doesn't break when we comment out this line, but RT
> obviously won't run.
>          PerlHandler RT::Mason
>
>
>
> _______________________________________________
> rt-users mailing list
> rt-users at lists.fsck.com
> http://lists.fsck.com/mailman/listinfo/rt-users
>





More information about the rt-users mailing list