Hey,

jetzt wirfts ein:

Got no TimeObject! at /opt/otrs/Kernel/System/User.pm line 85, <PRODUCT>
line 4.

aus :/

Gruss,
joey

Torsten Thau wrote:
> joey schrieb:
>> Moin miteinander,
> 
>> ein:
> 
>> while read user email sname lname; do ./otrs.addUser -f $sname -l $lname
>> -p $user -g users -e $email $user;done < users
> 
>> spuckt folgendes aus:
> 
>> Got no MainObject! at /opt/otrs/Kernel/System/DB.pm line 84, <PRODUCT>
>> line 4.
> 
>> Jemand ne Idee? Die Syntax stimmt.
> 
> 
> ...aha Du verwendest 2.2-b irgendwas - keine Ahnung ob das Problem in
> der aktuellen b3 schon beseitigt ist, aber in b2 fehlt in otrs.addUser
> die Insanziierung des MainObjects vor der Instanziierung des DB-Objects.
> So muesste es fkt.:
> 
> 
>  28 use strict;
>  29 use Kernel::Config;
>  30 use Kernel::System::Log;
>  31 use Kernel::System::DB;
>  32 use Kernel::System::User;
>  33 use Kernel::System::Main;
>  34
>  35 # create common objects
>  36 my %CommonObject = ();
>  37 $CommonObject{ConfigObject}  = Kernel::Config->new(%CommonObject);
>  38 $CommonObject{LogObject}     =
> Kernel::System::Log->new(%CommonObject, LogPrefix => 'otrs.addUser');
>  39 $CommonObject{MainObject}    = Kernel::System::Main->new(%CommonObject);
>  40 $CommonObject{DBObject}      = Kernel::System::DB->new(%CommonObject);
>  41 $CommonObject{UserObject}    = Kernel::System::User->new(%CommonObject);
>  42
> 
> 
> Habe einen Bug eingestell, weil n.n. dazu gefunden:
> http://bugs.otrs.org/show_bug.cgi?id=1894
> 
> 
> viele Gruesse, Torsten Thau
> 
_______________________________________________
OTRS-de Mailingliste: otrs-de - Webpage: http://otrs.org/
Archiv: http://lists.otrs.org/pipermail/otrs-de/
Listenabo verwalten: http://lists.otrs.org/cgi-bin/listinfo/otrs-de/
Support oder Consulting fuer Ihr OTRS System?
=> http://www.otrs.com/

_______________________________________________
OTRS-de Mailingliste: otrs-de - Webpage: http://otrs.org/
Archiv: http://lists.otrs.org/pipermail/otrs-de/
Listenabo verwalten: http://lists.otrs.org/cgi-bin/listinfo/otrs-de/
Support oder Consulting fuer Ihr OTRS System?
=> http://www.otrs.com/

Antwort per Email an