Page MenuHomePhabricator

TypeError: mw.config.get(...)[this.namespace] is undefined
Closed, ResolvedPublic

Description

Firefox 29, Win 7:
On https://de.wikipedia.org/wiki/Ata_Demirer?debug=true#mediaviewer/Datei:Ata_Demirer_01.jpg on opening mediaviewer.
Firebug shows:
TypeError: mw.config.get(...)[this.namespace] is undefined
https://bits.wikimedia.org/static-1.24wmf6/resources/src/mediawiki.api/mediawiki.api.js
Line 222
(at "apiDeferred.resolve( result, jqXHR );")

caused problem: not yet known.


Version: master
Severity: normal

Details

Reference
bz66147

Event Timeline

bzimport raised the priority of this task from to Needs Triage.
bzimport set Reference to bz66147.
bzimport added a subscriber: Unknown Object (MLST).
Se4598 created this task.Jun 4 2014, 11:19 PM
Tgr added a comment.Jun 4 2014, 11:58 PM

This is caused by the image being used on a page with a non-standard namespace (itwiki has a custom namespace for wikiprojects apparently). mmv.ui.fileUsage creates new Title(pagename, ns) from the globalusage API, and then calling getUrl() on that fails.

Change 138999 had a related patch set uploaded by Gergő Tisza:
Fix URL handling for global usage list

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

TheDJ added a comment.Jun 16 2014, 9:39 AM
  • Bug 66657 has been marked as a duplicate of this bug. ***

Change 138999 merged by jenkins-bot:
Fix URL handling for global usage list

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

Gilles moved this task from Untriaged to Done on the Multimedia board.Dec 2 2014, 8:54 AM