Page MenuHomePhabricator

MediaWiki-InterwikiComponent
ActivePublic

Watchers (1)

Details

Description

Issues related to the interwiki system in MediaWiki core. This includes the InterwikiLookup service class, the database table, and site configuation for those. (Documentation)

Recent Activity

Today

Pppery added a comment to T382424: Scribunto fails with confusing error message for invalid #interlanguagelink langcode.

How about on changing the error message to include the first arg:

Sat, May 24, 5:13 AM · Patch-Needs-Improvement, MediaWiki-Interwiki, MediaWiki-Parser, Scribunto

Sun, May 18

Pppery closed T132247: MediaWiki doesn't support very well pages with interwiki prefix as Declined.

Closing per my previous comment, and the related T392223#10753203 declining a different variant of the same bug.

Sun, May 18, 2:52 AM · MediaWiki-Interwiki

Mon, May 12

ReleaseTaggerBot added a project to T380677: Wikimedia\Assert\ParameterAssertionException: Bad value for parameter $page: must represent an existing page (via RecentChange::notifyEdit): MW-1.45-notes (1.45.0-wmf.1; 2025-05-13).
Mon, May 12, 8:00 PM · MW-1.45-notes (1.45.0-wmf.1; 2025-05-13), MW-1.44-notes (1.44.0-wmf.12; 2025-01-14), [Archived] Wikidata Integrations Team, MediaWiki-Interwiki, MediaWiki-Recent-changes, MediaWiki-Core-DeferredUpdates, Moderator-Tools-Team, Wikimedia-production-error
Maintenance_bot removed a project from T380677: Wikimedia\Assert\ParameterAssertionException: Bad value for parameter $page: must represent an existing page (via RecentChange::notifyEdit): Patch-For-Review.
Mon, May 12, 7:30 PM · MW-1.45-notes (1.45.0-wmf.1; 2025-05-13), MW-1.44-notes (1.44.0-wmf.12; 2025-01-14), [Archived] Wikidata Integrations Team, MediaWiki-Interwiki, MediaWiki-Recent-changes, MediaWiki-Core-DeferredUpdates, Moderator-Tools-Team, Wikimedia-production-error
gerritbot added a comment to T380677: Wikimedia\Assert\ParameterAssertionException: Bad value for parameter $page: must represent an existing page (via RecentChange::notifyEdit).

Change #1113455 merged by jenkins-bot:

[mediawiki/core@master] RevisionStore: Query by page_id when available

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

Mon, May 12, 7:15 PM · MW-1.45-notes (1.45.0-wmf.1; 2025-05-13), MW-1.44-notes (1.44.0-wmf.12; 2025-01-14), [Archived] Wikidata Integrations Team, MediaWiki-Interwiki, MediaWiki-Recent-changes, MediaWiki-Core-DeferredUpdates, Moderator-Tools-Team, Wikimedia-production-error

Mon, May 5

A_smart_kitten added projects to T393355: Error 1300 when heading contains emoji and colon: MediaWiki-Interwiki, MediaWiki-Parser.
Mon, May 5, 8:58 AM · MediaWiki-Parser, MediaWiki-Interwiki

Tue, Apr 29

Pppery edited projects for T382424: Scribunto fails with confusing error message for invalid #interlanguagelink langcode, added: MediaWiki-Interwiki, Patch-Needs-Improvement; removed Patch-For-Review.
Tue, Apr 29, 4:30 PM · Patch-Needs-Improvement, MediaWiki-Interwiki, MediaWiki-Parser, Scribunto

Mon, Apr 28

Krinkle removed projects from T113034: RFC: Overhaul Interwiki map, unify with Sites and WikiMap: Platform Engineering Roadmap Decision Making, MW-1.27-release (WMF-deploy-2016-05-03_(1.27.0-wmf.23)).
Mon, Apr 28, 3:22 PM · [DEPRECATED] wdwb-tech, Wikidata-Ministry-Of-Magic-Tech-Debt, TechCom-RFC, User-Daniel, Proposal, MW-1.27-release-notes, MediaWiki-Interwiki, Wikidata, MediaWiki-Site-system, SiteMatrix, MediaWiki-extensions-Interwiki

Apr 11 2025

PrimeHunter added a comment to T29275: Interwiki links shouldn't be checked for length in Title::newFromText.

