Open connorhsm opened 2 years ago
@risvh I'm having some trouble figuring what causes this error. I believe the query I've found in server.php is executed when displaying the Genes page on the client, but can't reproduce the error myself. I also can't spot any immediate errors in the query, apart from some formatting differences in the PHP.
Are you able to offer any help here?
Although
...WHERE offspring.player_id = ?? AND offspring.death_time >...
It looks as if there might be a missing ID in the query, where I have added the ??.
Yes there should be an ID there "WHERE offspring.player_id = $id ".
and further above $id = fs_mysqli_result( $result, 0, "player_id" );
which in turn comes from the offspring table
https://github.com/twohoursonelife/OneLifeWeb/blob/567951a2eebca0e130e8f008b0f90ffaad36ec89/web/public/fitnessServer/server.php#L2116-L2128
Fitness Server causing fatal error:
Suspected code/query causing issues: https://github.com/twohoursonelife/OneLifeWeb/blob/567951a2eebca0e130e8f008b0f90ffaad36ec89/web/public/fitnessServer/server.php#L2132-L2141