Add Statistics to MediaWiki Project

Some time ago, I was looking for a MediaWiki extension to generate statistics for a wiki of mine, but found no solution. Today, though, I was looking through the source for FireStats, the statistics plugin for WordPress that I use for this blog. There was a file named firestats-mediawiki.php, and apparently, it has native support for MediaWiki. Do like this to install FireStats on your wiki project:

  1. Upload FireStats to the wiki folder (/wiki/, /w/ or something like that)
  2. Edit line 3 of firestats-mediawiki.php (the require_once() statement) to correspond with your directory structure.
  3. Upload firestats-mediawiki.php to the extensions/ directory in the wiki root directory.
  4. Add the line include("extensions/firestats-mediawiki.php"); somewhere in LocalSettings.php.
  5. Enjoy!

Note that you will have to create the stats table. You don’t have to do it manually; but you have to start the script by going to the FireStats subdirectory (usually /wiki/firestats) and inputing database information. The only problem that I ran into during the installation was that the main page kept displaying the following error:

FireStats is not installed in the database, go to the Database tab to configure FireStats

It kept showing up, even after I had created the tables. The cause for this was the MediaWiki caching — after I edited the page and refreshed, it showed up like it should.

I recommend this plugin a lot.

Maybe Related?

3 Comments »

  1. This is completely irrelevant to this post, but on that site hackthissite… I am stuck on Basic Web Level 4. I changed the scripting myself without hassle and hints, but then… I dont know. The password didnt send to my email. I now realize that its not suppose to. But if it’s not doing that… then where do I find the password??

    Comment by Unidentified — January 30, 2007 @ 5:07 am

  2. Nevermind. :]

    Comment by Unidentified — January 30, 2007 @ 11:59 pm

  3. Hi,
    I am in the process of transfering my static web web pages to mediawiki format. I came across your FIRESTATS post and succesfully installed it following the instructions above. The probalem is no stats are showing up.

    I seem to be getting two error messages: One in red on the top of the page that reads: “Error updadating bots list: Empty url” and another to the right of the FIRE STATS logo that reads: “1.1.5-stable Error getting version information from http://files.firestats.cc/firestats.latest?version=1.1.5-stable : 13 could not connect to the host “files.firestats.cc”"

    Do you know what this means? I followed all your intructions to the letter. Did I forget to do something?

    Thanks in advance for your help,
    M.

    Comment by Martin — February 20, 2007 @ 7:23 pm

RSS feed for comments on this post. TrackBack URI

Leave a comment

FireStats iconAnvänder FireStats