Extension talk:EventLogging

Advanced CheckUser with ClickTracking
(followup from Extension talk:ClickTracking/Log) Click tracking data would be useful complement to CheckUser. Spambots would be 100% obvious. If it doesn't load the servers too much we could be rid of automated spam almost completely.Jasper Deng (talk) 04:51, 28 August 2012 (UTC)

Error message after installing GuidedTour: "Detected bug in an extension! Hook CanonicalNamespaces..."
Hi installed EventLogging to use the extension GuidedTour, and get this error message after activating EventLogging. I verified it is a problem with EventLogging: I have the error also if I disable GuidedTour. Can you help me, please?

Detected bug in an extension! Hook CanonicalNamespaces closure failed to return a value; should return true to continue hook processing or false to abort. Backtrace:
 * 1) 0 /var/www/[myfolder]/includes/GlobalFunctions.php(3883): Hooks::run('CanonicalNamesp...', Array)
 * 2) 1 /var/www/[myfolder]/includes/Namespace.php(226): wfRunHooks('CanonicalNamesp...', Array)
 * 3) 2 /var/www/[myfolder]/includes/Namespace.php(257): MWNamespace::getCanonicalNamespaces
 * 4) 3 /var/www/[myfolder]/languages/Language.php(705): MWNamespace::getCanonicalIndex('template')
 * 5) 4 /var/www/[myfolder]/includes/Title.php(3136): Language->getNsIndex('Template')
 * 6) 5 /var/www/[myfolder]/includes/Title.php(152): Title->secureAndSplit
 * 7) 6 /var/www/[myfolder]/extensions/DynamicPageList/DPLSetup.php(1232): Title::newFromText('Template:Extens...')
 * 8) 7 /var/www/[myfolder]/extensions/DynamicPageList/DPLSetup.php(1211): ExtDynamicPageList::commonSetup
 * 9) 8 [internal function]: ExtDynamicPageList::setupDPL
 * 10) 9 /var/www/[myfolder]/includes/Setup.php(551): call_user_func(Array)
 * 11) 10 /var/www/[myfolder]/includes/WebStart.php(161): require_once('/var/www/...')
 * 12) 11 /var/www/[myfolder]/index.php(55): require('/var/www/...')
 * 13) 12 {main}

If I deactivate the DynamicPageList extension I get the following error Detected bug in an extension! Hook CanonicalNamespaces closure failed to return a value; should return true to continue hook processing or false to abort. Backtrace:
 * 1) 0 /var/www/[myfolder]/includes/GlobalFunctions.php(3883): Hooks::run('CanonicalNamesp...', Array)
 * 2) 1 /var/www/[myfolder]/includes/Namespace.php(226): wfRunHooks('CanonicalNamesp...', Array)
 * 3) 2 /var/www/[myfolder]/languages/Language.php(493): MWNamespace::getCanonicalNamespaces
 * 4) 3 /var/www/[myfolder]/includes/search/SearchEngine.php(349): Language->getNamespaces
 * 5) 4 /var/www/[myfolder]/includes/User.php(1241): SearchEngine::searchableNamespaces
 * 6) 5 /var/www/[myfolder]/includes/User.php(4334): User::getDefaultOptions
 * 7) 6 /var/www/[myfolder]/includes/User.php(348): User->loadOptions
 * 8) 7 /var/www/[myfolder]/includes/User.php(328): User->saveToCache
 * 9) 8 /var/www/[myfolder]/includes/User.php(286): User->loadFromId
 * 10) 9 /var/www/[myfolder]/includes/User.php(2073): User->load
 * 11) 10 /var/www/[myfolder]/includes/User.php(981): User->getToken(false)
 * 12) 11 /var/www/[myfolder]/includes/User.php(289): User->loadFromSession
 * 13) 12 /var/www/[myfolder]/includes/User.php(4328): User->load
 * 14) 13 /var/www/[myfolder]/includes/User.php(2227): User->loadOptions
 * 15) 14 /var/www/[myfolder]/includes/context/RequestContext.php(296): User->getOption('language')
 * 16) 15 /var/www/[myfolder]/includes/Message.php(360): RequestContext->getLanguage
 * 17) 16 /var/www/[myfolder]/includes/context/RequestContext.php(377): Message->setContext(Object(RequestContext))
 * 18) 17 [internal function]: RequestContext->msg('pagetitle')
 * 19) 18 /var/www/[myfolder]/includes/context/ContextSource.php(165): call_user_func_array(Array, Array)
 * 20) 19 /var/www/[myfolder]/includes/OutputPage.php(878): ContextSource->msg('pagetitle')
 * 21) 20 /var/www/[myfolder]/includes/Article.php(554): OutputPage->setPageTitle('Main Page')
 * 22) 21 /var/www/[myfolder]/includes/actions/ViewAction.php(44): Article->view
 * 23) 22 /var/www/[myfolder]/includes/Wiki.php(439): ViewAction->show
 * 24) 23 /var/www/[myfolder]/includes/Wiki.php(305): MediaWiki->performAction(Object(Article), Object(Title))
 * 25) 24 /var/www/[myfolder]/includes/Wiki.php(565): MediaWiki->performRequest
 * 26) 25 /var/www/[myfolder]/includes/Wiki.php(458): MediaWiki->main
 * 27) 26 /var/www/[myfolder]/index.php(59): MediaWiki->run
 * 28) 27 {main}

