Page MenuHomePhabricator

InvalidArgumentException when accessing /wiki/Special:RecentChangesLinked/Category:User_xyz
Closed, ResolvedPublic1 Estimated Story PointsBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:

You see an error:

[3a04940711954891ba073911] 2025-08-29 06:33:45: Fatal exception of type "InvalidArgumentException"
`

Stack trace:

[2025-08-29T07:00:02.008428+00:00] exception.ERROR: [e41d7704fda0fe9b325f4360] /wiki/Special:RecentChangesLinked/Category:User_myv-1   InvalidArgumentException: LinksMigration config 259 on categorylinks table is not supported anymore {"exception":"[object] (InvalidArgumentException(code: 0): LinksMigration config 259 on categorylinks table is not supported anymore at /srv/mediawiki/tags/2025-08-29_06:24:58/includes/linker/LinksMigration.php:186)
[stacktrace]
#0 /srv/mediawiki/tags/2025-08-29_06:24:58/includes/linker/LinksMigration.php(101): MediaWiki\\Linker\\LinksMigration->assertMapping()
#1 /srv/mediawiki/tags/2025-08-29_06:24:58/includes/specials/SpecialRecentChangesLinked.php(227): MediaWiki\\Linker\\LinksMigration->getLinksConditions()
#2 /srv/mediawiki/tags/2025-08-29_06:24:58/includes/specialpage/ChangesListSpecialPage.php(1002): MediaWiki\\Specials\\SpecialRecentChangesLinked->doMainQuery()
#3 /srv/mediawiki/tags/2025-08-29_06:24:58/includes/specialpage/ChangesListSpecialPage.php(679): MediaWiki\\SpecialPage\\ChangesListSpecialPage->getRows()
#4 /srv/mediawiki/tags/2025-08-29_06:24:58/includes/specials/SpecialRecentChanges.php(216): MediaWiki\\SpecialPage\\ChangesListSpecialPage->execute()
#5 /srv/mediawiki/tags/2025-08-29_06:24:58/includes/specialpage/SpecialPage.php(725): MediaWiki\\Specials\\SpecialRecentChanges->execute()

What should have happened instead?:

No error should be displayed and recent changes should be displayed instead.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
MediaWiki - master branch

Other information (browser name/version, screenshots, etc.):

image.png (781×1 px, 28 KB)

Details

Related Changes in Gerrit:

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
abi_ triaged this task as Unbreak Now! priority.Aug 29 2025, 6:56 AM

We have the following configuration on translatewiki.net:

// To avoid breaking the website. See https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1168254
// TODO: Keep until the default has changed to avoid missing writes to the new.
$wgCategoryLinksSchemaMigrationStage = SCHEMA_COMPAT_WRITE_BOTH | SCHEMA_COMPAT_READ_OLD;

Seems related.

Change #1182997 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):

[translatewiki@master] Remove CategoryLinksSchemaMigrationStage

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

Change #1182997 merged by jenkins-bot:

[translatewiki@master] Remove CategoryLinksSchemaMigrationStage

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

We have the following configuration on translatewiki.net:

// To avoid breaking the website. See https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1168254
// TODO: Keep until the default has changed to avoid missing writes to the new.
$wgCategoryLinksSchemaMigrationStage = SCHEMA_COMPAT_WRITE_BOTH | SCHEMA_COMPAT_READ_OLD;

Seems related.

Removed the configuration and the error seems to have gone away.

abi_ claimed this task.
abi_ set the point value for this task to 1.
abi_ moved this task from Need QA to Done on the LPL Essential (2025 Jul-Oct) board.