Error during ajax communication

Moderator: crythias

Post Reply
MiXoiD
Znuny newbie
Posts: 3
Joined: 15 Mar 2011, 15:15
Znuny Version: 3.0.6

Error during ajax communication

Post by MiXoiD »

Hello
I have installed new version otrs 3.0.6 and i have a problem.
I turn on sla
When i create new ticket and select customer and queue,then pop-up new windows with error "Error during ajax communication"
What i wrong do?
Thank you.
otrs 3.0.6 iis 7.5 mssql2008r2
DeCorrino
Znuny newbie
Posts: 2
Joined: 16 Mar 2011, 14:47
Znuny Version: 3.0.6

Re: Error during ajax communication

Post by DeCorrino »

Hi.

Same problem here.

After update (2.0.4 -> 3.0.6) pop-ups "Error during ajax communication".

Any hints?

Greetings
Mario
OTRS 3.0.6 - ITSM 3.0.1
DeCorrino
Znuny newbie
Posts: 2
Joined: 16 Mar 2011, 14:47
Znuny Version: 3.0.6

Re: Error during ajax communication

Post by DeCorrino »

Hi again,

I solved the problem.

apache log:
[Wed Mar 16 13:53:53 2011] -e: Apache2::Reload: Can't locate /opt/otrs/Kernel/cpan-lib/URI/Escape.pm
[Wed Mar 16 13:54:27 2011] -e: Apache2::Reload: Can't locate /opt/otrs/Kernel/cpan-lib/JSON/PP58.pm

After I installed the modules with CPAN, it works.

Greetings,
Mario
OTRS 3.0.6 - ITSM 3.0.1
metus
Znuny newbie
Posts: 4
Joined: 07 Jun 2011, 16:36
Znuny Version: 3.0.8
Real Name: Severin

Re: Error during ajax communication

Post by metus »

Hi guys

i'm facing the same problem with the "Ajax communication error".
My OTRS is running on IIS7 with Activeperl and MSSQL2008 DB.

Can anyone please tell me, how to fix this?

Thanks

ps: Migrating to Linux is not an option for me;)
ferrosti
Znuny superhero
Posts: 723
Joined: 10 Oct 2007, 14:30
Znuny Version: 3.0
Location: Hamburg, Germany

Re: Error during ajax communication

Post by ferrosti »

You have read the post above, haven´t you?
openSuSE on ESX
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
metus
Znuny newbie
Posts: 4
Joined: 07 Jun 2011, 16:36
Znuny Version: 3.0.8
Real Name: Severin

Re: Error during ajax communication

Post by metus »

Yes i've read it...
ok... so installing the following perl modules should fix the issue?

URI/Escape.pm
JSON/PP58.pm

But... how can i install this modules on Activeperl? I already have found the package manager... but no way to find these modules.

ps: the modules seemed to be installed...

c:\>ppm install uri::escape
No missing packages to install

c:\>ppm install json::pp58
No missing packages to install

any other ideas? Some help would really be apreciated... unfortunatly i'm very unxperienced in perl installation.

thanx
ferrosti
Znuny superhero
Posts: 723
Joined: 10 Oct 2007, 14:30
Znuny Version: 3.0
Location: Hamburg, Germany

Re: Error during ajax communication

Post by ferrosti »

Make sure these packages are installed to the otrs path, not the perl path. It should work anyways, but it shows that it does not.
These packages are nothing more than directories and files located in your perl path, which you´ll then have to copy to the otrs path where apache is looking for them.
openSuSE on ESX
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
metus
Znuny newbie
Posts: 4
Joined: 07 Jun 2011, 16:36
Znuny Version: 3.0.8
Real Name: Severin

Re: Error during ajax communication

Post by metus »

Everything works fine now:)

The Problem was, that i used "Perl.exe "%s" %s" as the executable for the Perl/CGI Handler Mappings.
I changed now to Perlex30.dll and everything is working great.