The code making interwiki links may not know namespaces at other wikis so it may be unable to tell whether [[:en:Foo:Bar]] is a mainspace page called "Foo:Bar" or the page "Bar" in a namespace called "Foo". That means a general solution may have to allow any title with at most 255 bytes after a colon, at least if the part before the colon doesn't exceed the maximun possible size there. That means interwiki linking may generate url's like this with 255 a's and 259 total bytes in a mainspace pagename:
https://en.wikipedia.org/wiki/Foo:Aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
So it would make a clickable wikilink at the source wiki but be an invalid too long page name at the target wiki. I don't think this is a serious concern. It would happen very rarely and not cause any problems I can think of. The current situation is worse when it's impossible to make interwiki wikilinks to some valid pages outside mainspace.

Apr 11 2025, 1:17 PM · MediaWiki-Interwiki, Wikimedia-Interwiki-links, Chinese-Sites
LennardHofmann added a comment to T29275: Interwiki links shouldn't be checked for length in Title::newFromText.

See w:User:PrimeHunter/Page name size in interwiki links for a nice explanation of this bug and see Template talk:Wikidata Infobox for the problems this bug is causing on Commons categories.

Apr 11 2025, 10:00 AM · MediaWiki-Interwiki, Wikimedia-Interwiki-links, Chinese-Sites
LennardHofmann merged T391664: Cannot make interwiki link to page whose fullpagename exceeds 255 bytes into T29275: Interwiki links shouldn't be checked for length in Title::newFromText.
Apr 11 2025, 9:48 AM · MediaWiki-Interwiki, Wikimedia-Interwiki-links, Chinese-Sites

Mar 27 2025

Aklapper renamed T380677: Wikimedia\Assert\ParameterAssertionException: Bad value for parameter $page: must represent an existing page (via RecentChange::notifyEdit) from Wikimedia\Assert\ParameterAssertionException: Bad value for parameter $page: must represent an existing page to Wikimedia\Assert\ParameterAssertionException: Bad value for parameter $page: must represent an existing page (via RecentChange::notifyEdit).
Mar 27 2025, 10:38 AM · MW-1.45-notes (1.45.0-wmf.1; 2025-05-13), MW-1.44-notes (1.44.0-wmf.12; 2025-01-14), [Archived] Wikidata Integrations Team, MediaWiki-Interwiki, MediaWiki-Recent-changes, MediaWiki-Core-DeferredUpdates, Moderator-Tools-Team, Wikimedia-production-error

Mar 24 2025

S0ring created T389758: autoCreateUser fails on a Interwiki Wiki's with shared database.
Mar 24 2025, 9:26 AM · MediaWiki-Platform-Team (Radar), MediaWiki-Core-AuthManager

Mar 20 2025

Reedy closed T389572: Warning: Incorrect filter configuration, code coverage will not be processed as Invalid.

Because it has no code, due to T33951: Merge Interwiki extension into MediaWiki core

Mar 20 2025, 11:14 PM · Test-Coverage, MediaWiki-Interwiki
Reedy created T389572: Warning: Incorrect filter configuration, code coverage will not be processed.
Mar 20 2025, 11:13 PM · Test-Coverage, MediaWiki-Interwiki

Mar 5 2025

Krinkle added a comment to T366790: Investigate weird behaviour around Google-selected canonical (yielding zhwiki page as first Wikipedia result).

Preserving a few screenshots here for posterity:

Mar 5 2025, 12:30 AM · MediaWiki-Interwiki, Chinese-Sites, MediaWiki-Engineering, SEO

Feb 28 2025

A_smart_kitten created T387558: Using Special:MyLanguage with an interwiki link produces unexpected/inconsistent behaviour.
Feb 28 2025, 12:12 PM · MediaWiki-Parser, MediaWiki-Interwiki, MediaWiki-Internationalization

Feb 19 2025

Pppery added a project to T260253: Language links for pages in MediaWiki namespace: MediaWiki-Interwiki.
Feb 19 2025, 6:33 PM · MediaWiki-Interwiki, MediaWiki-Internationalization, I18n

Feb 16 2025

Pppery edited projects for T45178: adding alarm for cross namespace interwiki mistakes, added: MediaWiki-Interwiki; removed MediaWiki-General.
Feb 16 2025, 7:25 PM · MediaWiki-Interwiki, OKR-Work, Crosswiki

Feb 11 2025

