[rt-users] FW: [rt-devel] Importing a scrip to RT3...
James L. Harrison
harrison at palisadesys.com
Mon Apr 14 15:38:33 EDT 2003
Thanks for the pointers Darren,
However... I checked in my RT_Config.pm and RT_SiteConfig.pm they both have
a line:
Set($DatabaseType , 'mysql');
I can see know what you are saying... It seems very logical that it isn't
getting a value for DatabaseType... could I hard code it in Handle.pm?
That probably wouldn't be too smart would it...
-Jamie
> -----Original Message-----
> From: rt-users-admin at lists.fsck.com
> [mailto:rt-users-admin at lists.fsck.com]On Behalf Of darren chamberlain
> Sent: Monday, April 14, 2003 2:01 PM
> To: rt-users at lists.fsck.com
> Subject: Re: [rt-users] FW: [rt-devel] Importing a scrip to RT3...
>
>
> -----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-----
> _______________________________________________
> rt-users mailing list
> rt-users at lists.fsck.com
> http://lists.fsck.com/mailman/listinfo/rt-users
>
> Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm
>
More information about the rt-users
mailing list