I don't know if it can be useful, but I have the following custom namespaces: 100, 101, 110, 111, 500, 501, 510, 511. And subpages activated. I hope you can help me. Thank you. --Gborgonovo (talk) 20:04, 6 March 2014 (UTC)
 * It's because there was no  in one of the EL hooks.  I proposed to add it in 118026.  However, you should check your MW version (Special:Version).  EventLogging says it supports 1.21+, but I haven't investigated this.  It's possible it still won't work even with my proposed change. Superm401 - Talk 23:10, 10 March 2014 (UTC)
 * Thank you --Gborgonovo (talk) 09:19, 11 March 2014 (UTC)
 * It is merged now. Please update (pull) EventLogging to latest master, then retest.  If it still doesn't work, please post the error and note your MediaWiki version (from Special:Version). Superm401 - Talk 06:34, 20 March 2014 (UTC)
 * I'm sorry to return on this topic after so much time, but it seems I'm not yet able to make this extension to work. I'm running MediaWiki 1.21.1, PHP 5.3.10, and MySQL 5.5.38. When I activate the extension MW stops working and I get the following message:

MediaWiki internal error. Original exception: exception 'MWException' with message 'Detected bug in an extension! Hook EventLoggingHooks::onBeforePageDisplay failed to return a value; should return true to continue hook processing or false to abort.' in /var/www/[myfolder]/includes/Hooks.php:284 Stack trace: Exception caught inside exception handler: exception 'MWException' with message 'Detected bug in an extension! Hook EventLoggingHooks::onBeforePageDisplay failed to return a value; should return true to continue hook processing or false to abort.' in /var/www/[myfolder]/includes/Hooks.php:284 Stack trace:
 * 1) 0 /var/www/[myfolder]/includes/GlobalFunctions.php(3883): Hooks::run('BeforePageDispl...', Array)
 * 2) 1 /var/www/[myfolder]/includes/OutputPage.php(2031): wfRunHooks('BeforePageDispl...', Array)
 * 3) 2 /var/www/[myfolder]/includes/Wiki.php(572): OutputPage->output
 * 4) 3 /var/www/[myfolder]/includes/Wiki.php(458): MediaWiki->main
 * 5) 4 /var/www/[myfolder]/index.php(59): MediaWiki->run
 * 6) 5 {main}
 * 1) 0 /var/www/[myfolder]/includes/GlobalFunctions.php(3883): Hooks::run('BeforePageDispl...', Array)
 * 2) 1 /var/www/[myfolder]/includes/OutputPage.php(2031): wfRunHooks('BeforePageDispl...', Array)
 * 3) 2 /var/www/[myfolder]/includes/Exception.php(227): OutputPage->output
 * 4) 3 /var/www/[myfolder]/includes/Exception.php(272): MWException->reportHTML
 * 5) 4 /var/www/[myfolder]/includes/Exception.php(643): MWException->report
 * 6) 5 /var/www/[myfolder]/includes/Exception.php(713): MWExceptionHandler::report(Object(MWException))
 * 7) 6 /var/www/[myfolder]/includes/Wiki.php(461): MWExceptionHandler::handle(Object(MWException))
 * 8) 7 /var/www/[myfolder]/index.php(59): MediaWiki->run
 * 9) 8 {main}
 * Thank you, --Gborgonovo (talk) 16:52, 11 September 2014 (UTC)