Jump to content

Extension talk:EventLogging

Add topic
From mediawiki.org

Advanced CheckUser with ClickTracking

[edit]

(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)Reply

Error message after installing GuidedTour: "Detected bug in an extension! Hook CanonicalNamespaces..."

[edit]

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:

#0 /var/www/[myfolder]/includes/GlobalFunctions.php(3883): Hooks::run('CanonicalNamesp...', Array)
#1 /var/www/[myfolder]/includes/Namespace.php(226): wfRunHooks('CanonicalNamesp...', Array)
#2 /var/www/[myfolder]/includes/Namespace.php(257): MWNamespace::getCanonicalNamespaces()
#3 /var/www/[myfolder]/languages/Language.php(705): MWNamespace::getCanonicalIndex('template')
#4 /var/www/[myfolder]/includes/Title.php(3136): Language->getNsIndex('Template')
#5 /var/www/[myfolder]/includes/Title.php(152): Title->secureAndSplit()
#6 /var/www/[myfolder]/extensions/DynamicPageList/DPLSetup.php(1232): Title::newFromText('Template:Extens...')
#7 /var/www/[myfolder]/extensions/DynamicPageList/DPLSetup.php(1211): ExtDynamicPageList::commonSetup()
#8 [internal function]: ExtDynamicPageList::setupDPL()
#9 /var/www/[myfolder]/includes/Setup.php(551): call_user_func(Array)
#10 /var/www/[myfolder]/includes/WebStart.php(161): require_once('/var/www/...')
#11 /var/www/[myfolder]/index.php(55): require('/var/www/...')
#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:

#0 /var/www/[myfolder]/includes/GlobalFunctions.php(3883): Hooks::run('CanonicalNamesp...', Array)
#1 /var/www/[myfolder]/includes/Namespace.php(226): wfRunHooks('CanonicalNamesp...', Array)
#2 /var/www/[myfolder]/languages/Language.php(493): MWNamespace::getCanonicalNamespaces()
#3 /var/www/[myfolder]/includes/search/SearchEngine.php(349): Language->getNamespaces()
#4 /var/www/[myfolder]/includes/User.php(1241): SearchEngine::searchableNamespaces()
#5 /var/www/[myfolder]/includes/User.php(4334): User::getDefaultOptions()
#6 /var/www/[myfolder]/includes/User.php(348): User->loadOptions()
#7 /var/www/[myfolder]/includes/User.php(328): User->saveToCache()
#8 /var/www/[myfolder]/includes/User.php(286): User->loadFromId()
#9 /var/www/[myfolder]/includes/User.php(2073): User->load()
#10 /var/www/[myfolder]/includes/User.php(981): User->getToken(false)
#11 /var/www/[myfolder]/includes/User.php(289): User->loadFromSession()
#12 /var/www/[myfolder]/includes/User.php(4328): User->load()
#13 /var/www/[myfolder]/includes/User.php(2227): User->loadOptions()
#14 /var/www/[myfolder]/includes/context/RequestContext.php(296): User->getOption('language')
#15 /var/www/[myfolder]/includes/Message.php(360): RequestContext->getLanguage()
#16 /var/www/[myfolder]/includes/context/RequestContext.php(377): Message->setContext(Object(RequestContext))
#17 [internal function]: RequestContext->msg('pagetitle')
#18 /var/www/[myfolder]/includes/context/ContextSource.php(165): call_user_func_array(Array, Array)
#19 /var/www/[myfolder]/includes/OutputPage.php(878): ContextSource->msg('pagetitle')
#20 /var/www/[myfolder]/includes/Article.php(554): OutputPage->setPageTitle('Main Page')
#21 /var/www/[myfolder]/includes/actions/ViewAction.php(44): Article->view()
#22 /var/www/[myfolder]/includes/Wiki.php(439): ViewAction->show()
#23 /var/www/[myfolder]/includes/Wiki.php(305): MediaWiki->performAction(Object(Article), Object(Title))
#24 /var/www/[myfolder]/includes/Wiki.php(565): MediaWiki->performRequest()
#25 /var/www/[myfolder]/includes/Wiki.php(458): MediaWiki->main()
#26 /var/www/[myfolder]/index.php(59): MediaWiki->run()
#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)Reply

