Last modified: 2014-11-07 12:43:34 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 T62029, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 60029 - PHP notice with RelatedSites and Wikibase Client: Failed to map interlanguage prefix wikipedia to a global site ID
PHP notice with RelatedSites and Wikibase Client: Failed to map interlanguage...
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
RelatedSites (Other open bugs)
master
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-14 02:42 UTC by Aude
Modified: 2014-11-07 12:43 UTC (History)
3 users (show)

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


Attachments

Description Aude 2014-01-14 02:42:26 UTC
The RelatedSites extension is used in Wikivoyage to put links to sister projects and other stuff in the sidebar.  

It uses $wgExtraLanguageNames to allow links like [[wikipedia:Italy]] to be put into the ParserOutput language links array. Later in ParserBeforeTidy, these array elements get unset and these "language" links get passed to output page.

Somewhere in the process, these get passed to LangLinkHandler in Wikibase and causes a php notice:

Notice: Failed to map interlanguage prefix wikipedia to a global site ID. [Called from Wikibase\LangLinkHandler::localLinksToArray in /srv/mediawiki/extensions/Wikidata/Wikibase/client/includes/LangLinkHandler.php at line 337]

This apparently happens on quite often on Wikivoyage but php notices do not get logged so no one has noticed.

Perhaps best way to solve this is to improve how RelatedSites work, using something other than the language links array. RelatedSites could also take advantage of Wikibase / Wikidata to provide these links.

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


Navigation
Links