AICC Incorrect format of GETPARAM Response
The AICC getparam response from Chamilo is URLENCODED, this should be plain text.
The standards dictate the format of the response is plain text, it also dictates that the forst part of the data model should follow immediately after the aicc_data= there should not be a new line.
WORKAROUND: Edit the main\newscorm\aicc_hacp.php
Line 101 - Remove $crlf after aicc=data=
//$result = $s_ec.$error_code.$crlf.$s_et.$error_text.$crlf.$s_ad.$crlf;
$result = $s_ec.$error_code.$crlf.$s_et.$error_text.$crlf.$s_ad;
Line 126 - Comment out the line that urlencodes the response
//$result = str_replace($convert_dec, $convert_enc, $result);
NOTE: It is probably a good idea also removing the various $tab whitespace prefixes to other elements lines 103 etc
Updated by Julio Montoya almost 9 years ago
- Status changed from New to Needs testing
- % Done changed from 0 to 50
Thanks for reporting I sent your 2 fixes + I changed this
//$tab = "\t"; $tab = "";