Page MenuHomePhabricator

ConfigException: GlobalVarConfig::get: undefined option: 'wgSearchMatchRedirectPreference'
Closed, ResolvedPublic

Description

2021-05-14 06:02:02 [13d4035a-5379-4244-9b78-1c613273b30c] mw1323 commonswiki 1.37.0-wmf.5 exception ERROR: [13d4035a-5379-4244-9b78-1c613273b30c] /wiki/Special:NewMediaSearch?search=tulip   ConfigException: GlobalVarConfig::get: undefined option: 'wgSearchMatchRedirectPreference' {"exception_url":"/wiki/Special:NewMediaSearch?search=tulip","reqId":"13d4035a-5379-4244-9b78-1c613273b30c","caught_by":"entrypoint"}
[Exception ConfigException] (/srv/mediawiki/php-1.37.0-wmf.5/includes/config/GlobalVarConfig.php:59) GlobalVarConfig::get: undefined option: 'wgSearchMatchRedirectPreference'
  #0 /srv/mediawiki/php-1.37.0-wmf.5/extensions/MediaSearch/src/Special/SpecialMediaSearch.php(355): GlobalVarConfig->get(string)
  #1 /srv/mediawiki/php-1.37.0-wmf.5/extensions/MediaSearch/src/Special/SpecialMediaSearch.php(340): MediaWiki\Extension\MediaSearch\Special\SpecialMediaSearch->redirectOnExactMatch()
  #2 /srv/mediawiki/php-1.37.0-wmf.5/extensions/MediaSearch/src/Special/SpecialMediaSearch.php(126): MediaWiki\Extension\MediaSearch\Special\SpecialMediaSearch->findExactMatchRedirectUrl(string)
  #3 /srv/mediawiki/php-1.37.0-wmf.5/includes/specialpage/SpecialPage.php(646): MediaWiki\Extension\MediaSearch\Special\SpecialMediaSearch->execute(NULL)
  #4 /srv/mediawiki/php-1.37.0-wmf.5/includes/specialpage/SpecialPageFactory.php(1396): SpecialPage->run(NULL)
  #5 /srv/mediawiki/php-1.37.0-wmf.5/includes/MediaWiki.php(313): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext)
  #6 /srv/mediawiki/php-1.37.0-wmf.5/includes/MediaWiki.php(916): MediaWiki->performRequest()
  #7 /srv/mediawiki/php-1.37.0-wmf.5/includes/MediaWiki.php(550): MediaWiki->main()
  #8 /srv/mediawiki/php-1.37.0-wmf.5/index.php(53): MediaWiki->run()
  #9 /srv/mediawiki/php-1.37.0-wmf.5/index.php(46): wfIndexMain()
  #10 /srv/mediawiki/w/index.php(3): require(string)
  #11 {main}

Event Timeline

Change 691160 had a related patch set uploaded (by Matthias Mullie; author: Matthias Mullie):

[mediawiki/extensions/MediaSearch@master] Config getters don't use wg prefix

https://gerrit.wikimedia.org/r/691160

Change 691160 merged by jenkins-bot:

[mediawiki/extensions/MediaSearch@master] Config getters don't use wg prefix

https://gerrit.wikimedia.org/r/691160

Etonkovidova added a subscriber: Etonkovidova.

Checked for commons wmf.9 - the error is not present.