jijopaulose / ezstats

Automatically exported from code.google.com/p/ezstats
0 stars 0 forks source link

Bug Report - Undefined offset errors Server Viewer #210

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
 Your version:0.71a 
http://www.teamrezurrection.com/ezServer/admin/   (debug on)

Getting the following errors since I installed .71a

Notice: Undefined offset: 2 in 
/home/mcrider/public_html/ezServer/classes/server.php on line 260

Notice: Undefined offset: 3 in 
/home/mcrider/public_html/ezServer/classes/server.php on line 261

Notice: Undefined offset: 4 in 
/home/mcrider/public_html/ezServer/classes/server.php on line 262

Notice: Undefined offset: 5 in 
/home/mcrider/public_html/ezServer/classes/server.php on line 263

Notice: Undefined offset: 6 in 
/home/mcrider/public_html/ezServer/classes/server.php on line 264
{"message":"RCON of server ReZ - ReZURRECTION: | ALL MAPS | Conquest | No Rules 
| reddit loaded","serverid":"1","html":"\n

Original issue reported on code.google.com by mark.cri...@gmail.com on 7 Mar 2013 at 2:31

GoogleCodeExporter commented 9 years ago
Having the same issue, I managed to fix, by changing the index values for player

$this->player[$i]["name"]   = $result[1];
$this->player[$i]["team"]   = $result[3];
f (isset($this->squads[$result[4]])) $this->player[$i]["squad"] = 
$this->squads[$result[4]]; else $this->player[$i]["squad"] = "X";
$this->player[$i]["kills"]  = $result[5];
$this->player[$i]["deaths"] = $result[6];
$this->player[$i]["score"]  = $result[7];

This worked perfect last night but again today once again the index is off 
again.  So it seems as though the array of values returned from bf3Stats keeps 
changing.

Original comment by GearNote on 8 Mar 2013 at 5:08

GoogleCodeExporter commented 9 years ago
Hi!

These errors are caused by the new maps and gamemodes of the Endgame DLC. I'll 
release a new version of the Serverviewer this weekend.

Regards, ezzemm

Original comment by ezzem...@googlemail.com on 8 Mar 2013 at 5:17

GoogleCodeExporter commented 9 years ago
Hi!

I've released the new version, which fix this error.

Regards, ezzemm

Original comment by ezzem...@googlemail.com on 10 Mar 2013 at 11:44

GoogleCodeExporter commented 9 years ago

Original comment by ezzem...@googlemail.com on 16 Jun 2013 at 12:25