muukis / l4dstats

SourceMod plugin (Custom Player Stats) for collecting statistics and creating player ranking in Left 4 Dead and Left 4 Dead 2 games
https://forums.alliedmods.net/showthread.php?t=115965
17 stars 9 forks source link

Function split() is deprecated #2

Open Owned67 opened 12 years ago

Owned67 commented 12 years ago

Hello,

if $showplayerflags set to 1 : [QUOTE] Deprecated: Function split() is deprecated in /home/users1/1221/htdocs/www/l4d2/common.php on line 741

Deprecated: Function split() is deprecated in /home/users1/1221/htdocs/www/l4d2/common.php on line 743[/QUOTE]and : [QUOTE] Warning: simplexml_load_file(http://steamcommunity.com/profiles/76561198011665417?xml=1) [function.simplexml-load-file]: failed to open stream: HTTP request failed! HTTP/1.1 503 Service Unavailable in /home/users1/1221/htdocs/www/l4d2/common.php on line 372

Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity "http://steamcommunity.com/profiles/76561198011665417?xml=1" in /home/users1/1221/htdocs/www/l4d2/common.php on line 372[/QUOTE]This problem does not occur all the time, maybe the steam problem?

muukis commented 12 years ago

I'll do a fix for it - thanks for the feedback!

Owned67 commented 12 years ago

and for

[QUOTE] Warning: simplexml_load_file(http://steamcommunity.com/profiles/76561198011665417?xml=1) [function.simplexml-load-file]: failed to open stream: HTTP request failed! HTTP/1.1 503 Service Unavailable in /home/users1/1221/htdocs/www/l4d2/common.php on line 372

Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity "http://steamcommunity.com/profiles/76561198011665417?xml=1" in /home/users1/1221/htdocs/www/l4d2/common.php on line 372[/QUOTE]

This problem does not occur all the time, maybe the steam problem?

muukis commented 12 years ago

It looks to me it's something with Steam not responding etc. I am sure however, that the stats plugin could be coded better to manage the simplexml_load_file failure, but I'm not sure I have the time to dig in to it?

If it happens very often or it bothers you too much, I'd suggest trying to disable avatar loading from your config.php: $players_avatars_show = False;

Owned67 commented 12 years ago

Ok thank you for the answer, no problem, I know that time is precious and that still is not enough.