[Fixed] Error 500 if Player has no Tags
Posted: 09 May 2011, 13:52
I found out another bug, but it seems to be on Server side this time.
It seems as if an user has no Tags, something is getting wrong on the server, as beginning with the second request an Error 500 is returned instead of an empty array.
My code is not very complex:
On first script call, "This user has 0 Tags." is outputted correctly, but when calling it another time, there is only the TrackMania_Exception containing the 500 error left. (All later calls, too, will throw an Exception.)
If the requested player has tags, all is working fine, so it seems that the "0-tags" are causing this error. Whether the player is TMUF or TMNF seems not to have any influence on this error. (Can TMNF players have Tags? Idk ^^)
It seems as if an user has no Tags, something is getting wrong on the server, as beginning with the second request an Error 500 is returned instead of an empty array.
My code is not very complex:
Code: Select all
$tmPlayers = new TrackMania_Players(TMWS_USER, TMWS_PASS);
$tags = $tmPlayers->getTags($login);
echo "This user has ".count($tags)." Tags.<br>\n";
If the requested player has tags, all is working fine, so it seems that the "0-tags" are causing this error. Whether the player is TMUF or TMNF seems not to have any influence on this error. (Can TMNF players have Tags? Idk ^^)