[Fixed] MultiplayerRankings: Syntax error, malformed JSON
Posted: 06 May 2011, 16:00
I'm just trying out every bit of the Web Services, and I came across this:
Gives the following error:
Same goes for getZoneRanking() ...
Code: Select all
$rankings['multiplayer'] = new TrackMania_MultiplayerRankings($username, $password);
$info = $rankings['multiplayer']->getPlayerRanking();
print_r($info);
Code: Select all
Fatal error: Uncaught exception 'TrackMania_Exception' with message 'Syntax error, malformed JSON' in E:\xampp\htdocs\tmws\src\trackmania-ws.php:471
Stack trace:
#0 E:\xampp\htdocs\tmws\src\trackmania-ws.php(347): TrackMania_WebServices->execute('GET', '/tmf/rankings/m...', Array)
#1 E:\xampp\htdocs\tmws\src\trackmania-ws.php(55): TrackMania_WebServices->executeGET('/tmf/rankings/m...', Array)
#2 E:\xampp\htdocs\tmws\tmws.php(24): TrackMania_MultiplayerRankings->getPlayerRanking()
#3 {main} thrown in E:\xampp\htdocs\tmws\src\trackmania-ws.php on line 471