Extension talk:FireStats

Latest comment: 12 years ago by 85.182.247.110 in topic Database not connected after MediaWiki Integration?

Page Down

edit

The server seams to be down... does anyone have any info why ? Or any idea when it will be back up ? XApple 23:59, 16 September 2007 (UTC)Reply

Works

edit

Works but has a few minor bugs still. Pretty nice interface though.

Howto set path?

edit

Noob - Trying to get it to work. Firestats page working but get no hits. I presume Ive got the path wrong in the firestats-mediawiki.php file that I copied to mediawiki installation. I'm using SME server, and have set the path as "/home/e-smith/files/ibays/firestats/html/php/db-hit.php".

I've had to hash out the include path in LocalSettings.php as it currently prevents the page from loading

Any Ideas --Mark F 10:16, 10 February 2007 (UTC)Reply

The fact that it prevents the page from loading in MediaWiki usually points to an invalid path. Looks like you have an absolute path, so try to make the path relative to the webserver's root. I.E., if the root is:

root: /home/e-smith/files/ibays/

try:

path: /firestats/html/php/db-hit.php

Also, test it out first on a sample PHP page rather than the Wiki, and see what that brings up. The Help page on your Firestats page should give you the line of PHP to include with a correct path.

Deeem119 11:16, 16 February 2007 (UTC)Reply

Broken in MediaWiki 1.18

edit

MediaWiki 1.18 removes the LogPageLogHeader hook. To fix this, make the following changes to firestats-mediawiki.php:

Instead of:

require_once(FS_PATH.'/php/db-hit.php');
$wgHooks['LogPageLogHeader'][] = 'fs_mediawiki_hit';

function fs_mediawiki_hit($wiki_object)

Do this:

require_once(FS_PATH.'/php/db-hit.php');
$wgHooks['SetupAfterCache'][] = 'fs_mediawiki_hit';

function fs_mediawiki_hit()

Database not connected after MediaWiki Integration?

edit

Hi, I hope someone can help me out. FireStats is working fine in standalone and it collects all the entries and pagevies on my wiki (v 1.16.x). But one thing is weird and that is this:

Notice: Database not connected in /mnt/webg/c0/60/52870260/htdocs/firestats/php/db-common.php on line 258
Warning: mysql_real_escape_string() expects parameter 2 to be resource, null given in /mnt/webg/c0/60/52870260/htdocs/firestats/lib/ezsql/mysql/ez_sql_mysql.php on line 183
Warning: mysql_real_escape_string() expects parameter 2 to be resource, null given in /mnt/webg/c0/60/52870260/htdocs/firestats/lib/ezsql/mysql/ez_sql_mysql.php on line 183

Does anyone have an idea why this comes up? I have already tried to look into the stated files but can't figure it out. FireStats itself is running fine.

Many thanks, --85.182.247.110 11:32, 9 February 2012 (UTC)UbivisReply

Return to "FireStats" page.