databases not updating #107


  • New
  • Defect
Open
Assigned to _ForgeUser7076494
  • _ForgeUser6861627 created this issue Nov 5, 2011

    What is the problem?

    What steps will reproduce the problem?
    1.install hawkeye, configure it etc
    2.start server, check database or hawkeye interface, everything is logged
    3.stop server, start it again, do something on the server with your friends, check the database/hawkeye interface and see nothing is logged since the server was stopped last time.

    What version of HawkEye are you using (shown in console during start-up)?
    v1.05

    Show me any console errors and/or your start-up console message for HawkEye
    no errors, everything seems k

    2011-11-05 11:55:00 [INFO] [HawkEye] Starting HawkEye initiation process...
    2011-11-05 11:55:00 [INFO] [HawkEye] Using Permissions for user permissions
    2011-11-05 11:55:00 [INFO] [HawkEye] Performing update check...
    2011-11-05 11:55:01 [INFO] [HawkEye] No updates available for HawkEye
    2011-11-05 11:55:02 [INFO] [HawkEye] WorldEdit found, selection rollbacks enabled
    2011-11-05 11:55:02 [INFO] [HawkEye] Version 1.0.5 enabled!

    Show me your config.yml and/or your config.php (REMOVE YOUR PASSWORD)

    config.yml:

    block-filter:
    - 97
    - 98
    log:
        lava-bucket: true
        painting-place: false
        other: true
        pvp-death: true
        block-fade: true
        chat: true
        enderman-place: false
        quit: true
        sign-place: true
        enderman-pickup: false
        painting-break: false
        lava-flow: true
        flint-steel: true
        button: true
        command: true
        block-form: true
        teleport: true
        lever: true
        item-drop: true
        water-bucket: true
        block-burn: true
        sign-break: true
        block-break: true
        leaf-decay: false
        water-flow: true
        join: true
        door-interact: true
        block-place: true
        open-container: true
        item-pickup: true
        explosion: true
        container-transaction: true
        mob-death: true
        other-death: true
    general:
        check-for-updates: true
        tool-block: '17'
        default-tool-command: ''
        log-item-drops-on-death: true
        delete-data-on-rollback: false
        cleanse-period: 20m
        debug: false
        log-ip-addresses: true
        default-here-radius: 5
        max-lines: 0
        cleanse-age: '0'
        give-user-tool: true
        max-radius: 0
    mysql:
        hawkeye-table: hawkeye
        port: 3306
        player-table: hawk_players
        username: root
        world-table: hawk_worlds
        hostname: localhost
        max-connections: 10
        password:
        database: minecraft
    version: 1.0.5
    command-filter:
    - /login
    - /restartsrv
    - /register

    _________________________________________

    config.php:

    <?php
        ///////////////////////////////////////////////////
        //         HawkEye Interface Config File         //
        //                 by oliverw92                  //
        ///////////////////////////////////////////////////
        //     Edit the config array below with your     //
        //     details. Make sure all strings are        //
        //     escaped. If you can't work this out,      //
        //     ask in the thread on bukkit.org.          //
        ///////////////////////////////////////////////////
        $hawkConfig = array(
                        //Enter your MySQL database information
                        //Do not change 'dbTable'
                        "dbHost"  => "localhost:3306",
                        "dbDbase" => "minecraft",
                        "dbUser"  => "root",
                        "dbPass"  => "",
                        "dbTable" => "hawkeye",
                        "dbPlayerTable" => "hawk_players",
                        "dbWorldTable" => "hawk_worlds",

                        //Set this to the password you want people to have to use to access the interface
                        //Leave blank for no password
                        "password" => "",

                        //Default radius to search for if user supplies a location
                        "radius" => 30,

                        //Limit the maximum number of results that can be returned. Do not use quotes
                        //Set to 0 for no limit
                        "maxResults" => 0,

                        //Language pack - default is english.php
                        //You can create your own based off the english.php file,
                        //then change the name below to your language file name
                        "langFile" => "english.php",

                        //Log queries to log.txt
                        //Useful to keep track of who is querying what
                        "logQueries" => true,

                        //Use forum for authentication?
                        //Default is false
                        "forumAuth" => false,

                        //The relative location for the forum to this file.
                        //Default is "../forum/"
                        "forumDir" => "../forum/",

                        //The type of forum that will be used.
                        //Default is phpbb3
                        //Available types are: phpbb3 and smf
                        "forumType" => "phpbb3"

                        );

        //The user wants to use forumAuth
        if ($hawkConfig["forumAuth"])
        {
            //We need to require the specified forumType.  Hopefully we support it (Or the user is using their own file)
            require('./forumAuth/'.$hawkConfig['forumType'].'.php');
        }

        $con = mysql_connect($hawkConfig["dbHost"], $hawkConfig["dbUser"], $hawkConfig["dbPass"]);
        if (!$con)
            return error("Could not connect to MySQL Database!");
        if (!mysql_select_db($hawkConfig["dbDbase"], $con))
            return error(mysql_error());

        mysql_query("SET NAMES UTF8");

        function handleError($errno, $errstr, $errfile, $errline, array $errcontext) {
            // error was suppressed with the @-operator
            if (0 === error_reporting()) return false;
            throw new ErrorException($errstr, 0, $errno, $errfile, $errline);
        }

    ?>

    Have you checked the FAQ page?
    what FAQ page? :/

    /other (user added):
    making this complaint because last night someone griefed badly some unprotected (by precious stones) player houses, when I checked the logs, it didn't log anything since wham. also I can't gain access to rollback, I know it's not compatible with permbukkit, some guy said to give op perms and it'll be ok, that didn't work either :/ (just sayin')

  • _ForgeUser6861627 added the tags New Defect Nov 5, 2011

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