[SOLVED] Interface Customer TemplateGenerator.pm with error

Moderator: crythias

Post Reply
amdkryn
Znuny expert
Posts: 187
Joined: 02 Oct 2012, 02:52
Znuny Version: 5.0.27

[SOLVED] Interface Customer TemplateGenerator.pm with error

Post by amdkryn »

Hi,

From the customer screen I created some template ticket but when I try to use any of them the message below:

Can not locate object method " GetUserData " via package " Kernel :: System :: CustomerUser " at / opt/otrs/KIX4OTRS/Kernel/System/TemplateGenerator.pm line 1458 .

URL: http://191.1.X.X/otrs/customer.pl?Actio ... faultSet=8 (With any template)

Can anyone give help with GetUserData method ? In the agent interface works without errors .

Following code that I believe is related to the error :

 

Code: Select all

# cleanup
    $ Param { Text } = ~ s / $ $ End Tag + / - / gi ;

    # KIX4OTRS - capeIT
    my $ Tag2 ;

    if ( $ Param { UserID } ) {
        $ Tag = $ Start . ' OTRS_Agent_ ' ;

        # EO - KIX4OTRS capeIT
        $ $ Start = Tag2 . ' OTRS_CURRENT_ ' ;
        my% CurrentUser = $ Self - > { UserObject } - > GetUserData (
            UserID = > $ Param { UserID } ,
            NoOutOfOffice => 1
        );

        Html # quoting of content
        if ( $ param { RichText } ) {
            for ( sort keys % CurrentUser ) {
                next if $ CurrentUser { $ _ } ! ;
                $ CurrentUser { $ _ } = $ Self - > { HTMLUtilsObject } - > ToHTML (
                    String = > $ CurrentUser { $ _ } ,
                );
            }
        }

        $ HashGlobalReplace - > ( " $ tag | $ Tag2 " , CurrentUser % ) ;

        # Replace other needed stuff
        $ Param { Text } = ~ s / $ $ OTRS_FIRST_NAME Start End / $ { CurrentUser } UserFirstName / GXMs ;
        $ Param { Text } = ~ s / $ $ OTRS_LAST_NAME Start End / $ { CurrentUser } UserLastName / GXMs ;

        # cleanup
        $ Param { Text } = ~ s / $ $ End Tag + / - / gi ;
        $ Param { Text } = ~ s / $ $ End Tag2 + / - / gi . ;

        # KIX4OTRS - capeIT
    }

    # EO - KIX4OTRS capeIT
I've replaced the file with the original KIX4OTRS but gives another error:

Can not locate object method " ReplacePlaceHolder " via package " Kernel :: System :: TemplateGenerator " at / opt/otrs/KIX4OTRSITSMConfigManagement/Kernel/Modules/CustomerTicketMessage.pm line 260
Last edited by amdkryn on 29 Apr 2014, 20:03, edited 2 times in total.
OTRS version 5.0.27 (With ITSM), Operating System OpenSuse 12 with Mysql.
amdkryn
Znuny expert
Posts: 187
Joined: 02 Oct 2012, 02:52
Znuny Version: 5.0.27

Re: Interface Customer - CustomerTicketMessage.pm with error

Post by amdkryn »

Anybody?
OTRS version 5.0.27 (With ITSM), Operating System OpenSuse 12 with Mysql.
amdkryn
Znuny expert
Posts: 187
Joined: 02 Oct 2012, 02:52
Znuny Version: 5.0.27

Re: Interface Customer - TemplateGenerator.pm with error

Post by amdkryn »

Please, does anyone have any tips?
OTRS version 5.0.27 (With ITSM), Operating System OpenSuse 12 with Mysql.
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Interface Customer - TemplateGenerator.pm with error

Post by reneeb »

Send the cape-IT guys an email as this seems to be a KIX4OTRS issue...
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
amdkryn
Znuny expert
Posts: 187
Joined: 02 Oct 2012, 02:52
Znuny Version: 5.0.27

Re: Interface Customer - TemplateGenerator.pm with error

Post by amdkryn »

I sent an email to them and got a response "Reported the error is known and fixed in the next release." But did not inform a prospective date, only hope.
OTRS version 5.0.27 (With ITSM), Operating System OpenSuse 12 with Mysql.
amdkryn
Znuny expert
Posts: 187
Joined: 02 Oct 2012, 02:52
Znuny Version: 5.0.27

Re: Interface Customer - TemplateGenerator.pm with error

Post by amdkryn »

Problem solved after installing version 6.0.3. Thank you.

http://www.cape-it.de/files/ChangeLogs/ ... RS_6-0.txt

(2014/03/10) - Bugfix: T2014031090000263 (ticket templates not working in customer frontend) (ddoerffel)
OTRS version 5.0.27 (With ITSM), Operating System OpenSuse 12 with Mysql.
Post Reply