Last modified: 2012-01-19 23:14:33 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T35808, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 33808 - interwiki map empty on Wikisources
interwiki map empty on Wikisources
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Interwiki links (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-01-18 23:18 UTC by Candalua
Modified: 2012-01-19 23:14 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Candalua 2012-01-18 23:18:15 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
Comment 1 Sam Reed (reedy) 2012-01-18 23:33:12 UTC
That's intriguing. All wikis use the same interwiki map
Comment 2 Sam Reed (reedy) 2012-01-19 22:33:44 UTC
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
Comment 3 Sam Reed (reedy) 2012-01-19 23:14:33 UTC
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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links