Page MenuHomePhabricator

PHP Warning: Undefined array key "section"
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
  • mwversion: 1.46.0-wmf.26
  • timestamp: 2026-04-29T22:38:09.590Z
  • phpversion: 8.3.30
  • reqId: b7961f06-2fcf-4eac-bc82-fe71487794a1
  • Find reqId in Logstash
normalized_message
[{reqId}] {exception_url}   PHP Warning: Undefined array key "section"
FrameLocationCall
from/srv/mediawiki/php-1.46.0-wmf.26/extensions/GlobalPreferences/includes/GlobalPreferencesFactory.php(325)
#0/srv/mediawiki/php-1.46.0-wmf.26/extensions/GlobalPreferences/includes/GlobalPreferencesFactory.php(325)MediaWiki\Exception\MWExceptionHandler::handleError(int, string, string, int)
#1/srv/mediawiki/php-1.46.0-wmf.26/extensions/GlobalPreferences/includes/GlobalPreferencesFactory.php(177)GlobalPreferences\GlobalPreferencesFactory->getPreferencesGlobal(MediaWiki\User\User, array, array, MediaWiki\Context\RequestContext)
#2/srv/mediawiki/php-1.46.0-wmf.26/includes/Preferences/DefaultPreferencesFactory.php(1997)GlobalPreferences\GlobalPreferencesFactory->getFormDescriptor(MediaWiki\User\User, MediaWiki\Context\RequestContext)
#3/srv/mediawiki/php-1.46.0-wmf.26/extensions/GlobalPreferences/includes/SpecialGlobalPreferences.php(74)MediaWiki\Preferences\DefaultPreferencesFactory->getForm(MediaWiki\User\User, MediaWiki\Context\RequestContext, string)
#4/srv/mediawiki/php-1.46.0-wmf.26/includes/Specials/SpecialPreferences.php(100)GlobalPreferences\SpecialGlobalPreferences->getFormObject(MediaWiki\User\User, MediaWiki\Context\RequestContext)
#5/srv/mediawiki/php-1.46.0-wmf.26/extensions/GlobalPreferences/includes/SpecialGlobalPreferences.php(64)MediaWiki\Specials\SpecialPreferences->execute(null)
#6/srv/mediawiki/php-1.46.0-wmf.26/includes/SpecialPage/SpecialPage.php(730)GlobalPreferences\SpecialGlobalPreferences->execute(null)
#7/srv/mediawiki/php-1.46.0-wmf.26/includes/SpecialPage/SpecialPageFactory.php(1720)MediaWiki\SpecialPage\SpecialPage->run(null)
#8/srv/mediawiki/php-1.46.0-wmf.26/includes/Actions/ActionEntryPoint.php(505)MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, MediaWiki\Context\RequestContext)
#9/srv/mediawiki/php-1.46.0-wmf.26/includes/Actions/ActionEntryPoint.php(145)MediaWiki\Actions\ActionEntryPoint->performRequest()
#10/srv/mediawiki/php-1.46.0-wmf.26/includes/MediaWikiEntryPoint.php(180)MediaWiki\Actions\ActionEntryPoint->execute()
#11/srv/mediawiki/php-1.46.0-wmf.26/index.php(44)MediaWiki\MediaWikiEntryPoint->run()
#12/srv/mediawiki/w/index.php(3)require(string)
#13{main}
Impact
Notes

Highest rate production log at the moment.

Details

Request URL
https://www.mediawiki.org/wiki/Special:GlobalPreferences
Related Changes in Gerrit:

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change #1282367 had a related patch set uploaded (by MusikAnimal; author: MusikAnimal):

[mediawiki/extensions/GlobalPreferences@master] GlobalPreferencesFactory: don't include hidden auto-globals in the form

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

MusikAnimal added subscribers: Jdlrobson, MusikAnimal.

I believe this is coming from the wikimedia-donor preference added by WikimediaCustomizations

wikimedia-donor is a hidden preference, meaning it shouldn't be exposed in Special:GlobalPreferences, but in GlobalPreferencesFactory::isGlobalizablePreference() we return true for auto-globals, ignoring the fact that the preference is hidden.

I think what we probably want is to just remove $this->isAutoGlobal( $name ) as a truthy condition in isGlobalizablePreference(). I've submitted a patch for that.

cc @Jdlrobson

MusikAnimal changed the task status from Open to In Progress.May 4 2026, 4:30 PM

Change #1282367 merged by jenkins-bot:

[mediawiki/extensions/GlobalPreferences@master] GlobalPreferencesFactory: don't include hidden auto-globals in the form

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

The warnings appear to have stopped as of 2026-05-04.