Last modified: 2014-10-10 13:03:30 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T68595, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 66595 - Notice: Undefined index: help (when accessing Special:Search)
Notice: Undefined index: help (when accessing Special:Search)
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
LiquidThreads (Other open bugs)
master
All All
: Low normal (vote)
: ---
Assigned To: Niklas Laxström
:
: 66825 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-13 17:08 UTC by Jesús Martínez Novo (Ciencia Al Poder)
Modified: 2014-10-10 13:03 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Jesús Martínez Novo (Ciencia Al Poder) 2014-06-13 17:08:45 UTC
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.
Comment 1 Nemo 2014-10-10 13:02:03 UTC
*** Bug 66825 has been marked as a duplicate of this bug. ***
Comment 2 Nemo 2014-10-10 13:03:30 UTC
Fixed by Nikerabbit a while ago: 4a9a39101c1e7d12218116d26f135dc4ff31ac3a

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links