Blogging Metrics: Adventures with Slimstat

So in a previous post I lazily mentioned a few ‘tracking’ programs to track your visitors.

Well, I haven’t tried “MINT”, because I am quite cheap — however, amongst the other tracking programs that I have tried — which have reasonable plugins for Wordpress of course — SLIMSTAT really only fits the bill.

Interestingly enough, Slimstat is derived from Shortstat, which was the (free) progenitor of Shaun Inman’s Mint.

That is: Slimstat <-- Shortstat --> Mint

And of course, there is now Wp-Slimstat, which is a plugin for wordpress, which I believe is a version of Slimstat that has been cobbled and edited, so that Slimstat works with Wordpress … a brilliant and unappreciated job I am sure.

(btw, do not be afraid of the mostly Italian site that Wp-Slimstat is hosted on)

It does work pretty good — and as advertisied.

However, it isn’t perfect, and a few bugs do pop up.

In particular, after I uploaded it to my “plugins” folder and “activated it”, I prompty got this error:

Fatal error: Cannot instantiate non-existent class: cachedfilereader in /blog/wp-includes/wp-l10n.php on line 67?

Which promptly made me wet my pants.

In fact, there is a healthy “comments” section for the website, and one helpful contributor did state that you can hack a file in the wp-includes folder for wp-slimstat to work.

Just comment out the if statement on lines 3 and 6 of wp-l10n.php. Be sure you leave lines 4 and 5 uncommented. I’m not sure why but it is not passing the if statement, something to do with language problems. It appears that this is happening with the default install of WP 2.0.2

Original Code:
if ( defined(’WPLANG’) && ‘’ != constant(’WPLANG’) ) {
include_once(ABSPATH . ‘wp-includes/streams.php’);
include_once(ABSPATH . ‘wp-includes/gettext.php’);
}

Fixed Code:
//if ( defined(’WPLANG’) && ‘’ != constant(’WPLANG’) ) {
include_once(ABSPATH . ‘wp-includes/streams.php’);
include_once(ABSPATH . ‘wp-includes/gettext.php’);
//}

And now it works fine!

ADDENDUM:
Shortstat has its own plugin version: Wp-Shortstat, which can be found at http://jrm.cc/archives/blog/wp-shortstat/I have no idea if this works … if anyone has tried it let me know.

2 Comments

  1. Panya
    Posted September 22, 2006 at 2:59 pm | Permalink

    Actually, much belated, that error arises because most people don’t declare a language in their wp-config file — if you declare a language (probably en-US, or it), it works fine. I suspect it’s because the plugin l10nization uses the same method as wordpress, but wordpress assumes that english is the language if you don’t declare, but the plugin doesn’t.

  2. Posted January 15, 2007 at 2:39 am | Permalink

    Thanks a lot for the help on the ‘instantiate’ error. I’d been Googling around for solutions and was getting a bit frustrated.

3 Trackbacks

  1. [...] Track your Response. You’ve got your own tracking system, right? How else are you going to see how your blog is doing? There are a number of programs available, and its beyond the discussion of this post to talk about it, but i’ve worked with SlimStat for a few weeks now and it hasn’t done me wrong at all. It even comes in a WordPress plugin. I’ve blogged about it here. [...]

  2. [...] How to Get WP-SlimStat to Recognize Your Local Timezone August 7th, 2006 at 10:24 am by Tony So, I use the wp-slimstat for purposes of tracking some statistics on this website, and I am lovin’ it although it is largely unsupported. I’d like to present a humble solution to a Local Timezone problem I’ve been having. [...]

  3. By Wordpress statistics plugins at Nick on September 10, 2006 at 10:18 am

    [...] WP-SlimStat! It looked great, but I initially had trouble installing it on Wordpress 2.0. It actually broke the rest of the blog when enabled! According to various forum posts, this seemed to be a common problem. I found this post on deep jive interests that resolved the problem and it now runs fine (and looks great!) [...]

Post a Comment

Your email is never published nor shared.

Powered by WP Hashcash