Thank you, Moritz, for your response. Sorry for the delayed response on my
part.

More information:

This problem cropped up (perhaps coincidentally) when I was trying to move
a work flow process from beta to live. Some of this had to be manual and
some export/import. There was also some customized code that is used in
certain situations. When this problem occurred, I tried to solve it and
was unsuccessful. I then went back to a previous backup of OTRS and the
problem was still there. I then restored from a week before I did anything
(when it was working fine) and the problem was still there. Not sure why
that is the case. My only other option is restore the whole virtual
machine, not just OTRS. I was rather not do that and instead solve the
problem if possible so it won't happen again. I still need to put up the
work flow into production.

In regard to what you said about the user records being incomplete, I
would think that a full restore from when everything was working would
make that correct. I f you can tell me how to check that, I can do that.

Here is the error message (generated when an item is selected from a
dynamic field drop down list or multiselect box):

Error during AJAX communication. Status: error, Error: Internal Server
Error

In the Net tab of firebug , it blows up when doing a POST against the
index.pl of the server with a 500 Internal Server Error. It is going
against port 80 and it shows 104ms.

The headers tab shows the following:

Connection      close
Content-Encoding        gzip
Content-Length  402
Content-Type    text/html; charset=iso-8859-1
Date    Fri, 27 Dec 2013 22:34:04 GMT
Server  Apache/2.2.22 (Ubuntu)
Vary    Accept-Encoding
Request Headersview source
Accept  application/json, text/javascript, */*; q=0.01
Accept-Encoding gzip, deflate
Accept-Language en-US,en;q=0.5
Cache-Control   no-cache
Connection      keep-alive
Content-Length  709
Content-Type    application/x-www-form-urlencoded; charset=UTF-8
Cookie  __utma=195136568.708832505.1344630644.1386606342.1386775185.17;
__utmz=195136568.1344630644.1.1.utmcsr=10.0.2.167:8080|utmccn=(referral)|u
tmcmd=referral|utmcct=/web/blake/profile;
SCREEN_NAME=6f41424a674c304a4358716239344b6937364e67486363793063732b753761
2b; OTRSAgentInterface=10e59a784de188e30b1a17be0a166fa882
Host    otrslamp.emacinc.com
Pragma  no-cache
Referer
http://otrslamp.emacinc.com/otrs/index.pl?Action=AgentTicketProcess
User-Agent      Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0)
Gecko/20100101 Firefox/26.0
X-ClickOnceSupport      ( .NET CLR 3.5.30729; .NET4.0E)
X-Requested-With        XMLHttpRequest

The Post Tab shows the following:

TicketID
;ProcessEntityID=P7;ActivityDialogEntityID=AD2;Expand=;AJAXDialog=1;FormID
=1388183642.11254158.1332558;DynamicField_EPN=;DynamicField_DepartmentRout
edTo=DR1;DynamicField_RequestedCompletionDateMonth=12;DynamicField_Request
edCompletionDateDay=27;DynamicField_RequestedCompletionDateYear=2013;Dynam
icField_ItemChangeType=ICT2;DynamicField_RequestersComments=;DynamicField_
AssociatedOrder=;DynamicField_AssociatedProductStepInfo=APS3;DynamicField_
AssociatedProducts=;DynamicField_PartDesc=;DynamicField_AssociatedProductR
oHSStatus=APR1;DynamicField_Status=Approval;;ChallengeToken=f96fa8bfb4c17e
d248824cdf4c0a2b11;Action=AgentTicketProcess;Subaction=AJAXUpdate;ElementC
hanged=DynamicField_ItemChangeType
Source
TicketID=;ProcessEntityID=P7;ActivityDialogEntityID=AD2;Expand=;AJAXDialog
=1;FormID=1388183642.11254158.1332558;DynamicField_EPN=;DynamicField_Depar
tmentRoutedTo=DR1;DynamicField_RequestedCompletionDateMonth=12;DynamicFiel
d_RequestedCompletionDateDay=27;DynamicField_RequestedCompletionDateYear=2
013;DynamicField_ItemChangeType=ICT2;DynamicField_RequestersComments=;Dyna
micField_AssociatedOrder=;DynamicField_AssociatedProductStepInfo=APS3;Dyna
micField_AssociatedProducts=;DynamicField_PartDesc=;DynamicField_Associate
dProductRoHSStatus=APR1;DynamicField_Status=Approval;;ChallengeToken=f96fa
8bfb4c17ed248824cdf4c0a2b11;Action=AgentTicketProcess;Subaction=AJAXUpdate
;ElementChanged=DynamicField_ItemChangeType

The response tab shows the following:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator,
 webmaster@localhost and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.</p>
<p>More information about this error may be available
in the server error log.</p>
<hr>
<address>Apache/2.2.22 (Ubuntu) Server at otrslamp.emacinc.com Port
80</address>
</body></html>

Please let me know if I can provide further information. I need to get
this resolved as soon as possible.

Thanks in advance...Dan Stover.

-----Original Message-----
From: dev-boun...@otrs.org [mailto:dev-boun...@otrs.org] On Behalf Of
Moritz Lenz
Sent: Saturday, December 28, 2013 10:16 AM
To: dev@otrs.org
Subject: Re: [dev] OTRS Ajax/JSON Issues

Hi Dan,

On 12/28/2013 04:44 PM, Dan Stover wrote:
> I am running OTRS 3.2.7 and have a beta system running at the same time.
> A while back, I ran into an issue on the live system where, when a
> user selects an item from a dynamic field drop down list, an Ajax
> communications error is generated. This does not happen on the beta
> system on the same virtual machine.

Could you please be more specific? What's that error message? If you do it
in firefox with firebug enabled, what does the "Net" tab show? Are there
any error messages in the log?

FWIW I could imagine that an incomplete user record in the database causes
server-side errors, and that would explain why you don't see the same
error in beta (which hopefully uses a different database).

> It appears to be related to the following call in
> AgentTicketProcess.pm but is endemic through the entire live system
> (only with drop down lists and multiselect boxes);
>
> my $JSON = $Self->{LayoutObject}->BuildSelectionJSON( [@JSONCollector]
> );
>
> Any advice would be appreciated. Thanks.Dan.

Cheers,
Moritz
_______________________________________________
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
_______________________________________________
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