
I installed OTRS on a Redhat 7.2 box running sendmail. I frequently get the following error. I can continue by simply reloading the page. And it always works. But it is pretty disconcerting. Any insight as to why I would continue to get this error? Can't locate object method "new" via package "Kernel::System::DB" \ (perhaps you forgot to load "Kernel::System::DB"?) at \ /home/ccc/OpenTRS/bin/cgi-bin/index.pl line 81. -- Shawn A. Laughlin Network Manager/Director, CCC Chemistry Dept 4521 S. HEB University of Utah (801)581-4696 "The salary of the chief executive of a large corporation is not a market award for achievement. It is frequently in the nature of a warm personal gesture by the individual to himself." --John Kenneth Galbraith

Hi Shawn, On Fri, Oct 11, 2002 at 01:15:06PM -0600, Shawn A. Laughlin wrote:
I installed OTRS on a Redhat 7.2 box running sendmail. I frequently get the following error. I can continue by simply reloading the page. And it always works. But it is pretty disconcerting. Any insight as to why I would continue to get this error?
Can't locate object method "new" via package "Kernel::System::DB" \ (perhaps you forgot to load "Kernel::System::DB"?) at \ /home/ccc/OpenTRS/bin/cgi-bin/index.pl line 81.
That's strange! The Kernel::System::DB will be loaded in line 52 of index.pl. Please try 'cd /home/ccc/OpenTRS/bin/cgi-bin/' and then 'perl -cw index.pl'. What is the output? PS: What OTRS release do you use? PS1: In future we'll provide Red Hat RPMs. There is a test RPM on the FTP server. Look at http://lists.otrs.org/pipermail/dev/2002-September/000033.html ([dev] Red Hat RPMs for testing!).
-- Shawn A. Laughlin Network Manager/Director, CCC
Martin -- Martin Edenhofer - <martin at edenhofer.de> - http://martin.edenhofer.de/ -- Old programmers never die. They just branch to a new address.

Martin, Thanks for your reply. Here is the result of the suggested command: 12 /home/ccc/OpenTRS/bin/cgi-bin> perl -cw index.pl index.pl syntax OK I am using the 0.5 Beta7 version of the software. Thanks again for your help and a nice piece of software. Shawn On Sat, 12 Oct 2002 Martin Edenhofer said: # Hi Shawn, # # On Fri, Oct 11, 2002 at 01:15:06PM -0600, Shawn A. Laughlin wrote: # > I installed OTRS on a Redhat 7.2 box running sendmail. I frequently get the # > following error. I can continue by simply reloading the page. And it always # > works. But it is pretty disconcerting. Any insight as to why I would continue # > to get this error? # > # > Can't locate object method "new" via package "Kernel::System::DB" \ # > (perhaps you forgot to load "Kernel::System::DB"?) at \ # > /home/ccc/OpenTRS/bin/cgi-bin/index.pl line 81. # # That's strange! The Kernel::System::DB will be loaded in line 52 of index.pl. # # Please try 'cd /home/ccc/OpenTRS/bin/cgi-bin/' and then 'perl -cw index.pl'. # # What is the output? # # PS: What OTRS release do you use? # # PS1: In future we'll provide Red Hat RPMs. There is a test RPM on the FTP server. # Look at http://lists.otrs.org/pipermail/dev/2002-September/000033.html ([dev] Red Hat # RPMs for testing!). # # > -- # > Shawn A. Laughlin Network Manager/Director, CCC # # Martin # # -- # Martin Edenhofer - <martin at edenhofer.de> - http://martin.edenhofer.de/ # -- # Old programmers never die. They just branch to a new address. # # _______________________________________________ # OTRS mailing list: otrs - Webpage: http://otrs.org/ # Archive: http://lists.otrs.org/pipermail/otrs # To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs # -- Shawn A. Laughlin Network Manager/Director, CCC Chemistry Dept 4521 S. HEB University of Utah (801)581-4696 "The salary of the chief executive of a large corporation is not a market award for achievement. It is frequently in the nature of a warm personal gesture by the individual to himself." --John Kenneth Galbraith

Hi Shawn, On Sat, Oct 12, 2002 at 02:11:07PM -0600, Shawn A. Laughlin wrote:
[...] 12 /home/ccc/OpenTRS/bin/cgi-bin> perl -cw index.pl index.pl syntax OK
I am using the 0.5 Beta7 version of the software.
Fine. At first update Kernel/System/DB.pm ( http://otrs.org/cgi-bin/cvsweb.cgi/~checkout~/otrs/Kernel/System/DB.pm?rev=1... ) maybe it's working now. If not, try 'cd /home/ccc/OpenTRS/bin/cgi-bin' then './index.pl' and send me the first 10 lines.
Thanks again for your help and a nice piece of software.
No problem! :)
Shawn
Martin -- Martin Edenhofer - <martin at edenhofer.de> - http://martin.edenhofer.de/ -- Old programmers never die. They just branch to a new address.

Martin,
I should have told you. When I first experienced this I went and
updated the DB.pm to that very one you just pointed me toward.
# Kernel/System/DB.pm - the global database wrapper to support different
databases
# Copyright (C) 2001-2002 Martin Edenhofer

Hi Shawn, On Tue, Oct 15, 2002 at 11:47:52AM -0600, Shawn A. Laughlin wrote:
I should have told you. When I first experienced this I went and updated the DB.pm to that very one you just pointed me toward.
# Kernel/System/DB.pm - the global database wrapper to support different [...] # $Id: DB.pm,v 1.19 2002/08/26 21:38:32 martin Exp $
Here is the return of the suggested command.
114 chemistry:bin/cgi-bin> ./index.pl | head -10 [Tue Oct 15 11:39:35 2002] index.pl: Use of uninitialized value in substitution (s///) at ./index.pl line 117. Content-Type: text/html; charset=iso-8859-1; X-Powered-By: OpenTRS - Open Ticket Request System (http://otrs.org) X-Wanted: I think you are smart. I'm looking for smart people!
<!-- OpenTRS: Copyright 2002, OpenTRS Project. This Software is under the GPL. --> [...]
Hmmm. And you still get the 'Can't locate object method' error sporadically? Do you use Apache with mod_perl? Did you restart the webserver?
Shawn
Martin -- Martin Edenhofer - <martin at edenhofer.de> - http://martin.edenhofer.de/ -- Old programmers never die. They just branch to a new address.
participants (2)
-
Martin Edenhofer
-
Shawn A. Laughlin