Last CVS breaks CheckDB.pl on my system..

#/opt/OpenTRS/bin/CheckDB.pl Can't locate object method "Log" via package "Kernel::Config" (perhaps you forgot to load "Kernel::Config"?) at /opt/OpenTRS/bin/..//Kernel/System/DB.pm line 152. -- Pablo Ruiz Garcia (Pci) Consultor de Seguridad - Tiger Team IP6 Seguridad (pruiz@ip6seguridad.com) http://www.ip6seguridad.com/pgp/pruiz.asc

Hi Pablo, On Mon, Jun 10, 2002 at 12:48:14AM +0200, Pablo Ruiz Garcia wrote:
#/opt/OpenTRS/bin/CheckDB.pl Can't locate object method "Log" via package "Kernel::Config" (perhaps you forgot to load "Kernel::Config"?) at /opt/OpenTRS/bin/..//Kernel/System/DB.pm line 152.
Please check the following file revisions: bin/CheckDB.pl revision 1.3 Kernel/Config.pm revision 1.39 Kernel/System/Log.pm revision 1.1 Kernel/System/DB.pm revision 1.13 If you have this revisions it should work. If it still doesn't work, what do you have in your Kernel/System/DB.pm line 152?
-- Pablo Ruiz Garcia (Pci)
Martin -- Martin Edenhofer - <martin at edenhofer.de> - http://martin.edenhofer.de/ -- Old programmers never die. They just branch to a new address.

It works ok when i disabled debugging.. (Debug = 0;)
and my DB.pm at line 152 gots debugging rutines..
if ($Self->{Debug} > 1) {
$Self->{PrepareCounter}++;
$Self->{LogObject}->Log(
Priority => 'debug';
MSG => 'DB.pm->Prepare ('.$Self->{PrepareCounter}.'/'.time().') SQL:
'.$SQL,
);
}
--
Pablo Ruiz Garcia (Pci)
Consultor de Seguridad - Tiger Team
IP6 Seguridad (pruiz@ip6seguridad.com)
http://www.ip6seguridad.com/pgp/pruiz.asc
----- Original Message -----
From: "Martin Edenhofer"
Hi Pablo,
On Mon, Jun 10, 2002 at 12:48:14AM +0200, Pablo Ruiz Garcia wrote:
#/opt/OpenTRS/bin/CheckDB.pl Can't locate object method "Log" via package "Kernel::Config" (perhaps you forgot to load "Kernel::Config"?) at /opt/OpenTRS/bin/..//Kernel/System/DB.pm line 152.
Please check the following file revisions:
bin/CheckDB.pl revision 1.3 Kernel/Config.pm revision 1.39 Kernel/System/Log.pm revision 1.1 Kernel/System/DB.pm revision 1.13
If you have this revisions it should work.
If it still doesn't work, what do you have in your Kernel/System/DB.pm line 152?
-- Pablo Ruiz Garcia (Pci)
Martin
-- Martin Edenhofer - <martin at edenhofer.de> - http://martin.edenhofer.de/ -- Old programmers never die. They just branch to a new address.
_______________________________________________ OpenTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev

Hi Pablo, On Mon, Jun 10, 2002 at 06:16:37PM +0200, Pablo Ruiz Garcia wrote:
It works ok when i disabled debugging.. (Debug = 0;)
and my DB.pm at line 152 gots debugging rutines.. [...]
Oh. It was a bug (typo) in bin/CheckDB.pl [...] my $DBObject = Kernel::System::DB->new( LogObject => $ConfigObject, ^^^^^^^^^^^^^^ ConfigObject => $ConfigObject, ); [...] It should be "LogObject => $LogObject,". I fixed it. CVS is updated. Thanks for the note.
-- Pablo Ruiz Garcia (Pci)
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
-
Pablo Ruiz Garcia