Topic on Extension talk:GuidedTour

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

2
Vitruvian95 (talkcontribs)

Hi installed both EventLogging and GuidedTour, and get this error message after activating GuidedTour. Help is much appreciated.

MediaWiki internal error.

Original exception: exception 'MWException' with message 'Detected bug in an extension! Hook GuidedTourHooks::onResourceLoaderRegisterModules failed to return a value; should return true to continue hook processing or false to abort.' in /home1/[my website path]/includes/Hooks.php:284
Stack trace:
#0 /home1/[my website path]/includes/GlobalFunctions.php(3883): Hooks::run('ResourceLoaderR...', Array)
#1 /home1/[my website path]/includes/resourceloader/ResourceLoader.php(206): wfRunHooks('ResourceLoaderR...', Array)
#2 /home1/[my website path]/includes/OutputPage.php(2565): ResourceLoader->__construct()
#3 /home1/[my website path]/includes/OutputPage.php(448): OutputPage->getResourceLoader()
#4 /home1/[my website path]/includes/OutputPage.php(473): OutputPage->filterModules(Array, 'bottom')
#5 /home1/[my website path]/includes/OutputPage.php(545): OutputPage->getModules(true, 'bottom', 'mModuleMessages')
#6 /home1/[my website path]/includes/OutputPage.php(2818): OutputPage->getModuleMessages(true, 'bottom')
#7 /home1/[my website path]/includes/OutputPage.php(2931): OutputPage->getScriptsForBottomQueue(false)
#8 /home1/[my website path]/includes/Skin.php(583): OutputPage->getBottomScripts()
#9 /home1/[my website path]/includes/SkinTemplate.php(390): Skin->bottomScripts()
#10 /home1/[my website path]/includes/OutputPage.php(2034): SkinTemplate->outputPage()
#11 /home1/[my website path]/includes/Wiki.php(572): OutputPage->output()
#12 /home1/[my website path]/includes/Wiki.php(458): MediaWiki->main()
#13 /home1/[my website path]/index.php(59): MediaWiki->run()
#14 {main}

Exception caught inside exception handler: exception 'MWException' with message 'Detected bug in an extension! Hook GuidedTourHooks::onResourceLoaderRegisterModules failed to return a value; should return true to continue hook processing or false to abort.' in /home1/[my website path]/includes/Hooks.php:284
Stack trace:
#0 /home1/[my website path]/includes/GlobalFunctions.php(3883): Hooks::run('ResourceLoaderR...', Array)
#1 /home1/[my website path]/includes/resourceloader/ResourceLoader.php(206): wfRunHooks('ResourceLoaderR...', Array)
#2 /home1/[my website path]/includes/OutputPage.php(2565): ResourceLoader->__construct()
#3 /home1/[my website path]/includes/OutputPage.php(448): OutputPage->getResourceLoader()
#4 /home1/[my website path]/includes/OutputPage.php(473): OutputPage->filterModules(Array, 'bottom')
#5 /home1/[my website path]/includes/OutputPage.php(545): OutputPage->getModules(true, 'bottom', 'mModuleMessages')
#6 /home1/[my website path]/includes/OutputPage.php(2818): OutputPage->getModuleMessages(true, 'bottom')
#7 /home1/[my website path]/includes/OutputPage.php(2931): OutputPage->getScriptsForBottomQueue(false)
#8 /home1/[my website path]/includes/Skin.php(583): OutputPage->getBottomScripts()
#9 /home1/[my website path]/includes/SkinTemplate.php(390): Skin->bottomScripts()
#10 /home1/[my website path]/includes/OutputPage.php(2034): SkinTemplate->outputPage()
#11 /home1/[my website path]/includes/Exception.php(227): OutputPage->output()
#12 /home1/[my website path]/includes/Exception.php(272): MWException->reportHTML()
#13 /home1/[my website path]/includes/Exception.php(643): MWException->report()
#14 /home1/[my website path]/includes/Exception.php(713): MWExceptionHandler::report(Object(MWException))
#15 /home1/[my website path]/includes/Wiki.php(461): MWExceptionHandler::handle(Object(MWException))
#16 /home1/[my website path]/index.php(59): MediaWiki->run()
#17 {main}

This post was posted by Vitruvian95, but signed as Felipe95a.

Mattflaschen (talkcontribs)

Thanks for the report. Core changed a few months ago so that a return true was no longer required here. However, I'm glad to add it so it isn't an obstacle to supporting older versions of MediaWiki core. This is fixed in latest master, so you can just pull to update.

This post was posted by Mattflaschen, but signed as Superm401.

Reply to "Error message after installing GuidedTour: "Detected bug in an extension! Hook GuidedTourHooks...""