Extension talk:WhoIsWatching/Archive

Problem with installation.
I've installed WhoIsWatching on MediaWiki 1.9.1 and the extension shows up in the version page. However, on the Special Pages, I show the list leading with, which when clicked gives this error:

Fatal error: Call to undefined function wfLoadExtensionMessages in ... (ip address) ... /wiki/extensions/SpecialWhoIsWatching_body.php on line 25

Any ideas? --C4duser 23:00, 24 November 2007 (UTC)
 * After doing some searching, it looks like this is a bug in MediaWiki itself. Apparently there are some version that did not have the wfLoadExtensionMessages function. Anyways, I changed the way the internationalization messages get loaded to not rely on this function. The new code is available in v0.3 (already in SVN). Please let me know if this code works any better for you. --Gri6507 14:43, 25 November 2007 (UTC)
 * Thanks. The error message has gone away and the Special page shows up properly. However, I don't seem to be using the extension properly. When clicking on the special page, I get: "This special page cannot be used on its own. Please use the page MediaWiki:Number_of_watching_users_pageview to define an entry point to this special page." I've placed the code you stipulate on the MediaWiki message page. What I am trying to do is to be able to set up a link on the sidebar (say "Current Watchers") that when clicked will produce a list of users that are watching that particular page. Is this possible?  --C4duser 02:49, 26 November 2007 (UTC)
 * OK. I've figured out that what is supposed to happen is for a message to appear at the bottom of the page showing the number of watchers. I do get a message at the bottom of the page, but something is wrong with the code. Here is the message: "[http:// ...IP address .../wiki/index.php?title=Special:SpecialWhoIsWatching&ns=...correct namespace ...&page=...correct pagename ...1] watching users" The number of "watching users" was indeed 1, so that appears to be correct, but I don't think there should be two "specials" in the special page name or that the IP address should appear.  Might this be a problem in the MediaWiki message page?  It seems that what is supposed to happen is that the message "1 watching user" should appear with a link to the Special page, where (hopefully) there would be a list of who those watcher are.  Any way, thanks for the time. --C4duser 03:42, 26 November 2007 (UTC)


 * I found another error message on the system messages page. Perhaps this is the problem? --C4duser 04:06, 26 November 2007 (UTC)

Warning: call_user_func_array [function.call-user-func-array]: First argument is expected to be a valid callback, 'WhoIsWatching::loadMessages' was given in ...IP address... /wiki/includes/Hooks.php on line 114

Installed the latest version; Still doesn't work.
I've installed the latest version and the problem noted above persists. --C4duser 01:02, 31 December 2007 (UTC)
 * Are you talking about the Warning or the Fatal Error? --Gri6507 03:01, 31 December 2007 (UTC)

Installation Instructions - Correction?
I had to insert the following code in order for the extension to work properly:

$1 watching NaN userss

Does this look correct?


 * Where did you insert this code? Are you talking about the Extension:WhoIsWatching installation instruction? --Gri6507 22:14, 8 February 2008 (UTC)


 * Yes, this went into MediaWiki:Number_of_watching_users_pageview. I couldn't get the prescribed way to work.