Page MenuHomePhabricator

Invalid title "Vita:WP:AZ" in watchlists on Hungarian Wikipedia
Open, Needs TriagePublicBUG REPORT

Description

Back in the old times we used to create redirects for Wikipédia: pages in huwiki like [[hu:WP:AZ]]. They were technically in main namespace. The talk page was [[hu:Vita:WP:AZ]]. Later on at some point WP: became an alias for Wikipédia:, so the according talk page is [[hu:Wikipédia-vita:AZ]]. The original talk page was neither redirected nor aliased, and it is now stuck somewhere. But Pywikibot still gets it through API and cannot do anything with it.

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

  • Click [[hu:Vita:WP:AZ]] or search for it in huwiki. It classifies an invalid page title.
  • For me watchlist = [page for page in site.watched_pages() if not page.isTalkPage()] with Pywikibot raises pywikibot.exceptions.InvalidTitleError: The (non-)talk page of 'Vita:WP:AZ' is a valid title in another namespace. It is hard to reproduce if you don't have such page on your own watchlist.

What happens?:
The non-existing [[hu:Vita:WP:AZ]] is stuck on my watchlist. It does not appear on web interface either by formatted or raw editing of my watchlist, but somewhere it is there, and I think it is retrieved via API interface because Pywikibot complains.

What should have happened instead?:

Either it should be aliased for Wikipédia-vita: namespace or centrally removed from everybody's watchlist by sysops.

Software version (skip for WMF-hosted wikis like Wikipedia):
Current w:hu

Other information (browser name/version, screenshots, etc.):
See also T330786 for Pywikibot.

Event Timeline

This seems unrelated to generally configuring the MediaWiki software itself. Not sure which tag is best to add - trying DBA but please remove if I am wrong!

Ladsgroup subscribed.

That's not really a database issue. It's mediawiki saying this page can't exist:
https://hu.wikipedia.org/wiki/Vita:WP:AZ

The requested page title refers to a talk page that cannot exist.

This seems unrelated to generally configuring the MediaWiki software itself. Not sure which tag is best to add - trying DBA but please remove if I am wrong!

Sorry, I remembered that I had to define namespaces in local config when I set up my private wiki. It is not easy to find a correct project watching the names.

No worries! Plus I also misunderstood the task (thanks for making me realize, Ladsgroup!). :-/

If this is a local wiki, run namespaceDupes.php there after alias changes to fix up that page names.

This is Hungarian Wikipedia.

It also seems that namespaceDupes does not work on the watchlist table and does not fix names there.
The watch api modules does not allow to input invalid titles. Not sure if the generator mode would act on the invalid ones, this link would remove all talk pages, when execute the query. https://hu.wikipedia.org/wiki/Speci%C3%A1lis:ApiSandbox#action=watch&format=json&unwatch=1&generator=watchlistraw&formatversion=2&gwrnamespace=1

If there are not too much pages on the watchlist at least the raw edit could work to remove that page: https://hu.wikipedia.org/wiki/Speci%C3%A1lis:Figyel%C5%91lista_szerkeszt%C3%A9se/raw
But not sure if that would fail internally when there is an invalid title or it would normalize the alias and removes the new page instead.

Not sure if a script exists to delete these entries from server side

If there are not too much pages on the watchlist at least the raw edit could work to remove that page: https://hu.wikipedia.org/wiki/Speci%C3%A1lis:Figyel%C5%91lista_szerkeszt%C3%A9se/raw

I already tried with ctrl f, but it is not present. Instead, Wikipédia:AZ is, which is the new name for the content page. Pywikibot somehow still gets it from API. (I have >9000 watched pages without talks.)

Pppery renamed this task from Ambigous namespace for hu:Vita:WP:AZ to Invalid title "Vita:WP:AZ" in watchlists on Hungarian Wikipedia.Feb 25 2025, 5:36 AM