Web Blue Stats - The modular stats interface

Discussion in 'Bukkit Tools' started by robinp7720, Jan 7, 2015.

?

What should I add/change next?

Poll closed Jan 14, 2015.
  1. Charts

    0 vote(s)
    0.0%
  2. Change the layout

    0 vote(s)
    0.0%
  3. Change the colors

    50.0%
  4. Change the colors and layout

    0 vote(s)
    0.0%
  5. Online/Offline indicators

    0 vote(s)
    0.0%
  6. Player faces

    50.0%
  7. Admin Page

    0 vote(s)
    0.0%
Thread Status:
Not open for further replies.
  1. Offline

    TNTUP

    Okay^^
     
  2. Offline

    Zork766

    Of course i have edited the server config in the server.propeties AND the server.conf of blue stat.
    I don't figure out why i got this error...

    Alternatively, i was using another option to show the avatar for my stats page:
    I was using the png stored by Dynmap, like:

    <img src="http://myserver.dynmap:8123/tiles/faces/body/' .$playername. '.png" width="64px" height="64px" alt="">

    It was working well if it can help...
     
  3. Offline

    robinp7720

    I have fixed the problem when mc query is disabled that the rows are not in line with their respective columns
     
  4. Offline

    luanacub

    Am getting this error.
    DataTables warning: table id=all-players - Ajax error.
     
  5. Offline

    robinp7720

    go to YourStatsWebSite.com/ajax/?func=allplayers and send me the output
     
  6. Offline

    luanacub

    {"data":[],"time":0.961261034012}
     
  7. Offline

    robinp7720

    that would mean that you dont have any player records. Are you able to view high scores on the highscores page?
     
  8. Offline

    luanacub

    Not a single one.
     
  9. Offline

    robinp7720

    Hmm either your mysql tables are empty or dont exist or your mysql details are wrong.
     
    Last edited: Jan 15, 2016
  10. Offline

    luanacub

    Well thats strange, because when I go and load them manually using phpmyadmin. There are users on the table.
     
  11. Offline

    robinp7720

    Check that all mysql configs are correct in configs/mysql.php
     
  12. Offline

    luanacub

    I have check and recheck. They are all correct. Its worth noting that the server stats are showing up, but give me an error for the total Play Time, the joins, votes and trades but for top players, high scores, etc...
     
  13. Offline

    robinp7720

    Give me a link to the site
     
  14. Offline

    follet2004

  15. Offline

    robinp7720

  16. Offline

    follet2004

    Add in the index.php the code but do not show up a error or info.

    Sure be like is in the codes of the index.php:

    PHP:
    <?php

    error_reporting
    (-1);
    ?
     
  17. Offline

    robinp7720

    Sorry, but I have no clue what could be happening there. 2 other people are using this successfully. I cant help you much except for you to try it on a clean installation of apache an php. I am using xampp and It works normaly.
     
  18. Offline

    luanacub

  19. Offline

    robinp7720

    I use the xampp stack (https://www.apachefriends.org/index.html)

    I'm guessing you modified some of the code. Could you please reinstall it and just modify the configs? It might resolve the issue

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Oct 29, 2015
  20. Offline

    follet2004

    We use Apache and PHP with Debain 7.8 and we do not use xampp. -_-

    I didn't modify the code.

    Please do test on Debain 7.8 with Oracle VM VirtualBox.
     
    luanacub likes this.
  21. Offline

    robinp7720

    I cant help you if I dont have any error logs. It works perfectly with ubuntu 14.04 with a fresh install of apache2 and php 5.6.6

    Please check your php error.log file and show me all errors.
    If php doesn't give you any errors, its not my fault.

    The fact that the home page shows the total play time, shows that the script has access to the mysql database.
    Also please try the latest dev release https://github.com/robinp7720/Blue-Stats-Minecraft/tree/dev as this might have fixed your problem

    As a contradiction to what you have said, you have edited/modified the original source. Please do a fresh install and only change the files in the config folder. If you change any other file, I will no longer help. Sorry.
     
  22. Offline

    follet2004

    Oh ok, I it a fresh install not work. So look do debug of php but the error_reporting(-1); do not work for me try is
    PHP:
    ini_set('display_errors''On');
    error_reporting(E_ALL);
    and is work. Say the error is:
    PHP:
    Fatal errorCall to undefined method mysqli_stmt::get_result() in /home/Site_Servers/Sites_de_MegaPlanet/Main_MegaPlanet/mc/statistics/functions/general.php on line 52
    My php is: "PHP 5.4.36-0+deb7u3" default of Debian 7.8.

    So test to install the later version of the php is "PHP 5.6.6-1~dotdeb.1" But it not help. :(

    You one to see the error: http://www.megaplanet.net/mc/statistics/
     
    Last edited: Mar 1, 2015
  23. Offline

    robinp7720

    Ok I'll make that change to the debug mode! and to fix the issue just install mysqlnd(http://php.net/manual/en/book.mysqlnd.php) for php

    Code:
    apt-get install php5-mysqlnd
    
     
  24. Love this Webend! Keep up the good work please! :)
     
  25. Offline

    robinp7720

    Thanks! Whats the address to your Blue Stats site?

    you probably have the same problem follet2004 has. Just install mysqlnd(http://php.net/manual/en/book.mysqlnd.php)
     
    Last edited by a moderator: Mar 2, 2015
  26. Offline

    follet2004

    Oh ok, It fix the bug. :p

    But now i have one error of the "PHP 5.6.6-1~dotdeb.1" is:

    In the http://www.megaplanet.net/mc/statistics/home/ and http://www.megaplanet.net/mc/statistics/highscores/ is:
    PHP:
    Fatal errorUncaught exception 'Exception' with message 'DateTime::__construct(): It is not safe to rely on the system's timezone settingsYou are *requiredto use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warningyou most likely misspelled the timezone identifierWe selected the timezone 'UTC' for nowbut please set date.timezone to select your timezone.' in /home/Site_Servers/Sites_de_MegaPlanet/Main_MegaPlanet/mc/statistics/functions/general.php:64 Stack trace: #0 /home/Site_Servers/Sites_de_MegaPlanet/Main_MegaPlanet/mc/statistics/functions/general.php(64): DateTime->__construct('@0') #1 /home/Site_Servers/Sites_de_MegaPlanet/Main_MegaPlanet/mc/statistics/pages/home.php(22): secondsToTime('5751001') #2 /home/Site_Servers/Sites_de_MegaPlanet/Main_MegaPlanet/mc/statistics/index.php(109): include('/home/Site_Serv...') #3 {main} thrown in /home/Site_Servers/Sites_de_MegaPlanet/Main_MegaPlanet/mc/statistics/functions/general.php on line 64
     
  27. Offline

    robinp7720

    This should solve it:
    http://stackoverflow.com/questions/...-the-systems-timezone-settings-in-codeigniter

    or for just this interface add this to the top of index.php
    PHP:
    date_default_timezone_set('America/Los_Angeles');
    Also, as a simple request, could you change the "Stats - Factions" to "BlueStats - Factions"?
     
    follet2004 likes this.
  28. Offline

    follet2004

  29. Offline

    robinp7720

    Thank you very much! Thanks for using it too!
     
  30. Offline

    luanacub

    Am lost, you established a solution but I don't understand it. How can I solve the problem?
     
Thread Status:
Not open for further replies.

Share This Page