WEBStatsX

Discussion in 'Bukkit Tools' started by cynexit, Jan 18, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    Lolmewn

    I'm going to guess that's 1.29 then (1.30 was also released, but is alpha and in-dev). I'll look into this.
     
  2. Offline

    Charly_ZA

    Thanks :) It only shows the play time as a number when you look here.

    Hi. I'm getting this error now :/

    Code:
    2013-09-24 06:12:34 [INFO] [Stats] Enabling Stats vjenkins-Stats-373
    2013-09-24 06:12:34 [WARNING] [Stats] Couldn't disable Stat StatName1, no StatType found for this string.
    2013-09-24 06:12:35 [SEVERE] [Stats] Couldn't retrieve connection from pool, erroring
    2013-09-24 06:12:35 [SEVERE] [Stats] MySQL connection failed, disabling plugin!
    2013-09-24 06:12:35 [INFO] [Stats] Disabling Stats vjenkins-Stats-373
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 30, 2016
  3. Offline

    Lolmewn

    Charly_ZA MySQL Configured wrongly, it cannot get a connection and dies. Edit the config.yml and it *should* work again.
     
  4. Offline

    Charly_ZA

    So webstatsex only reads the info from the stats plugin? They must go to the same database?
     
  5. Offline

    Lolmewn

    Yes, that is correct. They do not have some connection between them, just the database (right now anyway).
     
  6. Offline

    gerardvanschip

    Uploaded the files, added the mysql info and when I get to check I get "Fatal error: Call to undefined function curl_init() in" at "No syntax errors in config?".

    Bit stumped there. The stats plugin works fine, I can do stats from the minecraft client. Anyone got any suggestions as I would LOVE to pull out more stats than the limited info on the client.
     
  7. Offline

    Lolmewn

    gerardvanschip Enable/install the CURL module for PHP. Also, the stats in-game are actually configurable which one you see, check your config.yml ;)
     
  8. Offline

    gerardvanschip

    You rock, did that, now it went through the list much further but got stuck after "Var $enable_server_page is in config?" and gave me this error "Fatal error: Call to undefined function mysqli_connect() in /home/vanschip/public_html/kaizen-worlds/stats/check.php on line 100".

    Whats next?

     
  9. Offline

    Lolmewn

    gerardvanschip Also enable/install the mysqli module. Did you remove some config options? Basically what it says is it can't find $enable_server_page.
     
  10. Offline

    gerardvanschip

    Hmmm I have that enabled already, I think.

    "compile mysql (and mysqli if its checked) support against the system libraries"

    Database info is correct, I have another plugin using it and that can access it without any problems. Also local access is right. Just gone through the config file again with a fine tooth comb and it all looks ok. I got my server ip, database name, username and password. Did notice that the plugin config uses a port number while the website files config do not. Could it be in there?

     
  11. Offline

    Lolmewn

    gerardvanschip please make sure you have it installed by checking your phpinfo.
    I think the webend just assumes everyone uses port 3306 for their Mysql databases, haha.
     
  12. Offline

    gerardvanschip

    Okidoki, got it installed now, seems you need to select the other MSQL thing to get it. Check runs but then complains about missing tables like "Table stats_block exists?".

    Going through the classes thing I see that they are the same as on the database.

    Suggestions?

     
  13. Offline

    Lolmewn

    gerardvanschip EDIT: Oh, you got it. Is the prefix correct? The default prefix is not the same as the Stats default prefix...
     
  14. Offline

    gerardvanschip

    Yup, found the prefix thin in config, i was looking in classes.php DUH.
    So, now it passes the checks http://www.kaizen-worlds.net/stats/check.php
    But the website still throws up an error
    SERVER STATUS:
    FATAL ERROR
    : CALL TO UNDEFINED FUNCTION MB_CONVERT_ENCODING() IN ​
    PUBLIC_HTML/KAIZEN-WORLDS/STATS/STATS_WEB_CORE/CLASSES.PHP
    ON LINE ​
    498
    Line 498 has
    $data = mb_convert_encoding($data, 'auto', 'UCS-2');
    This is a fun but slow process
     
  15. Offline

    Lolmewn

    gerardvanschip Ah yes, I actually had the same. Apparently there is some random module required to do that, which you also have to install/enable. A quick google for mb_convert_encoding will tell you which one it is.
     
  16. Offline

    gerardvanschip

    Rock, you do! Got it working, SO pleased. I'm a data and stats junkie, the plugin in combination with the web files is candy!

     
  17. Offline

    Lolmewn

    gerardvanschip Awesome! I'm soon adding snapshots and per-world support :) Oh, and support for other plugins to hook into stats to track even more data!
    Data data data data data!
     
  18. Offline

    rguz10

    Should add multi server support :p
     
  19. Offline

    Lolmewn

    rguz10 Oh yeah, that was also on the to-do. I'm gonna have to postpone that I think...
     
  20. Offline

    rguz10

    Let me know if there's anything I can do to contribute.
     
  21. Offline

    Charly_ZA

    This is weird. Stats works the first time I set it up and enter the MySQL DB details but after the next restart it doesn't work.
     
  22. Offline

    Lolmewn

    Charly_ZA Are the details in config.yml? Maybe something weird happened for some reason and it didn't end up in there.
     
  23. Offline

    Charly_ZA

    Looks like it saved to me :l
    Code:
    MySQL-User: root
    MySQL-Pass: (pass)
    MySQL-Host: (host IP)
    MySQL-Port: '3302'
    MySQL-Database: statsb
    MySQL-Prefix: Stats_
    ignoreCreative: false
    version: 1.29
    update: true
    debug: false
    sendStatsToGlobalServer: true
    signs:
      insta-update: true
      update-interval: 10
    lastJoin-lastLeaveFix: false
    disabledStats:
    - StatName1
    commandList:
    - PLAYTIME
    - BLOCK_BREAK
    - BLOCK_PLACE
    - DEATH
    - KILL
    - JOINS
    - MOVE
    
     
  24. Offline

    Lolmewn

    Charly_ZA You don't have your database on localhost? :O
    (Also, did you just SERIOUSLY put your database connections publicly? omg)
     
  25. Offline

    Charly_ZA

    No. The pass isn't root, I put it there just as an example. The pass in the proper config is right. The database isn't local but it works with the other plugins that use mysql
     
  26. Offline

    Lolmewn

    Charly_ZA Heh, weird. Any errors by the Stats plugin? On startup for example?
     
  27. Offline

    Charly_ZA

    I get that normal error when stats can't connect to the database. It happened again. Works perfectly the first time I enter the DB details then from the next restart it wont work anymore
     
  28. Offline

    Lolmewn

    Charly_ZA Weird stuff. maybe it times out after not connecting for a few seconds. I've only tested with local databases, so that didn't happen to me at all.
     
  29. Offline

    Charly_ZA

    The mysql database is hosted on the same server. That's just the details I use.
     
  30. Offline

    Lolmewn

    Charly_ZA And it simply can't get a connection? No exceptions or anything? :O
     
Thread Status:
Not open for further replies.

Share This Page