AJAX Error in German View
Moderator: crythias
AJAX Error in German View
Hi,
I am using otrs 3.3.4. I am facing a strange problem. When I select agent preferred language 'Deutch', and create a new ticket. after selecting customer user, it shows an AJAX error -
Error during AJAX communication. Status: parsererror, Error: SyntaxError: JSON.parse: unexpected end of data
while In English language, it does not show this error. Could you please tell me what the problem is? I am using external backend for customers.
Thanks in Advance!
Gunjan
I am using otrs 3.3.4. I am facing a strange problem. When I select agent preferred language 'Deutch', and create a new ticket. after selecting customer user, it shows an AJAX error -
Error during AJAX communication. Status: parsererror, Error: SyntaxError: JSON.parse: unexpected end of data
while In English language, it does not show this error. Could you please tell me what the problem is? I am using external backend for customers.
Thanks in Advance!
Gunjan
-
- 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: AJAX Error in German View
Did you change anything or is this still stock OTRS?
Please show the JSON that is sent... Add a logging to the backend.
Please show the JSON that is sent... Add a logging to the backend.
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
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Re: AJAX Error in German View
Which file do you want?? i did not change anything.
Re: AJAX Error in German View
Could you please tell me where I can find JSON sent?
-
- 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: AJAX Error in German View
This is in Kernel/Modules/AgentTicketPhone.pm or Kernel/Modules/AgentTicketEmail.pm where the subaction 'AJAXUpdate' is handled.
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
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Re: AJAX Error in German View
Hi,
I have found that in
my $JSON = $Self->{LayoutObject}->BuildSelectionJSON(
If I change in
Translation => 0, then it works fine, but then it does not translate the services on the frontend. Could someone tell me how can I handle both the things means translation of services with ajax error.
I have found that in
my $JSON = $Self->{LayoutObject}->BuildSelectionJSON(
If I change in
Code: Select all
{
Name => 'ServiceID',
Data => $Services,
SelectedID => $GetParam{ServiceID},
PossibleNone => 1,
Translation => 1,
TreeView => $TreeView,
Max => 100,
},
-
- 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: AJAX Error in German View
Try to identify which service is the cause for the trouble and post the translated value here. I assume that an Umlaut and the wrong encoding might break it... In which encoding is the translation file stored (on Linux systems you can call "file -i Kernel/Language/de_.....pm") and do you use "use utf8;" in the translation file?
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
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Re: AJAX Error in German View
how can I find the name of the service that is causing issue?? my file is de_ZZZCustom.pm and I am also using utf8 in file. How can I check encoding of file?
Re: AJAX Error in German View
It is solved.
-
- 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: AJAX Error in German View
Please post the solution, so that others who have similar problems get an idea about what can be done.Gunjan wrote:It is solved.
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
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Re: AJAX Error in German View
In my custom Language File, for one service umlaut was not in the correct format. so this was causing AJAX error.