Seddon added a comment to T366790: Investigate weird behaviour around Google-selected canonical (yielding zhwiki page as first Wikipedia result).

Another example I have found is when you search Wikimedia Commons

Feb 11 2025, 11:21 PM · MediaWiki-Interwiki, Chinese-Sites, MediaWiki-Engineering, SEO

Feb 10 2025

Winston_Sung moved T117738: [Task] Add a mechanism to build interwiki wikitext links across sister projects from Backlog to Research/Tracking on the MediaWiki-Site-system board.
Feb 10 2025, 8:33 AM · MediaWiki-Site-system, MediaWiki-Interwiki, Wikidata

Jan 31 2025

Balyozxane edited projects for T385249: Add interwiki links not working on kuwiki, added: MediaWiki-Interwiki; removed MediaWiki-General.
Jan 31 2025, 1:38 AM · Wikidata, Wikidata Integration in Wikimedia projects, Wikimedia-Interwiki-links

Jan 30 2025

A_smart_kitten added a comment to T366790: Investigate weird behaviour around Google-selected canonical (yielding zhwiki page as first Wikipedia result).

In case another example would be useful/helpful for anything, searching for "thomas j watson wikiquote" currently results in Google directing me to a page on the English Wikiquote via the URL https://zh.wikipedia.org/wiki/q::en:Thomas_J._Watson

zhwiki interwiki google result (thomas j watson).png (368×1 px, 109 KB)
Jan 30 2025, 4:49 PM · MediaWiki-Interwiki, Chinese-Sites, MediaWiki-Engineering, SEO

Jan 28 2025

gerritbot added a project to T380677: Wikimedia\Assert\ParameterAssertionException: Bad value for parameter $page: must represent an existing page (via RecentChange::notifyEdit): Patch-For-Review.
Jan 28 2025, 2:55 PM · MW-1.45-notes (1.45.0-wmf.1; 2025-05-13), MW-1.44-notes (1.44.0-wmf.12; 2025-01-14), [Archived] Wikidata Integrations Team, MediaWiki-Interwiki, MediaWiki-Recent-changes, MediaWiki-Core-DeferredUpdates, Moderator-Tools-Team, Wikimedia-production-error
gerritbot added a comment to T380677: Wikimedia\Assert\ParameterAssertionException: Bad value for parameter $page: must represent an existing page (via RecentChange::notifyEdit).

Change #1113455 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[mediawiki/core@master] [POC] RevisionStore: Query by page_id when available

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

Jan 28 2025, 2:54 PM · MW-1.45-notes (1.45.0-wmf.1; 2025-05-13), MW-1.44-notes (1.44.0-wmf.12; 2025-01-14), [Archived] Wikidata Integrations Team, MediaWiki-Interwiki, MediaWiki-Recent-changes, MediaWiki-Core-DeferredUpdates, Moderator-Tools-Team, Wikimedia-production-error

Jan 21 2025

daniel closed T380536: RevisionRecord::getPage() should return an immutable ProperPageIdentity, a subtask of T380677: Wikimedia\Assert\ParameterAssertionException: Bad value for parameter $page: must represent an existing page (via RecentChange::notifyEdit), as Resolved.
Jan 21 2025, 3:39 PM · MW-1.45-notes (1.45.0-wmf.1; 2025-05-13), MW-1.44-notes (1.44.0-wmf.12; 2025-01-14), [Archived] Wikidata Integrations Team, MediaWiki-Interwiki, MediaWiki-Recent-changes, MediaWiki-Core-DeferredUpdates, Moderator-Tools-Team, Wikimedia-production-error

Jan 16 2025

daniel closed T380677: Wikimedia\Assert\ParameterAssertionException: Bad value for parameter $page: must represent an existing page (via RecentChange::notifyEdit) as Resolved.
Jan 16 2025, 6:59 AM · MW-1.45-notes (1.45.0-wmf.1; 2025-05-13), MW-1.44-notes (1.44.0-wmf.12; 2025-01-14), [Archived] Wikidata Integrations Team, MediaWiki-Interwiki, MediaWiki-Recent-changes, MediaWiki-Core-DeferredUpdates, Moderator-Tools-Team, Wikimedia-production-error

Jan 15 2025

daniel added a comment to T380677: Wikimedia\Assert\ParameterAssertionException: Bad value for parameter $page: must represent an existing page (via RecentChange::notifyEdit).

