Major problem

I desperately need some help with my little problem. After compiling
installing and configuring every piece of software required by RT using
perl5.005_03, and after editing the httpd.conf file. The error I get when
attemptting to use the web interface is as follows [Error] Can’t locate
object method new in package RT::Handle at ac631/rt2/lib/RT.pm at line 26.
This error arrives in my httpd error_log file. Let me know how to fix this
please.

	Sincerely,					
		-James Adam Sigler-

James Adam Sigler
College of Computing
Georgia Tech
Phone: 404-385-0391
Office: CoC 211
Email: hollow1@cc.gatech.edu

In Perl, it usually means a package hasn’t been included in
the use list, but its attempting to be referenced. Have a look
at lib/RT.pm and make sure somewhere near the top has this line:

use RT::Handle;

It could also be:

require RT::Handle;

If either are there, might be worth checking that there is a 'new’
function in RT::Handle… It’ll be in ac631/rt2/lib/RT/Handle.pm.
Search for ‘sub new’ in that file… It should be there, I would
doubt Jesse would do something silly like forget to add in a new
function… :wink:

Assuming that is there, you will then want to check that ac631/rt2/lib
is one of the directories in the perl library path for that program.
Its contained in the @INC array… Add the following to the top
of the script:

BEGIN {
print STDERR join(",", @INC) . “\n”;
}

The STDERR stuff will be printed to the error log…

If its not in the list, then you will need to add it… I
can’t remember how RT likes this done off the top of my
head, hopefully Jesse remembers… :wink: Just make sure you
put in the full path as that is what Perl will be
expecting…

I’m assuming this is going to work with Mason… I’m sure someone will
correct me if its not going to work… :wink:

Hope this helps :slight_smile:

Greg

There is no new function in the Handle.pm file. This of course I new
yesterday. I have tried a complete reintsall and recompile of everything
associated with perl and rt inclkuding an upgrade to perl 5.6.1. If
someone has a Handle.pm file with a new method and could supply it to me I
would be most grateful.

Thanks.On Wed, 28 Nov 2001, Greg Boug wrote:

In Perl, it usually means a package hasn’t been included in
the use list, but its attempting to be referenced. Have a look
at lib/RT.pm and make sure somewhere near the top has this line:

use RT::Handle;

It could also be:

require RT::Handle;

If either are there, might be worth checking that there is a 'new’
function in RT::Handle… It’ll be in ac631/rt2/lib/RT/Handle.pm.
Search for ‘sub new’ in that file… It should be there, I would
doubt Jesse would do something silly like forget to add in a new
function… :wink:

Assuming that is there, you will then want to check that ac631/rt2/lib
is one of the directories in the perl library path for that program.
Its contained in the @INC array… Add the following to the top
of the script:

BEGIN {
print STDERR join(",", @INC) . “\n”;
}

The STDERR stuff will be printed to the error log…

If its not in the list, then you will need to add it… I
can’t remember how RT likes this done off the top of my
head, hopefully Jesse remembers… :wink: Just make sure you
put in the full path as that is what Perl will be
expecting…

I’m assuming this is going to work with Mason… I’m sure someone will
correct me if its not going to work… :wink:

Hope this helps :slight_smile:

Greg

-----Original Message-----
From: rt-users-admin@lists.fsck.com
[mailto:rt-users-admin@lists.fsck.com]On Behalf Of James Adam Sigler
Sent: Wednesday, 28 November 2001 10:54 AM
To: rt-users@lists.fsck.com
Subject: [rt-users] MAJOR PROBLEM

I desperately need some help with my little problem. After compiling
installing and configuring every piece of software required by RT using
perl5.005_03, and after editing the httpd.conf file. The error I get when
attemptting to use the web interface is as follows [Error] Can’t locate
object method new in package RT::Handle at ac631/rt2/lib/RT.pm at line 26.
This error arrives in my httpd error_log file. Let me know how to
fix this
please.

  Sincerely,
  	-James Adam Sigler-

James Adam Sigler
College of Computing
Georgia Tech
Phone: 404-385-0391
Office: CoC 211
Email: hollow1@cc.gatech.edu


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

	Sincerely,					
		-James Adam Sigler-

James Adam Sigler
College of Computing
Georgia Tech
Phone: 404-385-0391
Office: CoC 211
Email: hollow1@cc.gatech.edu

Handle.pm is a subclass of DBIx::SearchBuilder::Handle::$DatabaseType.

the new method is in a superclass. Sounds like you’ve
set $DatabaseType wrong in config.pm or something.On Wed, Nov 28, 2001 at 01:00:31PM -0500, James Adam Sigler wrote:

There is no new function in the Handle.pm file. This of course I new
yesterday. I have tried a complete reintsall and recompile of everything
associated with perl and rt inclkuding an upgrade to perl 5.6.1. If
someone has a Handle.pm file with a new method and could supply it to me I
would be most grateful.

Thanks.

On Wed, 28 Nov 2001, Greg Boug wrote:

In Perl, it usually means a package hasn’t been included in
the use list, but its attempting to be referenced. Have a look
at lib/RT.pm and make sure somewhere near the top has this line:

use RT::Handle;

It could also be:

require RT::Handle;

If either are there, might be worth checking that there is a 'new’
function in RT::Handle… It’ll be in ac631/rt2/lib/RT/Handle.pm.
Search for ‘sub new’ in that file… It should be there, I would
doubt Jesse would do something silly like forget to add in a new
function… :wink:

Assuming that is there, you will then want to check that ac631/rt2/lib
is one of the directories in the perl library path for that program.
Its contained in the @INC array… Add the following to the top
of the script:

BEGIN {
print STDERR join(",", @INC) . “\n”;
}

The STDERR stuff will be printed to the error log…

If its not in the list, then you will need to add it… I
can’t remember how RT likes this done off the top of my
head, hopefully Jesse remembers… :wink: Just make sure you
put in the full path as that is what Perl will be
expecting…

I’m assuming this is going to work with Mason… I’m sure someone will
correct me if its not going to work… :wink:

Hope this helps :slight_smile:

Greg

-----Original Message-----
From: rt-users-admin@lists.fsck.com
[mailto:rt-users-admin@lists.fsck.com]On Behalf Of James Adam Sigler
Sent: Wednesday, 28 November 2001 10:54 AM
To: rt-users@lists.fsck.com
Subject: [rt-users] MAJOR PROBLEM

I desperately need some help with my little problem. After compiling
installing and configuring every piece of software required by RT using
perl5.005_03, and after editing the httpd.conf file. The error I get when
attemptting to use the web interface is as follows [Error] Can’t locate
object method new in package RT::Handle at ac631/rt2/lib/RT.pm at line 26.
This error arrives in my httpd error_log file. Let me know how to
fix this
please.

  Sincerely,
  	-James Adam Sigler-

James Adam Sigler
College of Computing
Georgia Tech
Phone: 404-385-0391
Office: CoC 211
Email: hollow1@cc.gatech.edu


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

  Sincerely,					
  	-James Adam Sigler-

James Adam Sigler
College of Computing
Georgia Tech
Phone: 404-385-0391
Office: CoC 211
Email: hollow1@cc.gatech.edu


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

http://www.bestpractical.com/products/rt – Trouble Ticketing. Free.