https://bugzilla.wikimedia.org/show_bug.cgi?id=66595

            Bug ID: 66595
           Summary: Notice: Undefined index: help (when accessing
                    Special:Search)
           Product: MediaWiki extensions
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: Unprioritized
         Component: LiquidThreads
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
       Web browser: ---
   Mobile Platform: ---

Accessing [[Special:Search]]:

Notice: Undefined index: help in
/home/jesus/git/mediawiki/core/includes/GlobalFunctions.php on line 289

Running master (both MediaWiki core and LQT)

adding this inside wfArrayInsertAfter() in GlobalFunctions.php gives this nice
backtrace:
if ( !array_key_exists ( $after, $offsetByKey )) {
    wfDebugDieBacktrace( "Invalid offset: $after, " . print_r( $offsetByKey,
true ));
}


 /index.php?title=Especial%3ABuscar Exception from line 1836 of
/home/jesus/git/mediawiki/core/includes/GlobalFunctions.php: Invalid offset:
help, Array
(
[default] => 0
[images] => 1
[all] => 2
[advanced] => 3
)

Backtrace:

#0 /home/jesus/git/mediawiki/core/includes/GlobalFunctions.php(292):
wfDebugDieBacktrace(string)
#1 /home/jesus/git/mediawiki/extensions/LiquidThreads/classes/Hooks.php(337):
wfArrayInsertAfter(array, array, string)
#2 [internal function]: LqtHooks::customiseSearchProfiles(array)
#3 /home/jesus/git/mediawiki/core/includes/Hooks.php(206):
call_user_func_array(string, array)
#4 /home/jesus/git/mediawiki/core/includes/GlobalFunctions.php(4062):
Hooks::run(string, array, NULL)
#5 /home/jesus/git/mediawiki/core/includes/specials/SpecialSearch.php(1040):
wfRunHooks(string, array)
#6 /home/jesus/git/mediawiki/core/includes/specials/SpecialSearch.php(135):
SpecialSearch->getSearchProfiles()
#7 /home/jesus/git/mediawiki/core/includes/specials/SpecialSearch.php(97):
SpecialSearch->load()
#8 /home/jesus/git/mediawiki/core/includes/specialpage/SpecialPage.php(380):
SpecialSearch->execute(NULL)
#9
/home/jesus/git/mediawiki/core/includes/specialpage/SpecialPageFactory.php(510):
SpecialPage->run(NULL)
#10 /home/jesus/git/mediawiki/core/includes/Wiki.php(288):
SpecialPageFactory::executePath(Title, RequestContext)
#11 /home/jesus/git/mediawiki/core/includes/Wiki.php(603):
MediaWiki->performRequest()
#12 /home/jesus/git/mediawiki/core/includes/Wiki.php(452): MediaWiki->main()
#13 /home/jesus/git/mediawiki/core/index.php(46): MediaWiki->run()
#14 {main}

May happen in REL1_23 too

Apparently, it's trying to set up custom search group before help, but help has
been removed.

Since it's a NOTICE, it shouldn't pop up in production servers.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to