@SuzanneWood-WMDE and @seanleong-WMDE the operational issue should be fixed by the backport of the work-around I made, but I think the code in Wikibase doesn't work as intended. See my comments on the patch.

Jan 15 2025, 8:29 PM · MW-1.45-notes (1.45.0-wmf.1; 2025-05-13), MW-1.44-notes (1.44.0-wmf.12; 2025-01-14), [Archived] Wikidata Integrations Team, MediaWiki-Interwiki, MediaWiki-Recent-changes, MediaWiki-Core-DeferredUpdates, Moderator-Tools-Team, Wikimedia-production-error
ReleaseTaggerBot edited projects for T380677: Wikimedia\Assert\ParameterAssertionException: Bad value for parameter $page: must represent an existing page (via RecentChange::notifyEdit), added: MW-1.44-notes (1.44.0-wmf.12; 2025-01-14); removed MW-1.44-notes (1.44.0-wmf.13; 2025-01-21).
Jan 15 2025, 8:00 PM · MW-1.45-notes (1.45.0-wmf.1; 2025-05-13), MW-1.44-notes (1.44.0-wmf.12; 2025-01-14), [Archived] Wikidata Integrations Team, MediaWiki-Interwiki, MediaWiki-Recent-changes, MediaWiki-Core-DeferredUpdates, Moderator-Tools-Team, Wikimedia-production-error
Stashbot added a comment to T380677: Wikimedia\Assert\ParameterAssertionException: Bad value for parameter $page: must represent an existing page (via RecentChange::notifyEdit).

