Hi Eric,

I wrote my own OTRS-shell-scripts and -modules on v2.1.1.
When updating the framework to v2.1.2, I run in the same problems as you desribed. Without knowing the background, a modification solved the problem. I added this modification in a transformed way in your code (see below).

Eric Boudrand schrieb:
Hello,

I have a problem with this piece of code :


use Kernel::System::Main;

my $ConfigObject = Kernel::Config->new();
my $LogObject = Kernel::System::Log->new(
        ConfigObject => $ConfigObject,
   );
my MainObject = Kernel::System::Main->new(
          ConfigObject => $ConfigObject,
          LogObject => $LogObject,
     );
my $TimeObject    = Kernel::System::Time->new(
       ConfigObject => $ConfigObject,
       LogObject => $LogObject,
   );
my $DBObject = Kernel::System::DB->new(
       ConfigObject => $ConfigObject,
       LogObject => $LogObject,
   );
my $TicketObject = Kernel::System::Ticket->new (
       ConfigObject => $ConfigObject,
       LogObject => $LogObject,
       DBObject => $DBObject,
       TimeObject => $TimeObject,
   );

Got no MainObject! at /opt/otrs/Kernel/System/Ticket.pm line 97, <PRODUCT>
line 4.
 at /opt/otrs/Kernel/System/Ticket.pm line 97
        Kernel::System::Ticket::new('Kernel::System::Ticket',
'ConfigObject', 'Kernel::Config=HASH(0x8eb16b0)', 'LogObject',
'Kernel::System::Log=HASH(0x8ee7998)', 'DBObject',
'Kernel::System::DB=HASH(0x8f6d258)', 'TimeObject',
'Kernel::System::Time=HASH(0x8fb54e8)', ...) called at ./spam.pl line 46

I read nothing about MainObject in the API. But, I found change in CVS in
september 2006 in file Ticket.pm. It is safe to upgrade this file on a 2.1.2
OTRS production
server ?

I think you OTRS-version is not out of an official cvs-branch?


Regards.

Eric Boudrand

Bye, Alex
_______________________________________________
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev

Reply via email to