Error
MediaWiki version: 1.35.0-wmf.3
Call to a member function getId() on string
MediaWiki version: 1.35.0-wmf.3
Call to a member function getId() on string
#0 /includes/pager/TablePager.php(197): BlockListPager->formatValue(string, NULL) #1 /includes/pager/IndexPager.php(491): TablePager->formatRow(stdClass) #2 /includes/pager/TablePager.php(106): IndexPager->getBody() #3 /includes/specials/SpecialBlockList.php(231): TablePager->getFullOutput() #4 /includes/specials/SpecialBlockList.php(133): SpecialBlockList->showList(BlockListPager) #5 /includes/specialpage/SpecialPage.php(575): SpecialBlockList->execute(NULL) #6 /includes/specialpage/SpecialPageFactory.php(607): SpecialPage->run(NULL) #7 /includes/MediaWiki.php(298): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext) #8 /includes/MediaWiki.php(967): MediaWiki->performRequest() #9 /includes/MediaWiki.php(530): MediaWiki->main() #10 /index.php(44): MediaWiki->run() #11 /srv/mediawiki/w/index.php(3): require(string) #12 {main}
Change 545924 had a related patch set uploaded (by Dbarratt; owner: Dbarratt):
[mediawiki/core@master] Ensure that the $target is a UserIdentity before calling ::getId()
Change 545924 merged by jenkins-bot:
[mediawiki/core@master] Ensure that the $target is a UserIdentity before calling ::getId()
Change 545969 had a related patch set uploaded (by Tchanders; owner: Dbarratt):
[mediawiki/core@wmf/1.35.0-wmf.2] Ensure that the $target is a UserIdentity before calling ::getId()
Change 545970 had a related patch set uploaded (by Tchanders; owner: Dbarratt):
[mediawiki/core@wmf/1.35.0-wmf.3] Ensure that the $target is a UserIdentity before calling ::getId()
@Krinkle The patch that it's fixing is also on wmf.2 so have cherry-picked to both (https://gerrit.wikimedia.org/r/#/c/mediawiki/core/+/541074/)
Not sure why we didn't see errors earlier, possibly because blocks whose targets aren't user, IP or range are rare/old.
Change 545970 merged by jenkins-bot:
[mediawiki/core@wmf/1.35.0-wmf.3] Ensure that the $target is a UserIdentity before calling ::getId()
Mentioned in SAL (#wikimedia-operations) [2019-10-24T23:24:12Z] <krinkle@deploy1001> Synchronized php-1.35.0-wmf.3/includes/specials/pagers/BlockListPager.php: T236425, rMWfc99c5a7c0de (duration: 00m 54s)
Change 545969 abandoned by Tchanders:
Ensure that the $target is a UserIdentity before calling ::getId()
Reason:
No longer in production