thanks for the help.
Mike_B
Moderator
Posts: 266
Joined: 12 Jan 2010, 18:16
Znuny Version: CVS HEAD

Re: Error during ajax communication

Post by Mike_B »

metus wrote:Everything works fine now:)

The Problem was, that i used "Perl.exe "%s" %s" as the executable for the Perl/CGI Handler Mappings.
I changed now to Perlex30.dll and everything is working great.

thanks for the help.
I had mentioned issue with AJAX communication on PerlEx with JSON::XS installed. When I removed it, it all worked smooth...
--
Mike
huntingbears.nl - @michielbeijen on Twitter
juliom
Znuny newbie
Posts: 11
Joined: 11 Jul 2011, 18:00
Znuny Version: 3.0
Real Name: Julio
Company: Reply.com

Re: Error during ajax communication

Post by juliom »

hello all,

I am a complete newb at Perl and was wondering if someone could dumb this down a bit. I have tried to patch the URI/Escape.pm file over and over and have failed with same error code. I extracted the module into the OTRS\OTRS\bin\cgi-bin directory and I am using the very latest version of OTRS. Can someone please let me know what it is I am doing wrong. This AJAX error is starting to annoy the living hell out of me. Thanks!

"PPM> install uri:escape
Install package 'uri:escape?' (y/N): y
Installing package 'uri:escape'...
Error installing package 'uri:escape': Could not locate a PPD file for package u
ri:escape"


If someone could break this down step by step I will be forever grateful.
renee
Znuny expert
Posts: 241
Joined: 06 Feb 2009, 11:15
Znuny Version: 3.0.x
Company: Perl-Services.de
Contact:

Re: Error during ajax communication

Post by renee »

Packagenames in Perl have a double-colon... So it's URI::Escape! And I don't know if PPM is case sensitive and PPM accepts dashes, too.

So try:

Code: Select all

ppm> install URI-Escape
or

Code: Select all

ppm> install URI::Escape
Need a Perl/OTRS developer? You can contact me at info@perl-services.de
trad
Znuny newbie
Posts: 15
Joined: 22 Oct 2010, 10:55
Znuny Version: 3.0.9

Re: Error during ajax communication

Post by trad »

I experience the same problem with OTRS 3.0.9 under Windows 2003 with Apache and mysql.

I installed the URI::Escape package which I had to copy from the strawberry perl directory to the otrs/kernel/cpan directory. But I couldn't find the JSON::PP58 package with the ppm tool. I found the JSON::PP58 package on the different sites in the format tar.gz but with that I couldn't do anything. I found out there's a PP58.pm file in the JSON.tar.gz file and copied that into the otrs/kernel/cpan/json directory which didn't helped either.

As you can see I don't really have a clue about perl.

I hope someone can help me here because it's really annoying to not be able to create fully qualified telephone tickets...
OTRS 3.0.11
OTRS::ITSM 3.0.4
OS: Windows 2003
DB: MySQL 5.1.51
trad
Znuny newbie
Posts: 15
Joined: 22 Oct 2010, 10:55
Znuny Version: 3.0.9

Re: Error during ajax communication

Post by trad »

I changed everything (OTRS, mySQL and Apache) to UTF-8 Characterencoding and it seems there's no problem anymore.
OTRS 3.0.11
OTRS::ITSM 3.0.4
OS: Windows 2003
DB: MySQL 5.1.51
Kreuzi2000
Znuny newbie
Posts: 14
Joined: 04 Aug 2010, 09:13
Znuny Version: 3.0.9

Re: Error during ajax communication

Post by Kreuzi2000 »

Hello,
like Mike_B wrote, the problem is located in the JSON::XS Module, it is not working well on windows server.
There is a Bug reported: http://bugs.otrs.org/show_bug.cgi?id=7337

