Last modified: 2012-01-19 23:14:33 UTC
When exporting a PDF from a Wikisource page (all subdomains), interwiki links appear at the end of the text, and obviously they shouldn't. I opened an issue on PediaPress: https://github.com/pediapress/mwlib/issues/6 The answer was that this is probably due to a misconfiguration: in Wikisource sites, the interwiki map appears to be empty: http://en.wikisource.org/w/api.php?action=query&meta=siteinfo&siprop=interwikimap
That's intriguing. All wikis use the same interwiki map
Ok, so looking at it some more. For whatever reason, non of the wikisource projects (don't know about any other top level projects) don't have any interwiki entries in their database Enwiki does for example, and the number of entries matches the number of database rows Why it would seem the interwiki cache file isn't being used, as in 1.18wmf1 (and hence 1.18) - see r92528 and bug 19838 This shouldn't be the cause of the problem, it's just an example of it in production. So it will be fixed in 1.19 The output below shows the interwiki cache is fine reedy@fenari:/home/wikipedia/common$ mwscript eval.php enwikisource > var_dump( Interwiki::fetch( 'fr' ) ); object(Interwiki)#192 (6) { ["mPrefix":protected]=> string(2) "fr" ["mURL":protected]=> string(27) "//fr.wikisource.org/wiki/$1" ["mAPI":protected]=> string(0) "" ["mWikiID":protected]=> string(0) "" ["mLocal":protected]=> int(1) ["mTrans":protected]=> int(0) } > var_dump( Interwiki::fetch( 'en:w' ) ); bool(false) > var_dump( Interwiki::fetch( 'en' ) ); object(Interwiki)#191 (6) { ["mPrefix":protected]=> string(2) "en" ["mURL":protected]=> string(27) "//en.wikisource.org/wiki/$1" ["mAPI":protected]=> string(0) "" ["mWikiID":protected]=> string(0) "" ["mLocal":protected]=> int(1) ["mTrans":protected]=> int(0) } > var_dump( Interwiki::fetch( 'wiki' ) ); object(Interwiki)#190 (6) { ["mPrefix":protected]=> string(4) "wiki" ["mURL":protected]=> string(25) "http://c2.com/cgi/wiki?$1" ["mAPI":protected]=> string(0) "" ["mWikiID":protected]=> string(0) "" ["mLocal":protected]=> int(0) ["mTrans":protected]=> int(0) } > var_dump( Interwiki::fetch( 'w' ) ); object(Interwiki)#189 (6) { ["mPrefix":protected]=> string(1) "w" ["mURL":protected]=> string(26) "//en.wikipedia.org/wiki/$1" ["mAPI":protected]=> string(0) "" ["mWikiID":protected]=> string(0) "" ["mLocal":protected]=> int(1) ["mTrans":protected]=> int(0) } > See also https://en.wikisource.org/w/index.php?title=User:Reedy&oldid=3585996
Fixed. It might be slightly out of the date... Going to update the scripts tomorrow so we get a more up to date interwiki lists