Page 1 of 1

[Fixed] Error 500 if Player has no Tags

Posted: 09 May 2011, 13:52
by m4rcel
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:

Code: Select all

	$tmPlayers = new TrackMania_Players(TMWS_USER, TMWS_PASS);
	$tags = $tmPlayers->getTags($login);
	echo "This user has ".count($tags)." Tags.<br>\n";
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 ^^)

Re: Error 500 if Player has no Tags

Posted: 09 May 2011, 13:59
by w1lla
It might happen its just a error that can't be reported very well.

Its almost the same exception error as i provided in http://forum.maniaplanet.com/viewtopic. ... 212#p19738.

Re: Error 500 if Player has no Tags

Posted: 09 May 2011, 14:19
by gouxim
Thanks for the report. It was indeed a server error when a players does not have tags. It's just been fixed.

Re: Error 500 if Player has no Tags

Posted: 09 May 2011, 14:23
by m4rcel
It is working fine now, thank you ;)