Extension talk:WhosOnline/Archive 2

Wish: Permit staying invisible
Hi, thanks for this wonderful extension which works smoothly on our closed 1.20.2 Mediawiki. It's inspiring to see the fellow user's interest. But, sometimes, depending on atmospheric pressure ;-), one might want to log in without being seen. I wonder how to make this possible. Perhaps just through a special URL parameter or so? Avacpio (talk) 05:24, 12 December 2014 (UTC)

Bug in MW 1.24 ?
Hi, there seems to be a little bug for the special page. The does work.

[Fri Dec 12 19:34:56 2014] [error] [client 129.194.30.22] PHP Catchable fatal error: Argument 1 passed to Language::viewPrevNext must be an instance of Title, string given, called in /export/data/portails/fmediawiki/extensions/WhosOnline/WhosOnlineSpecialPage.php on line 84 and defined in /export/data/portails/fmediawiki/languages/Language.php on line 4633, referer: http://edutechwiki.unige.ch/fr/Bases_psychop%C3%A9dagogiques_des_technologies_%C3%A9ducatives

Life example: http://edutechwiki.unige.ch/fr/Sp%C3%A9cial:Qui_est_en_ligne

- Daniel K. Schneider (talk) 18:46, 12 December 2014 (UTC)


 * The Problem is wfViewPrevNext used in getNavigationBar, Deprecated since 1.19 and removed in 1.24. You should replace getNavigationBar in WhosOnlineSpecialPage.php with this:

function getNavigationBar { global $wgContLang,$wgLang;

$query = ''; $offset = $this->mOffset; $limit = $this->mLimit; $links = $wgContLang->specialpage( 'WhosOnline' ); $atend = $this->countUsersOnline < ( $this->mLimit + $this->mOffset ); // show next link $query = wfCgiToArray( '' ); if( is_object( $link ) ) { $title = $link; } else { $title = Title::newFromText( $link ); if( is_null( $title ) ) { return false; }		}

return $wgLang->viewPrevNext(			$title,			$offset,			$limit,			$query,			$atend); } }

May be not perfect but it work. --79.209.109.156 18:48, 21 December 2014 (UTC)

New Bug in Mediawiki 1.24
Hi

Did the change listed above to get the Special Page working. But now I get the following error:

Notice: Undefined variable: link in mediawiki/htdocs/extensions/WhosOnline/WhosOnlineSpecialPage.php on line 88