PHP error with mob high scores page. #6


  • Defect
  • Accepted
Open
Assigned to _ForgeUser7509252
  • _ForgeUser7053180 created this issue May 8, 2012

    What steps will reproduce the problem?
    1. Install the plugin.
    2. install the web part and navitage to it.
    3. Press on MOB.

    What is the expected output? What do you see instead?
    Expected output is no errors, but it has errors, but the page is working, I hope.

    What version of the product are you using?
    0.8.1

    Do you have an error log of what happened?

    Warning: Division by zero in /home/bubka3/public_html/minecraft/highscore/mobhighscores.php on line 54
    Warning: Division by zero in /home/bubka3/public_html/minecraft/highscore/mobhighscores.php on line 54

  • _ForgeUser7053180 added the tags New Defect May 8, 2012
  • _ForgeUser7509252 posted a comment May 8, 2012

    ok, nothing major then, I have lots of important exams atm, so I might not have time to deal with this until the 29th of May, I might though, I don't know. Hang in there, it's nothing that will affect the plugin much...

  • _ForgeUser7509252 removed a tag New May 8, 2012
  • _ForgeUser7509252 added a tag Accepted May 8, 2012
  • _ForgeUser8998289 posted a comment Jun 7, 2012

    i've found the problem, when the web page (php) attempts to calculate the kill/death ratio for pvp or mob kills there is nothing to calculate because in the mysql database the default value set for kills/death's is nothing, when a player first gets a kill but hasnt died yet there is no value set for it yet, or vice versa.. setting the default value in the mob/pvp tables to 1 for deaths/kills should fix this problem.. unfortunately setting it to 0 wont work for some reason.. i think its something to do with the code or php doesnt like dividing 0.


    Edited Jun 7, 2012

To post a comment, please login or register a new account.