Page MenuHomePhabricator

fix Category namespace on gurwiki
Closed, ResolvedPublic

Description

Something's wrong with the Category namespace (ns14) on gurwiki. See the list of pages in that namespace. None of the links lead to existing pages. Looks like it's because the prefix, "Buuri buuri ", has an extraneous space at the end.

Event Timeline

Change 900670 had a related patch set uploaded (by Stang; author: Stang):

[mediawiki/core@master] Fix NS_CATEGORY in Gur

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

Change 900671 had a related patch set uploaded (by Umherirrender; author: Stang):

[mediawiki/core@REL1_40] Fix NS_CATEGORY in Gur

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

Change 900670 merged by jenkins-bot:

[mediawiki/core@master] Fix NS_CATEGORY in Gur

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

Change 900671 merged by jenkins-bot:

[mediawiki/core@REL1_40] Fix NS_CATEGORY in Gur

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

Just for the record, the changes seen above have not (by themselves) fixed the problem.

@Stang: is there something else you are waiting to do / try? Should a maintenance script be run (e.g., namespaceDupes.php or something else)?

Further "evidence" follows…

See also gur:Special:WantedCategories, where categories are listed that are purportedly "in use" (note, BTW, that the information was last updated well after Stang's changes). Usually when following a link on this special page, you find yourself on a (not-yet-created) page that "looks like" a category — i.e., you can see the members of the category (pages and subcats) and the page is identified as a "Category" in the tabs at the top (in the desktop UI, anyway). This is not true in this case, no matter what form of URL you try to use. For example, for the wanted category "Pages with maps" (which has 57 members):

Please wait for the training. Maybe running namespaceDupes.php is needed, I'll recheck after the training is done on group1.

Hi @Dcljr, please check if the changes live on gurwiki.

Looks like this is fixed now. Thanks.

Whoops. There's still one inaccessible page that's using the previous prefix. It's called "Buuri buuri :Budaa" and can be found in the list of pages in the main namespace. I'm guessing this can't be fixed by running namespaceDupes.php (since the prefix is technically different) and that something else will have to be done…

Mentioned in SAL (#wikimedia-operations) [2023-03-29T13:34:16Z] <Lucas_WMDE> lucaswerkmeister-wmde@mwmaint2002:~$ mwscript namespaceDupes.php gurwiki --fix # T332241 – 0 pages to fix (0 resolvable), 0 links to fix (0 resolvable, 0 deleted)

Mentioned in SAL (#wikimedia-operations) [2023-03-29T13:37:37Z] <Lucas_WMDE> lucaswerkmeister-wmde@mwmaint2002:~$ mwscript cleanupTitles.php gurwiki # T332241 (2 of 767 rows updated)

Looks like cleanupTitles.php, suggested by @matmarex, did the trick.

lucaswerkmeister-wmde@mwmaint2002:~$ mwscript cleanupTitles.php gurwiki # T332241

*******************************************************************************
NOTE: Do not run maintenance scripts directly, use maintenance/run.php instead!
      Running scripts directly has been deprecated in MediaWiki 1.40.
      It may not work for some (or any) scripts in the future.
*******************************************************************************

Checking and fixing bad titles...
Processing page...
gurwiki 2023-03-29 13:37:24:  13.04% done on page; ETA 2023-03-29 13:37:24 [100/767] 8478.14/sec <0.00% updated>
gurwiki 2023-03-29 13:37:24:  26.08% done on page; ETA 2023-03-29 13:37:24 [200/767] 13700.61/sec <0.00% updated>
gurwiki 2023-03-29 13:37:24:  39.11% done on page; ETA 2023-03-29 13:37:24 [300/767] 18499.11/sec <0.00% updated>
gurwiki 2023-03-29 13:37:24:  52.15% done on page; ETA 2023-03-29 13:37:24 [400/767] 22358.89/sec <0.00% updated>
gurwiki 2023-03-29 13:37:24:  65.19% done on page; ETA 2023-03-29 13:37:24 [500/767] 25654.18/sec <0.00% updated>
gurwiki 2023-03-29 13:37:24:  78.23% done on page; ETA 2023-03-29 13:37:24 [600/767] 28582.26/sec <0.00% updated>
gurwiki 2023-03-29 13:37:24:  91.26% done on page; ETA 2023-03-29 13:37:24 [700/767] 30582.51/sec <0.00% updated>
page 734 (Buuri_buuri_:Budaa) doesn't match self.
renaming 734 (0,'Buuri_buuri_:Budaa') to (14,'Budaa')
page 742 (Buuri_Buuri:_Climate_change) doesn't match self.
renaming 742 (0,'Buuri_Buuri:_Climate_change') to (14,'Climate_change')
Finished page... 2 of 767 rows updated

Confirming everything looks fine now (technically speaking) on-wiki. Thanks.