Page MenuHomePhabricator

Error: Call to a member function getPrefixedText() on null
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
  • mwversion: 1.37.0-wmf.19
  • reqId: 694910c4-2190-419a-b18c-4ddd9d691e85
normalized_message
[{reqId}] {exception_url} Error: Call to a member function getPrefixedText() on null
exception.trace
from /srv/mediawiki/php-1.37.0-wmf.19/extensions/CentralAuth/includes/specials/SpecialGlobalGroupMembership.php(141)
#0 /srv/mediawiki/php-1.37.0-wmf.19/includes/specials/SpecialUserrights.php(540): SpecialGlobalGroupMembership->showLogFragment(CentralAuthGroupMembershipProxy, OutputPage)
#1 /srv/mediawiki/php-1.37.0-wmf.19/includes/specials/SpecialUserrights.php(257): UserrightsPage->editUserGroupsForm(string)
#2 /srv/mediawiki/php-1.37.0-wmf.19/includes/specialpage/SpecialPage.php(646): UserrightsPage->execute(NULL)
#3 /srv/mediawiki/php-1.37.0-wmf.19/includes/specialpage/SpecialPageFactory.php(1365): SpecialPage->run(NULL)
#4 /srv/mediawiki/php-1.37.0-wmf.19/includes/MediaWiki.php(314): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext)
#5 /srv/mediawiki/php-1.37.0-wmf.19/includes/MediaWiki.php(925): MediaWiki->performRequest()
#6 /srv/mediawiki/php-1.37.0-wmf.19/includes/MediaWiki.php(559): MediaWiki->main()
#7 /srv/mediawiki/php-1.37.0-wmf.19/index.php(53): MediaWiki->run()
#8 /srv/mediawiki/php-1.37.0-wmf.19/index.php(46): wfIndexMain()
#9 /srv/mediawiki/w/index.php(3): require(string)
#10 {main}
Impact

Basically none because this only results in an error if and only if the username is not a valid title.

Notes

This happens when I go to https://test.wikipedia.org/w/index.php?user=%2332311304&title=Special%3AGlobalUserRights. On Special:GlobalUserRights is it possible to edit global group memberships via the global user id by prepending a #. In this case I tried to use the global user id 32311304.

This only results in an error because the name of this user is not a valid title. The username of the user with the global user id 32311304 is ~~~~~~~~~~.

Event Timeline

Change 715299 had a related patch set uploaded (by Umherirrender; author: Umherirrender):

[mediawiki/extensions/CentralAuth@master] Simplify user page handling in SpecialGlobalGroupMembership

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

Change 715299 merged by jenkins-bot:

[mediawiki/extensions/CentralAuth@master] Simplify user page handling in SpecialGlobalGroupMembership

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

Zabe assigned this task to Umherirrender.

No longer produces fatals.

globaluserrights.png (661×875 px, 67 KB)