Invalid Return Payload

esears1 wrote on Tuesday, December 13, 2005:

Hi,

what causes this error?

Fault: Code: 2 Reason ‘Invalid return payload: enabling debugging to examine incoming payload’

I am getting it when I update demographics.  I am not sure why it’s happening.  I’m not sure how to turn on debugging.  I am running openemr 2.7.3-rc1

Thanks…

sunsetsystems wrote on Tuesday, December 13, 2005:

See http://www.oemr.org/modules/wiwimod/index.php?page=FreebInstall&back=WiwiHome for some debugging tips.

– Rod
www.sunsetsystems.com

esears1 wrote on Tuesday, December 13, 2005:

ok so your saying it could be freeb related? I’ll look at the link…

sunsetsystems wrote on Tuesday, December 13, 2005:

Sorry, I replied too quickly.  In this case it indicates an error in communicating with ws_server.pl, i.e. the SQL-Ledger interface.  Check your web server logs.

– Rod
www.sunsetsystems.com

esears1 wrote on Friday, December 16, 2005:

Well, i can’t find out what the problem is… I did find in the web logs these errors.

Notice: Undefined variable: special_timeout in /usr/local/apache2/htdocs/openemr/interface/globals.php on line 80

Notice: Undefined variable: ignoreAuth in /usr/local/apache2/htdocs/openemr/interface/globals.php on line 119

Notice: Constant ADODB_FETCH_ASSOC already defined in /usr/local/apache2/htdocs/openemr/library/sql.inc on line 6

Notice: Undefined index: auth in /usr/local/apache2/htdocs/openemr/library/auth.inc on line 7

Notice: Undefined index: auth in /usr/local/apache2/htdocs/openemr/library/auth.inc on line 19

Notice: Use of undefined constant mode - assumed ‘mode’ in /usr/local/apache2/htdocs/openemr/interface/main/main_screen.php on line 22

Notice: Undefined index: mode in /usr/local/apache2/htdocs/openemr/interface/main/main_screen.php on line 27

I’m not sure if they are related (prob) to the error #2.  Can someone help?

Thanks

andres_paglayan wrote on Friday, December 16, 2005:

those are notices, nor errors, but the html output they produce may break other things such as sessions,
in your php.ini file, turn off showing notices and turn on logging them,

sunsetsystems wrote on Friday, December 16, 2005:

I think enabling debugging probably means uncommenting some of the debugging code in /library/classes/WSWrapper.class.php.  Sorry this is light on details but I’ve never had to do that before.

I really don’t like the way this XML-RPC stuff is implemented.  It’s very user-unfriendly and should be reworked.

– Rod
www.sunsetsystems.com

esears1 wrote on Wednesday, December 28, 2005:

I have the showing errors off in php.ini and I have the logging on.  I’m still getting the Invalid return payload errors.  I’ll try to look at the WSWrapper.class.php file and see if I can comment out the debug details.  I agree, I don’t like the xml-rpc stuff either…

esears1 wrote on Wednesday, December 28, 2005:

ok that fixed it…  I took out that last if statement on the fault codes… but if I ever get a different error, i won’t know about it :<  I’ll have to re-enable it.

sunsetsystems wrote on Wednesday, December 28, 2005:

That doesn’t sound like a fix to me!  You’re just masking the error.

I have a feeling you are not looking in the APACHE error log.  Something like /var/log/apache2/error.log?  The error is produced in a Perl app, not PHP.  Very likely a missing module.

– Rod
www.sunsetsystems.com

tekknogenius wrote on Thursday, January 05, 2006:

If you’re using sql-ledger 2.6.3 it probably due to that. I just upgraded to sql-ledger 2.6.3, implemented the ws_server_26.pl and now I get the error because of a missing element in the insert (chart_id value I believe). I’ll have to revert to 2.4.16 (I think) and try to see what’s missing in the call.

tekknogenius wrote on Thursday, January 05, 2006:

Note I’m only getting this error when I try to “generate and clear” everythig else seems fine. I get balances fine, add people fine with 2.6.3. Maybe you have another issue since you’re getting errors in the demographics section. Check to make sure you have the ws_server.pl set up correctly (mainly the directory location, the default value may be incorrect for your set up)