Page MenuHomePhabricator

TypeError: MediaWiki\Category\CategoryViewer::pagingLinks(): Argument #2 ($last) must be of type string, null given, called in /srv/mediawiki/php-1.46.0-wmf.18/includes/Category/CategoryViewer.php on line 599
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
  • service.version: 1.46.0-wmf.18
  • timestamp: 2026-03-03T20:58:13.975Z
  • labels.phpversion: 8.3.30
  • trace.id: ba4d4bfe-53a0-4f34-bbc8-d75c17815252
  • Find trace.id in Logstash
labels.normalized_message
[{reqId}] {exception_url}   TypeError: MediaWiki\Category\CategoryViewer::pagingLinks(): Argument #2 ($last) must be of type string, null given, called in /srv/mediawiki/php-1.46.0-wmf.18/includes/Category/CategoryViewer.php on line 599
FrameLocationCall
from/srv/mediawiki/php-1.46.0-wmf.18/includes/Category/CategoryViewer.php(714)
#0/srv/mediawiki/php-1.46.0-wmf.18/includes/Category/CategoryViewer.php(599)MediaWiki\Category\CategoryViewer->pagingLinks(string, null, string)
#1/srv/mediawiki/php-1.46.0-wmf.18/includes/Category/CategoryViewer.php(529)MediaWiki\Category\CategoryViewer->getSectionPagingLinks(string)
#2/srv/mediawiki/php-1.46.0-wmf.18/includes/Category/CategoryViewer.php(132)MediaWiki\Category\CategoryViewer->getPagesSection()
#3/srv/mediawiki/php-1.46.0-wmf.18/includes/Page/CategoryPage.php(101)MediaWiki\Category\CategoryViewer->getHTML()
#4/srv/mediawiki/php-1.46.0-wmf.18/includes/Page/CategoryPage.php(53)MediaWiki\Page\CategoryPage->closeShowCategory()
#5/srv/mediawiki/php-1.46.0-wmf.18/includes/Actions/ViewAction.php(71)MediaWiki\Page\CategoryPage->view()
#6/srv/mediawiki/php-1.46.0-wmf.18/includes/Actions/ActionEntryPoint.php(739)MediaWiki\Actions\ViewAction->show()
#7/srv/mediawiki/php-1.46.0-wmf.18/includes/Actions/ActionEntryPoint.php(510)MediaWiki\Actions\ActionEntryPoint->performAction(MediaWiki\Page\CategoryPage, MediaWiki\Title\Title)
#8/srv/mediawiki/php-1.46.0-wmf.18/includes/Actions/ActionEntryPoint.php(144)MediaWiki\Actions\ActionEntryPoint->performRequest()
#9/srv/mediawiki/php-1.46.0-wmf.18/includes/MediaWikiEntryPoint.php(180)MediaWiki\Actions\ActionEntryPoint->execute()
#10/srv/mediawiki/php-1.46.0-wmf.18/index.php(44)MediaWiki\MediaWikiEntryPoint->run()
#11/srv/mediawiki/w/index.php(3)require(string)
#12{main}
Impact
Notes

Details

Request URL
https://www.mediawiki.org/w/index.php?from=*&mobileaction=*&title=*
Related Changes in Gerrit:

Event Timeline

Change #1247684 had a related patch set uploaded (by Zabe; author: Zabe):

[mediawiki/core@master] CategoryViewer: Fall back to empty string in case of missing nextpage

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

Zabe triaged this task as Unbreak Now! priority.Mar 4 2026, 1:25 AM

Change #1247684 merged by jenkins-bot:

[mediawiki/core@master] CategoryViewer: Fall back to empty string in case of missing nextpage

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

Change #1248011 had a related patch set uploaded (by Zabe; author: Zabe):

[mediawiki/core@wmf/1.46.0-wmf.18] CategoryViewer: Fall back to empty string in case of missing nextpage

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

Will backporting https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1248011 unblock the train? I can do that now if it's ready. I see it has a +1.

Will backporting https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1248011 unblock the train? I can do that now if it's ready. I see it has a +1.

It is ready to be backported, yes.

Change #1248011 merged by jenkins-bot:

[mediawiki/core@wmf/1.46.0-wmf.18] CategoryViewer: Fall back to empty string in case of missing nextpage

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

Mentioned in SAL (#wikimedia-operations) [2026-03-04T19:33:24Z] <jhuneidi@deploy2002> Started scap sync-world: Backport for [[gerrit:1248011|CategoryViewer: Fall back to empty string in case of missing nextpage (T418934)]]

Mentioned in SAL (#wikimedia-operations) [2026-03-04T19:35:27Z] <jhuneidi@deploy2002> zabe, jhuneidi: Backport for [[gerrit:1248011|CategoryViewer: Fall back to empty string in case of missing nextpage (T418934)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2026-03-04T19:44:14Z] <jhuneidi@deploy2002> Finished scap sync-world: Backport for [[gerrit:1248011|CategoryViewer: Fall back to empty string in case of missing nextpage (T418934)]] (duration: 10m 47s)

Zabe claimed this task.