mark.watero.us

Wordpress stuff, a statistics plugin, and jello

kStats initial bug reports

7 comments

Not a bad turnout for day one of the beta release! I appreciate all the feedback I’ve received through the site and via email, and I will do my best to make the necessary fixes as fast as I possibly can.

Here is the short list of problems that need to be fixed immediately;

  1. Today/Yesterday Spider Visits For some reason during the nightly cleanup the spider visits aren’t clearing out, and are appended to the next days accumulated totals, skewing the results.
  2. I moved the aggregate functions for the Top xxxx tables from running once nightly to running every time the overview page was accessed, in an effort to keep the statistics (all of them) displaying real time results. I did this without completing modifications to them to reflect this new placement, and as a result every few page accesses the data was doubling.
    This has been fixed in trunk. The cleanup functions will run nightly to update the aggregate tables, and a new SQL query has been written to allow for real-time display of data without affecting the accumulated totals.
  3. Top Crawlers Another mystery that I hope to sleuth out today, but the Top Crawlers table truncated itself during the nightly cleanup process. I think I’m going to do a major break down on this function today, especially since it’s the end of the month and tonight will be one of its biggest tests to make sure all data is being properly accumulated and stored.
    Fixed. I scrapped the old query->PHP->query based aggregating methods in favor of much faster and lighter direct SQL queries that should not only speed things up but fix this bug at the same time.
  4. Datetime Class I’ve had a few reports of people having troubles with the fact that they’re attempting to run kStats under PHP 4. This class is in place to be developed as a central object for the rest of the plugin to have consistent time and date values being returned everywhere, and I would like to continue supporting PHP 5 (and the upcoming v6) in this regard. To that end, I’ll look into writing better documentation, as well as an appropriate check to inform end users about how to fix the problem.
Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • LinkedIn
  • NewsVine
  • Reddit
  • StumbleUpon
  • Technorati
  • Twitter

Written by mark

October 31st, 2009 at 5:44 pm

Posted in Plugins, kStats Reloaded

Tagged with ,

7 Responses to 'kStats initial bug reports'

Subscribe to comments with RSS

  1. Help! Just installed kstats on my site a few hours ago, and now when I try to log onto wordpress or even visit my site, i get this error message: Fatal error: Call to undefined function kstats_get_lastmonth_day() in /home/jcl123/public_html/wp-content/plugins/kstats-reloaded/lib/datetime.php on line 84

    Jillian

    31 Oct 09 at 999:12 pm

  2. Eek! Thanks for finding that one, it’s a left over from before I turned the datetime helper functions into a class.

    You can do one of two things here; delete the /kstats-reloaded/ folder to disable the plugin, and your site will come back immediately — or if you’d like to fix the bug and continue using it, open /kstats-reloaded/lib/datetime.php and find line 84, it looks like:

    $day = kstats_get_lastmonth_day ( $parts[1], $parts[0] );

    Change it to;

    $day = $this->last_month_day;

    mark

    31 Oct 09 at 111111:10 pm

  3. I was afraid you’d say that. Is there a 3rd option? The reason I ask is because coincidentally the same day I installed kstats, my main computer broke (as in, it won’t even turn on) so I can access my folders to delete or rename. Please say you can help!

    Jillian

    1 Nov 09 at 555:32 am

  4. Scratch the comment above, I thought I could only fix it through using FTP, but I did it through my cpanel. Thanks for you help!

    Jillian

    1 Nov 09 at 555:38 am

  5. Worked a treat.
    Thanks.

  6. @jillian, @Kevin,
    Glad to hear you got things fixed! As per my latest post here, http://mark.watero.us/2009/11/fatal-error-in-kstats-datetime-class/, the new version that will be released today should address all these issues and be much much more stable as per the operation of your existing web site.

    mark

    1 Nov 09 at 101010:44 am

  7. @chels I know what you mean, its hard to find good help these days. People now days just don’t have the work ethic they used to have. I mean consider whoever wrote this post, they must have been working hard to write that good and it took a good bit of their time I am sure. I work with people who couldn’t write like this if they tried, and getting them to try is hard enough as it is.

Leave a Reply