Can somebody please help me, i have to remove JSON::XS and i don´t know how. My system is installed with the windows installer, if i try to remove the module with "ppm remove JSON::XS" i get an error "Error removing JSON-XS: Package 'JSON-XS' has not been installed by PPM".
Thank you very much!
OTRS 2.4.8, Windows Server 2008R2, MS SQL 2008
OTRS 3.0.11 (Testserver), Windows Server 2008R2, MS SQL 2008
b0rgi85
Znuny newbie
Posts: 16
Joined: 02 May 2011, 12:22
Znuny Version: 3.2.2
Real Name: Marc Borgner
Company: point S Deutschland GmbH

Re: Error during ajax communication

Post by b0rgi85 »

Is there any bugfix for this problem?
I've got the same problem then Kreuzi2000
Hello,
like Mike_B wrote, the problem is located in the JSON::XS Module, it is not working well on windows server.
There is a Bug reported: http://bugs.otrs.org/show_bug.cgi?id=7337

Can somebody please help me, i have to remove JSON::XS and i don´t know how. My system is installed with the windows installer, if i try to remove the module with "ppm remove JSON::XS" i get an error "Error removing JSON-XS: Package 'JSON-XS' has not been installed by PPM".
ferrosti
Znuny superhero
Posts: 723
Joined: 10 Oct 2007, 14:30
Znuny Version: 3.0
Location: Hamburg, Germany

Re: Error during ajax communication

Post by ferrosti »

There a usually two directories that include perl modules. One is within the default perl installation directory (Active Perl under Windows or whichever you chose), and the other one is within OTRS ($OTRS_HOME\Kernel\cpan-lib).
Delete the whole directory of the unwanted modules, restart your webserver (in case of mod_perl) and you should be ready to go.
openSuSE on ESX
IT-Helpdesk: OTRS 3.0
Customer Service: OTRS 3.0 (upgraded from 2.3)
Customer Service (subsidiary): OTRS 3.0
+additional test and development systems
frank83
Znuny newbie
Posts: 12
Joined: 12 Oct 2010, 09:08
Znuny Version: 2.4.8 / 2003-Win32

Re: Error during ajax communication

Post by frank83 »

Which Perl Modules in ...$OTRS_HOME\Kernel\cpan-lib... are unwanted ???
Produktiv:
OTRS 3.0.11
OS: Server 2003-Win32 auf VMware-ESX
Windows 2003 AD Integration (agents, customer), Exchange Anbindung
----------------------------------------------------------------------------------------
Test:
2 x OTRS 3.0.11
OS: Server 2003-Win32 auf VMware-ESX
Windows 2003 AD Integration (agents, customer), Exchange Anbindung
a174448
Znuny newbie
Posts: 2
Joined: 29 Nov 2012, 14:05
Znuny Version: 3.1.11
Real Name: Helge Høgetveit
Company: Ineos

Re: Error during ajax communication

Post by a174448 »

Hi,
Had the same problem on a fresh SLES11 SP2 and OTRS 3.1.11.
In addition to the dependences that are mentioned during the otrs rpm install you must install perl-DBD-mysql.
Then it works...
joecopty
Znuny newbie
Posts: 22
Joined: 11 Jan 2013, 01:42
Znuny Version: 3.2.6
Real Name: Joseph Copty
Company: TMC

Re: Error during ajax communication

Post by joecopty »

I had a similar issue with OTRS 3.2.6 on windows 7 with MSSQL and running on IIS.
As Mike_B said removing the JSON::XS fixed the problem for me.
Thanks
Joe
Sydney, Australia
OTRS 3.3.6 on Windows Server 2003, IIS6 with MSSQL database
invaderzog
Znuny newbie
Posts: 9
Joined: 14 May 2013, 02:02
Znuny Version: 3.1.12

Re: Error during ajax communication

Post by invaderzog »

I wanted to call your attention to my thread: viewtopic.php?f=63&t=20533

I'm making some progress on getting the AJAX errors resolved....
OTRS 3.1.12 / Windows / MySQL
Post Reply