It's because there was no return true in one of the EL hooks. I proposed to add it in gerrit: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)Reply
Thank you --Gborgonovo (talk) 09:19, 11 March 2014 (UTC)Reply
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)Reply
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:
#0 /var/www/[myfolder]/includes/GlobalFunctions.php(3883): Hooks::run('BeforePageDispl...', Array)
#1 /var/www/[myfolder]/includes/OutputPage.php(2031): wfRunHooks('BeforePageDispl...', Array)
#2 /var/www/[myfolder]/includes/Wiki.php(572): OutputPage->output()
#3 /var/www/[myfolder]/includes/Wiki.php(458): MediaWiki->main()
#4 /var/www/[myfolder]/index.php(59): MediaWiki->run()
#5 {main}

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:
#0 /var/www/[myfolder]/includes/GlobalFunctions.php(3883): Hooks::run('BeforePageDispl...', Array)
#1 /var/www/[myfolder]/includes/OutputPage.php(2031): wfRunHooks('BeforePageDispl...', Array)
#2 /var/www/[myfolder]/includes/Exception.php(227): OutputPage->output()
#3 /var/www/[myfolder]/includes/Exception.php(272): MWException->reportHTML()
#4 /var/www/[myfolder]/includes/Exception.php(643): MWException->report()
#5 /var/www/[myfolder]/includes/Exception.php(713): MWExceptionHandler::report(Object(MWException))
#6 /var/www/[myfolder]/includes/Wiki.php(461): MWExceptionHandler::handle(Object(MWException))
#7 /var/www/[myfolder]/index.php(59): MediaWiki->run()
#8 {main}
Thank you, --Gborgonovo (talk) 16:52, 11 September 2014 (UTC)Reply

Apache2.4

[edit]

Hey could you give me a hand with configuring this extension on Apache2.4? I'm not sure how the virtual hosts definition should look.

I can't understand some messages which is presumed to be from eventlogging extension

[edit]

When I edit or search something in my private wiki, intermittently some messages like this is shown at the right side of screen. (Not always.)

Log event (Schema: TestSearchSatisfaction2): { "action": "checkin", "source": "autocomplete", "searchSessionId": "bc9b12f96339480c2999jy9opzp4...


After I click the message, some details is popping-up


Schema: TestSearchSatisfaction2 {

 "event": {
   "action": "searchResultPage",
   "source": "autocomplete",
   "searchSessionId": "bc9b12f96339480c2999jy9opzp4",
   "pageViewId": "ee2988b3d72063d93270jy9otv9x",
   "scroll": false,
   "mwSessionId": "ab14af32414bea6cd2b4",
   "uniqueId": "9be08db4637f8c222135jy9pf4dt",
   "hitsReturned": 0,
   "query": "Corticosteroid (CS)",
   "inputLocation": "content",
   "autocompleteType": "unknown"
 },
 "revision": 16909631,
 "schema": "TestSearchSatisfaction2",
 "webHost": "",
 "wiki": ""

}


This message was disappeared after I cleared the cache of browser.

I can't assume the origin of these messages. Is is related to some access permission?

In the chrome developer console, these errors were seen.


I already imported the Schema from metamediawiki. Schema:TestSearchSatisfaction2


In my LocalSettings.php, eventlogging settings are same as ↓

$wgEventLoggingBaseUri = 'https://localhost:443/event.gif';

$wgEventLoggingFile = '/var/log/mediawiki/events.log';

$wgEventLoggingSchemaApiUri = $wgServer . '/w/api.php';

$wgEventLoggingDBname = $wgDBname;


Is it the normal response? Otherwise, how can I solve the error?