Last modified: 2014-07-13 06:51:17 UTC
Created attachment 11305 [details] IWM per URL The interwiki map is completely gone, open any page to see it full of red links. Please rebuild it. To clarify, this is about restoring the MediaWiki default interwiki map (with the few local additions), not about using the Wikimedia interwiki map or adding more interwikis (bug 30847).
13:22 < mutante> !log copied interwiki.cdb from prod to wikitech, used $wgInterwikiCache to point to .cdb, mw does not use mysql table anymore. long iw links work again, "shortcuts" are different though and still an issue Since the recent upgrade MW is on a version that does not use the interwiki mysql table anymore (which is still present though). Per advice on IRC copied an interwiki.cdb from prod to wikitech and used $wgInterwikiCache in LocalSettings. But as pointed out above, the "shortcuts" are different and still affected.
OK, shortcuts are now working. Did: 0) create interwikicdb on the site itself, rather than using a cdb file from wmf. To do this: steal a copy of extensions/WikimediaMaintenance steal copies of langlist all.dblist special.dblist, put them somewhere nice add wikitech to all.dblist. edit dumpInterwikis.php to use the path you put the files in instead of /home/wikipedia/commons edit WikimediaMaintenance.php to include LocalSettings.php instead of CommonSettings.pgp (with the right path too) php extensions/WikimediaMaintenance/dumpInterwiki.php -o /some-nice-place/testcache.cdb 1) set $wgInterwikiFallbackSite = "wikitech"; in LocalSettings.php; if you don't do this the interwiki code thinks the site name is "wikitech-mw_ and finds nothing in the interwiki.cdb file with that. (must be due to db prefix.) 2) dump the interwiki cdb you just created (cdbdump < /path/to/cdb-file > /path/to/interwiki-text) for each entry starting with wikitech, add an identical entry (add one to key length) starting with _ example: +10,33:wikitech:q->1 http://en.wikiquote.org/wiki/$1 gets an additional line +11,33:_wikitech:q->1 http://en.wikiquote.org/wiki/$1 (prolly could take out the original lines but whatever.) make the new cdb file from the text you just edited: cdbmake new-cdb-fiel temp-cdb-file-you-can-toss-shortly < /path/to/interwiki-text copy the new cdb file into place and you are set. Other notes: I had set $site and $lang in WikimediaMaintenance/WikimediaMaintenance.php but I think those changes didn't make any difference. So note that this project thinks it is a wikipedia. we could change that I guess, if wanted... I can't imagine anyone wanting to do this for their own wiki. Need new tools.
Thank you very much Ariel! That sounded complicated and a quite some work to figure out. Nemo: iw table from API meanwhile: http://wikitech.wikimedia.org/api.php?action=query&meta=siteinfo&siprop=interwikimap [[w:Fnord]] or [[wikt:Fnord]] now also work fine for me. Not sure yet if that other linked Bug needs more or not, now.
Shorter approach: copy in the extension crap, copy in all.dblist, special.dblist, langlist, modify paths in dumpInterwikis.php from base of mw installation, do echo 'print wfWikiID();' | php maintenance/eval.php add this value (in our case, wikitech-mw_) to all.dblist and special.dblist from base of mw installation, do php extensions/WikimediaMaintenance/dumpInterwiki.php -o new-interwikis.db from base of mw installation, copy this new file into cache/interwiki.cdb make sure that LocalSetttings.php in mw installation base dir has $wgInterwikiCache = "$IP/cache/interwiki.cdb"; Now shortcuts and all other iw links should work for your project. Note that it will behave as though it is a 'wikipedia' with en as the default language.
Was broken again.
(In reply to Nemo from comment #5) > Was broken again. When? And "was" implies not anymore?
(In reply to Andre Klapper from comment #6) > (In reply to Nemo from comment #5) > > Was broken again. > > When? Some weeks or months ago, during some upgrade I suppose. > And "was" implies not anymore? No.
So you reopened it because it happened again at some vague point in the past but is not reproducible now anymore anyway? Sounds like a WORKSFORME case then.
No as in "it doesn't imply not anymore". The bug is current and easily reproducible, see URL.
(In reply to Nemo from comment #9) > No as in "it doesn't imply not anymore". The bug is current and easily > reproducible, see URL. How so? What do you expect to see?
(In reply to This, that and the other from comment #10) > How so? What do you expect to see? The [[m:IWM]] interwikis. It seems they re-appeared since April. On the other hand, "local" interwikis such has RT: have not been restored yet.