Page MenuHomePhabricator

azb, lrc and gom language prefixes not recognized
Closed, ResolvedPublic

Description

The interlanguage prefixes azb, lrc and gom are currently not recognized.
Wikilinks with azb:, lrc: and gom: are interpreted as local page names.
It was reported at https://en.wikipedia.org/wiki/Wikipedia:Village_pump_%28technical%29#Azb.2C_lrc_and_gom_languages_links_are_red

Event Timeline

PrimeHunter raised the priority of this task from to High.
PrimeHunter updated the task description. (Show Details)
PrimeHunter subscribed.
Aklapper raised the priority of this task from High to Needs Triage.Dec 9 2015, 1:30 PM
TTO subscribed.

Maybe need to regenerate the interwiki map..?

We've refreshed the interwiki cache since those wikis were created though. Several times, in fact.

I wasn't really expecting this to work, but:

krenair@tin:~$ updateinterwikicache 
Updating interwiki cache...
           ___ ____
         ⎛   ⎛ ,----
          \  //==--'
     _//|,.·//==--'    ____________________________
    _OO≣=-  ︶ ᴹw ⎞_§ ______  ___\ ___\ ,\__ \/ __ \
   (∞)_, )  (     |  ______/__  \/ /__ / /_/ / /_/ /
     ¨--¨|| |- (  / ______\____/ \___/ \__^_/  .__/
         ««_/  «_/ jgs/bd808                /_/

17:04:36 Started sync-masters
sync-masters: 100% (ok: 1; fail: 0; left: 0)                                    
17:04:46 Finished sync-masters (duration: 00m 10s)
17:04:46 Started sync-proxies
sync-proxies: 100% (ok: 12; fail: 0; left: 0)                                   
17:04:49 Finished sync-proxies (duration: 00m 02s)
17:04:49 Started sync-apaches
sync-common: 100% (ok: 468; fail: 0; left: 0)                                   
17:05:05 Finished sync-apaches (duration: 00m 15s)
17:05:05 Synchronized wmf-config/interwiki.cdb: Updating interwiki cache (duration: 00m 28s)
Done
krenair@tin:~$ mwscript eval.php enwiki
> var_dump( Interwiki::fetch( 'lrc' ) );
object(Interwiki)#176 (6) {
  ["mPrefix":protected]=>
  string(3) "lrc"
  ["mURL":protected]=>
  string(27) "//lrc.wikipedia.org/wiki/$1"
  ["mAPI":protected]=>
  string(0) ""
  ["mWikiID":protected]=>
  string(0) ""
  ["mLocal":protected]=>
  int(1)
  ["mTrans":protected]=>
  int(0)
}

>

Why did this fix it?

Broken again.

Here's my theory, and it may well be completely wrong: There is a cronjob that updates the interwiki map, and it is running dumpInterwiki.php on a server that has an old copy of the operations/mediawiki-config git repository.

There is a cronjob that updates the interwiki map

nope

Ran the same thing again with the same result. Leaving this open to figure out why this has been necessary and to get it fixed properly.

Change 258375 had a related patch set uploaded (by Alex Monk):
Update interwiki.cdb

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

Krenair added a subscriber: thcipriani.

updateinterwikicache updates the file in mediawiki-staging, but you now have to commit the file to git (I guess when it was re-added there, they took the old version from git instead of the latest one). Someone (@thcipriani perhaps?) had reverted the change for some reason.