1. Code:
    [Oxide] 2:36 AM [Error] Failed to call hook 'OnEntityDeath' on plugin 'Stats' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 2:36 AM [Debug]   at Oxide.Plugins.Stats.OnEntityDeath (.BaseCombatEntity entity, .HitInfo hitInfo) [0x00000] in <filename unknown>:0
      at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
      at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
     
  2. For the kill leaderboards that you are working on - will we be able to embed this in, say, a wordpress page? Also, it would be great to have some other stats on the leaderboard like top 10 gathers and builders.

    Thanks for a great plugin.
    [DOUBLEPOST=1437848403,1437840582][/DOUBLEPOST]Just got the following error in a popup when trying to view stats.php?stat=players.

    Code:
    DataTables warning: table id=DataTables_Table_0 - Invalid JSON response.  For more information about this error, please see http://datatables.net/tn/1
    With developer tools the Ajax request:

    Code:
    {"data":[],"draw":null,"recordsFiltered":"0","recordsTotal":"13","query":"SELECT SQL_CALC_FOUND_ROWS `id`, `name`, `online_seconds` FROM player ORDER BY LIMIT 0, 0"}
    No data was returned by the server.
     
  3. I've got the same problems with all pages now (exept live info - 1st page), and doesn't know hot to fix it. Server reboot (WEB, not rust) - doesn't help. Mysql works fine, all sites are available and has no errors.
     
  4. Can you both please pastebin and post here your data.php files?
     
  5. can you check your error and access log for php, there might be some errors or something
     
  6. I would know exactly how to do that if it was on my own box. Not sure it's possible through cpanel?
     
  7. There is a button on the cpanel that links to the error log.
    [​IMG]
     
  8. Nothing relevant in the error log.
     
  9. can you give me a link to your stats? or is it private?
    [DOUBLEPOST=1437857407][/DOUBLEPOST]@antisoma Ok, I found why its erroring, but I have no idea why its erroring... Basically, when you first open a stat, it will error, then try ordering the data by clicking on any of the columns, and then it will suddenly work. It might be that your database doesn't like to order data properly? I have no clue.
    [DOUBLEPOST=1437857455][/DOUBLEPOST]Seems like your database doesn't like to order anything in an ascending sequence
    [DOUBLEPOST=1437857530][/DOUBLEPOST]In the next version I will make it so it is ordered descending by default.
     
  10. Okay, thanks.
     
  11. Leaderboards are coming tomorrow!
    [​IMG]
     
  12. Latest update
    Code:
    [Oxide] 6:23 PM [Error] Failed to call hook 'OnEntityDeath' on plugin 'Stats' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 6:23 PM [Debug] at Oxide.Plugins.Stats.OnEntityDeath (.BaseCombatEntity entity, .HitInfo hitInfo) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
     
    Last edited by a moderator: Jul 28, 2015
  13. A guide for a database noob on how to implement this awesome plugin would be excellent! ;-) Say....using a free database like MS SQL Express 2014 or MySQL, or whatever would be appropriate.
     
  14. Hello I was having trouble setting up my Player Stats for my server, I was hoping somebody could help me. I seem to get no errors on my RUSTY console nor when I refresh the page it just seems to never upload anything is all.

    Plugin being Used: http://oxidemod.org/plugins/stats.1188/

    Webpage: http://www.alpineserver.net/www/ Basically displays the Dashboard but it will never update any stats.
     
  15. did u change the database.php and put in the token and mysql connection?

    did u execute the sql file to ur database?
     
  16. Code:
    <?php$TOKEN = "Token is written here";$DB_HOST = "107.180.34.199";
    $DB_NAME = "Webpage_Stats";
    $DB_USER = "madara94";
    $DB_PASS = "";$pdo = new PDO("mysql:dbname=".$DB_NAME.";host=".$DB_HOST, $DB_USER, $DB_PASS);
    $pdo->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_NUM);
    Code:
    {
      "Query_URL": "http://www.alpineserver.net/www/",
      "Token": "Token is written here"
    }
    I get no errors and by execute do you mean just import? I've imported it.
     
  17. is the mysql database on the same machine as the webserver? if yes try "localhost" as ip


    Code:
    {
      "Query_URL": "http://www.alpineserver.net/www/",
      "Token": "Token is written here"
    }

    should be


    Code:
    {
      "Query_URL": "http://www.alpineserver.net/www/query.php",
      "Token": "Token is written here"
    }
     
  18. I've just tried all your things, definitely your "Query.php" would be one issue I had :) I'm not quite sure how long I have to wait. I have players currently on and dont want to restart the server. If I wait awhile will it automatically update?