Mentioned in SAL (#wikimedia-operations) [2025-01-15T19:39:36Z] <brennen@deploy2002> Finished scap sync-world: Backport for [[gerrit:1111680|RevisionStore: No first revision of non-existing page (T380677)]] (duration: 17m 00s)

Jan 15 2025, 7:39 PM · MW-1.45-notes (1.45.0-wmf.1; 2025-05-13), MW-1.44-notes (1.44.0-wmf.12; 2025-01-14), [Archived] Wikidata Integrations Team, MediaWiki-Interwiki, MediaWiki-Recent-changes, MediaWiki-Core-DeferredUpdates, Moderator-Tools-Team, Wikimedia-production-error
Maintenance_bot removed a project from T380677: Wikimedia\Assert\ParameterAssertionException: Bad value for parameter $page: must represent an existing page (via RecentChange::notifyEdit): Patch-For-Review.
Jan 15 2025, 7:30 PM · MW-1.45-notes (1.45.0-wmf.1; 2025-05-13), MW-1.44-notes (1.44.0-wmf.12; 2025-01-14), [Archived] Wikidata Integrations Team, MediaWiki-Interwiki, MediaWiki-Recent-changes, MediaWiki-Core-DeferredUpdates, Moderator-Tools-Team, Wikimedia-production-error
Stashbot added a comment to T380677: Wikimedia\Assert\ParameterAssertionException: Bad value for parameter $page: must represent an existing page (via RecentChange::notifyEdit).

Mentioned in SAL (#wikimedia-operations) [2025-01-15T19:28:59Z] <brennen@deploy2002> bpirkle, brennen: Backport for [[gerrit:1111680|RevisionStore: No first revision of non-existing page (T380677)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Jan 15 2025, 7:29 PM · MW-1.45-notes (1.45.0-wmf.1; 2025-05-13), MW-1.44-notes (1.44.0-wmf.12; 2025-01-14), [Archived] Wikidata Integrations Team, MediaWiki-Interwiki, MediaWiki-Recent-changes, MediaWiki-Core-DeferredUpdates, Moderator-Tools-Team, Wikimedia-production-error
Stashbot added a comment to T380677: Wikimedia\Assert\ParameterAssertionException: Bad value for parameter $page: must represent an existing page (via RecentChange::notifyEdit).

Mentioned in SAL (#wikimedia-operations) [2025-01-15T19:22:35Z] <brennen@deploy2002> Started scap sync-world: Backport for [[gerrit:1111680|RevisionStore: No first revision of non-existing page (T380677)]]

Jan 15 2025, 7:22 PM · MW-1.45-notes (1.45.0-wmf.1; 2025-05-13), MW-1.44-notes (1.44.0-wmf.12; 2025-01-14), [Archived] Wikidata Integrations Team, MediaWiki-Interwiki, MediaWiki-Recent-changes, MediaWiki-Core-DeferredUpdates, Moderator-Tools-Team, Wikimedia-production-error
gerritbot added a comment to T380677: Wikimedia\Assert\ParameterAssertionException: Bad value for parameter $page: must represent an existing page (via RecentChange::notifyEdit).

Change #1111680 merged by jenkins-bot:

[mediawiki/core@wmf/1.44.0-wmf.12] RevisionStore: No first revision of non-existing page

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

Jan 15 2025, 7:22 PM · MW-1.45-notes (1.45.0-wmf.1; 2025-05-13), MW-1.44-notes (1.44.0-wmf.12; 2025-01-14), [Archived] Wikidata Integrations Team, MediaWiki-Interwiki, MediaWiki-Recent-changes, MediaWiki-Core-DeferredUpdates, Moderator-Tools-Team, Wikimedia-production-error
ReleaseTaggerBot added a project to T380677: Wikimedia\Assert\ParameterAssertionException: Bad value for parameter $page: must represent an existing page (via RecentChange::notifyEdit): MW-1.44-notes (1.44.0-wmf.13; 2025-01-21).
Jan 15 2025, 7:01 PM · MW-1.45-notes (1.45.0-wmf.1; 2025-05-13), MW-1.44-notes (1.44.0-wmf.12; 2025-01-14), [Archived] Wikidata Integrations Team, MediaWiki-Interwiki, MediaWiki-Recent-changes, MediaWiki-Core-DeferredUpdates, Moderator-Tools-Team, Wikimedia-production-error
gerritbot added a comment to T380677: Wikimedia\Assert\ParameterAssertionException: Bad value for parameter $page: must represent an existing page (via RecentChange::notifyEdit).

Change #1111680 had a related patch set uploaded (by BPirkle; author: Daniel Kinzler):

[mediawiki/core@wmf/1.44.0-wmf.12] RevisionStore: No first revision of non-existing page

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

Jan 15 2025, 6:27 PM · MW-1.45-notes (1.45.0-wmf.1; 2025-05-13), MW-1.44-notes (1.44.0-wmf.12; 2025-01-14), [Archived] Wikidata Integrations Team, MediaWiki-Interwiki, MediaWiki-Recent-changes, MediaWiki-Core-DeferredUpdates, Moderator-Tools-Team, Wikimedia-production-error
gerritbot added a comment to T380677: Wikimedia\Assert\ParameterAssertionException: Bad value for parameter $page: must represent an existing page (via RecentChange::notifyEdit).

Change #1111658 merged by jenkins-bot:

[mediawiki/core@master] RevisionStore: No first revision of non-existing page

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

Jan 15 2025, 6:13 PM · MW-1.45-notes (1.45.0-wmf.1; 2025-05-13), MW-1.44-notes (1.44.0-wmf.12; 2025-01-14), [Archived] Wikidata Integrations Team, MediaWiki-Interwiki, MediaWiki-Recent-changes, MediaWiki-Core-DeferredUpdates, Moderator-Tools-Team, Wikimedia-production-error
gerritbot added a project to T380677: Wikimedia\Assert\ParameterAssertionException: Bad value for parameter $page: must represent an existing page (via RecentChange::notifyEdit): Patch-For-Review.
Jan 15 2025, 4:27 PM · MW-1.45-notes (1.45.0-wmf.1; 2025-05-13), MW-1.44-notes (1.44.0-wmf.12; 2025-01-14), [Archived] Wikidata Integrations Team, MediaWiki-Interwiki, MediaWiki-Recent-changes, MediaWiki-Core-DeferredUpdates, Moderator-Tools-Team, Wikimedia-production-error
gerritbot added a comment to T380677: Wikimedia\Assert\ParameterAssertionException: Bad value for parameter $page: must represent an existing page (via RecentChange::notifyEdit).

Change #1111658 had a related patch set uploaded (by Daniel Kinzler; author: Daniel Kinzler):

[mediawiki/core@master] RvisionStore: No first revision of non-existing page

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

Jan 15 2025, 4:26 PM · MW-1.45-notes (1.45.0-wmf.1; 2025-05-13), MW-1.44-notes (1.44.0-wmf.12; 2025-01-14), [Archived] Wikidata Integrations Team, MediaWiki-Interwiki, MediaWiki-Recent-changes, MediaWiki-Core-DeferredUpdates, Moderator-Tools-Team, Wikimedia-production-error
Lydia_Pintscher added a project to T380677: Wikimedia\Assert\ParameterAssertionException: Bad value for parameter $page: must represent an existing page (via RecentChange::notifyEdit): [Archived] Wikidata Integrations Team.
Jan 15 2025, 4:21 PM · MW-1.45-notes (1.45.0-wmf.1; 2025-05-13), MW-1.44-notes (1.44.0-wmf.12; 2025-01-14), [Archived] Wikidata Integrations Team, MediaWiki-Interwiki, MediaWiki-Recent-changes, MediaWiki-Core-DeferredUpdates, Moderator-Tools-Team, Wikimedia-production-error
daniel added a comment to T380677: Wikimedia\Assert\ParameterAssertionException: Bad value for parameter $page: must represent an existing page (via RecentChange::notifyEdit).

@daniel happy for that change to be reverted if it's causing an issue, we'll also look into it

Jan 15 2025, 3:41 PM · MW-1.45-notes (1.45.0-wmf.1; 2025-05-13), MW-1.44-notes (1.44.0-wmf.12; 2025-01-14), [Archived] Wikidata Integrations Team, MediaWiki-Interwiki, MediaWiki-Recent-changes, MediaWiki-Core-DeferredUpdates, Moderator-Tools-Team, Wikimedia-production-error
SuzanneWood-WMDE added a comment to T380677: Wikimedia\Assert\ParameterAssertionException: Bad value for parameter $page: must represent an existing page (via RecentChange::notifyEdit).

@daniel happy for that change to be reverted if it's causing an issue, we'll also look into it

Jan 15 2025, 3:33 PM · MW-1.45-notes (1.45.0-wmf.1; 2025-05-13), MW-1.44-notes (1.44.0-wmf.12; 2025-01-14), [Archived] Wikidata Integrations Team, MediaWiki-Interwiki, MediaWiki-Recent-changes, MediaWiki-Core-DeferredUpdates, Moderator-Tools-Team, Wikimedia-production-error
daniel updated subscribers of T380677: Wikimedia\Assert\ParameterAssertionException: Bad value for parameter $page: must represent an existing page (via RecentChange::notifyEdit).

Actually, the relevant code in Wikibase was merged just last week. Perhaps that's what introduced the bug? https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Wikibase/+/1105355

Jan 15 2025, 3:26 PM · MW-1.45-notes (1.45.0-wmf.1; 2025-05-13), MW-1.44-notes (1.44.0-wmf.12; 2025-01-14), [Archived] Wikidata Integrations Team, MediaWiki-Interwiki, MediaWiki-Recent-changes, MediaWiki-Core-DeferredUpdates, Moderator-Tools-Team, Wikimedia-production-error
daniel added a comment to T380677: Wikimedia\Assert\ParameterAssertionException: Bad value for parameter $page: must represent an existing page (via RecentChange::notifyEdit).

Analysis:

  • MovePage::moveToInternal calls PageUpdater::saveRevision() to create a new redirect page under the old title, after the original page has been moved.
  • PageUpdater triggers the MultiContentSave hook and passes it a RenderedRevision object representing the new redirect page
  • TemplateData's handler for this hook calls getRevisionParserOutput on the RenderedRevision. TemplateData's invokvement is probably not relevant, getRevisionParserOutput will get called sooner or later by something or other.
  • RenderedRevision ends up calling ContentRenderer::getParserOutput which calls ContentHandler::getParserOutput
  • ContentHandler triggers the ContentAlterParserOutput hook, passing it a Title object which it created by calling TitleFactory::newFromPageReference based on a PageReference representing the new redirect page. This PageReference was obtained from the RevisionRecord created by PageUpdater (see renderedRevision::getSlotParserOutputUncached). newFromPageReference () does not use a Title cache, but will inherit the page ID if the PageReference is a PageIdentity, which is the case here. Presumably, this ID is 0 at this point, sine the PageIdentifier object we are getting here was constructed before the page was created (to be confirmed).
  • Wikibase's ParserOutputUpdateHookHandler calls ClientParserOutputDataUpdater which calls RevisionStore::getFirstRevision, passing the Title object created by ContentHandler.
  • RevisionStore::getFirstRevision causes a database query for the oldest revision of the page. The query uses namespace and name, not the page ID! It seems likely that the page ID in the Title object at this point is either 0, instead of the newly created redirect (to be confirmed). However, the query should find the single newly created revision of the redirect page at this point (to be confirmed).
  • RevisionStore finds revision rows and tries to instantiate a RevisionStoreRecord for them, passing in the Title object that was provided to the getFirstRevision () call. This fails, because the Title object has page ID 0.
Jan 15 2025, 12:32 PM · MW-1.45-notes (1.45.0-wmf.1; 2025-05-13), MW-1.44-notes (1.44.0-wmf.12; 2025-01-14), [Archived] Wikidata Integrations Team, MediaWiki-Interwiki, MediaWiki-Recent-changes, MediaWiki-Core-DeferredUpdates, Moderator-Tools-Team, Wikimedia-production-error
daniel claimed T380677: Wikimedia\Assert\ParameterAssertionException: Bad value for parameter $page: must represent an existing page (via RecentChange::notifyEdit).

I'll try to look into this today. If I can't find it in time, we'll have to revert https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1105447.

Jan 15 2025, 10:10 AM · MW-1.45-notes (1.45.0-wmf.1; 2025-05-13), MW-1.44-notes (1.44.0-wmf.12; 2025-01-14), [Archived] Wikidata Integrations Team, MediaWiki-Interwiki, MediaWiki-Recent-changes, MediaWiki-Core-DeferredUpdates, Moderator-Tools-Team, Wikimedia-production-error
daniel added a comment to T380677: Wikimedia\Assert\ParameterAssertionException: Bad value for parameter $page: must represent an existing page (via RecentChange::notifyEdit).

The trigger is different this time around, but it's another instance where we apparently try to instantiate a revision for a non-existing page. Probably something is getting out of whack due to the page move. It's triggered through Wikidata, so it doesn't show up in CI...

Jan 15 2025, 10:06 AM · MW-1.45-notes (1.45.0-wmf.1; 2025-05-13), MW-1.44-notes (1.44.0-wmf.12; 2025-01-14), [Archived] Wikidata Integrations Team, MediaWiki-Interwiki, MediaWiki-Recent-changes, MediaWiki-Core-DeferredUpdates, Moderator-Tools-Team, Wikimedia-production-error
kostajh added a comment to T380677: Wikimedia\Assert\ParameterAssertionException: Bad value for parameter $page: must represent an existing page (via RecentChange::notifyEdit).

I'm trying to move a page on mediawiki.org and cannot do so because of this error. There are two errors:

Jan 15 2025, 8:01 AM · MW-1.45-notes (1.45.0-wmf.1; 2025-05-13), MW-1.44-notes (1.44.0-wmf.12; 2025-01-14), [Archived] Wikidata Integrations Team, MediaWiki-Interwiki, MediaWiki-Recent-changes, MediaWiki-Core-DeferredUpdates, Moderator-Tools-Team, Wikimedia-production-error

Jan 13 2025

gerritbot added a comment to T71997: Clean up list of default interwikis.

Change #1110838 merged by jenkins-bot:

[mediawiki/vendor@master] Bump wikimedia/parsoid to 0.21.0-a11

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

Jan 13 2025, 8:37 PM · MW-1.44-notes (1.44.0-wmf.12; 2025-01-14), Patch-For-Review, MW-1.43-notes (1.43.0-wmf.4; 2024-05-07), MediaWiki-Interwiki
gerritbot added a comment to T71997: Clean up list of default interwikis.

Change #1110838 had a related patch set uploaded (by Subramanya Sastry; author: Subramanya Sastry):

[mediawiki/vendor@master] Bump wikimedia/parsoid to 0.21.0-a11

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

Jan 13 2025, 7:30 PM · MW-1.44-notes (1.44.0-wmf.12; 2025-01-14), Patch-For-Review, MW-1.43-notes (1.43.0-wmf.4; 2024-05-07), MediaWiki-Interwiki

Jan 7 2025

Bugreporter added a parent task for T113034: RFC: Overhaul Interwiki map, unify with Sites and WikiMap: T90620: Re-implement Interwiki based on the sites table..
Jan 7 2025, 2:55 AM · [DEPRECATED] wdwb-tech, Wikidata-Ministry-Of-Magic-Tech-Debt, TechCom-RFC, User-Daniel, Proposal, MW-1.27-release-notes, MediaWiki-Interwiki, Wikidata, MediaWiki-Site-system, SiteMatrix, MediaWiki-extensions-Interwiki