Menu

#2 patch for PHP 5.2

open
nobody
None
5
2007-04-26
2007-04-26
Anonymous
No

In some environments, AJASON will cause PHP to make an HTTP 500 error. This is due to a bug in newer versions of PHP in which headers are not sent correctly.

Simply comment out line #159 of AjaxServer.php if your are receiving 500 errors from this library. Your script should then look like below:

AjaxServer.php
158:
159: //header( 'Content-Type', 'text/json' );
160: return $json->encode( $response );

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.