[rt-users] FW: [rt-devel] Importing a scrip to RT3...

darren chamberlain darren at boston.com
Mon Apr 14 15:00:59 EDT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

* James L. Harrison <harrison at palisadesys.com> [2003-04-14 14:53]:
> I have gotten farther in my quest to import a scrip into RT3... I am
> stuck again here:
> 
> #perl IncomingEmail.pm.insert.pl
> Use of uninitialized value in concatenation (.) or string at /opt/rt3/lib/RT/Handle.pm line 49.
> Use of uninitialized value in concatenation (.) or string at /opt/rt3/lib/RT/Handle.pm line 49.
> Can't locate object method "new" via package "RT::Handle" at IncomingEmail.pm.insert.pl line 33.

Line 49 of $RT/lib/RT/Handle.pm looks like:

  44 package RT::Handle;
  45 
  46 use strict;
  47 use vars qw/@ISA/;
  48 
  49 eval "use DBIx::SearchBuilder::Handle::$RT::DatabaseType;
  50 \@ISA= qw(DBIx::SearchBuilder::Handle::$RT::DatabaseType);";

Dod you define $DatabaseType in your config?

Because those are the first executable statements in the file, they
require that it is called after you've already read your config
previously ($RT::DatabaseType is a global).  It looks like this is one
of the elements filled in during the install; etc/RT_Config.pm.in
contains:

  52 Set($DatabaseType , '@DB_TYPE@');

(darren)

- -- 
If I worked as much as others I would do as little as they.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (SunOS)

iD8DBQE+mwVrzsinjrVhZaoRAtXYAKCKmKPw+D6TT3wNdV1vQHM2TVe7ygCfXu6n
UV+6YDHYo7nW15Djs0y4Tj4=
=Z2jk
-----END PGP SIGNATURE-----



More information about the rt-users mailing list