Page MenuHomePhabricator

PHP Fatal Error: Uncaught Error: Call to a member function getDescription() on null
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error

MediaWiki version: 1.36.0-wmf.14

message
PHP Fatal Error: Uncaught Error: Call to a member function getDescription() on null in /srv/mediawiki/php-1.36.0-wmf.14/skins/WikimediaApiPortal/src/Component/SecondaryNavComponent.php:122
Stack trace:
#0 /srv/mediawiki/php-1.36.0-wmf.14/skins/WikimediaApiPortal/src/Component/SecondaryNavComponent.php(64): MediaWiki\Skin\WikimediaApiPortal\Component\SecondaryNavComponent->getSpecialSidebar(Object(Title), Array, Object(TitleFactory), Object(MediaWiki\SpecialPage\SpecialPageFactory))
#1 /srv/mediawiki/php-1.36.0-wmf.14/skins/WikimediaApiPortal/src/ComponentFactory.php(226): MediaWiki\Skin\WikimediaApiPortal\Component\SecondaryNavComponent->__construct(Object(MediaWiki\Config\ServiceOptions), Object(MediaWiki\Message\MessageFormatterFactory), Object(MediaWiki\Skin\WikimediaApiPortal\Skin), Object(Title), Object(NamespaceInfo), Object(TitleFactory), Object(MediaWiki\SpecialPage\SpecialPageFactory), Object(PageProps))
#2 /srv/mediawiki/php-1.36.0-wmf.14/skins/WikimediaApiPortal/src/ComponentFactory.php(250): MediaWiki\Skin\Wikimed

Impact

There's like a dozen of these in group0. Not enough to block the train yet, but worrying.

Notes

Details

Request ID
a9305a7f-9b51-4b37-ade7-f82d4b529c29
Request URL
https://api.wikimedia.org/w/index.php?title=API_reference/Feeds_API&action=edit&redlink=1

Event Timeline

DannyS712 renamed this task from PHP Fatal Error: Uncaught Error: Call to a member function getDescription() on null in /srv/mediawiki/php-1.36.0-wmf.14/skins/WikimediaApiPortal/src/Component/SecondaryNavComponent.php:122Stack trace:#0 /srv/mediawiki/php-1.36.0-wmf.14/skins/WikimediaApiPortal/src/Component/SecondaryNavComponent.php(64): MediaWiki\Skin\WikimediaApiPortal\Component\SecondaryNavComponent->getSpecialSidebar(Object(Title), Array, Object(TitleFactory), Object(MediaWiki\SpecialPage\SpecialPageFactory))#1 /srv/mediawiki/php-1.36.0-wmf.14/skins/WikimediaApiPortal/src/ComponentFactory.php(226): MediaWiki\Skin\WikimediaApiPortal\Component\SecondaryNavComponent->__construct(Object(MediaWiki\Config\ServiceOptions), Object(MediaWiki\Message\MessageFormatterFactory), Object(MediaWiki\Skin\WikimediaApiPortal\Skin), Object(Title), Object(NamespaceInfo), Object(TitleFactory), Object(MediaWiki\SpecialPage\SpecialPageFactory), Object(PageProps))#2 /srv/mediawiki/php-1.36.0-wmf.14/skins/WikimediaApiPortal/src/ComponentFactory.php(250): MediaWiki\Skin\Wikimed to PHP Fatal Error: Uncaught Error: Call to a member function getDescription() on null.Oct 20 2020, 2:16 PM

The skin is only enabled on api.wikimedia.org, so this error will not grow larger as deployment onto more groups happen. cc @cicalese

Caused by

'wgWMAPIPSidebarSpecialPages' => [
	// no default, fallback on extension default if extension is
	// installed, unnecessary otherwise
	'apiportalwiki' => [
		'AppManagement',
		'Notifications',
		'Preferences'
	],
],

since Special:AppManagement doesn't exist yet

Change 635045 had a related patch set uploaded (by DannyS712; owner: DannyS712):
[mediawiki/skins/WikimediaApiPortal@master] SecondaryNavComponent: Handle missing special pages

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

Change 635329 had a related patch set uploaded (by Cicalese; owner: DannyS712):
[mediawiki/skins/WikimediaApiPortal@wmf/1.36.0-wmf.14] Components: Handle missing special pages

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

Change 635045 merged by jenkins-bot:
[mediawiki/skins/WikimediaApiPortal@master] Components: Handle missing special pages

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

Change 635358 had a related patch set uploaded (by Cicalese; owner: Cicalese):
[mediawiki/skins/WikimediaApiPortal@master] Add test to user menu for missing special pages.

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

Change 635358 merged by jenkins-bot:
[mediawiki/skins/WikimediaApiPortal@master] Add test to user menu for missing special pages.

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

Change 635329 merged by jenkins-bot:
[mediawiki/skins/WikimediaApiPortal@wmf/1.36.0-wmf.14] Components: Handle missing special pages

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

Mentioned in SAL (#wikimedia-operations) [2020-10-21T17:43:08Z] <ppchelko@deploy1001> Synchronized php-1.36.0-wmf.14/skins/WikimediaApiPortal: Backport gerrit:635329, T266021 (duration: 01m 06s)