Page MenuHomePhabricator

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


Firefox 29, Win 7:
On on opening mediaviewer.
Firebug shows:
TypeError: mw.config.get(...)[this.namespace] is undefined
Line 222
(at "apiDeferred.resolve( result, jqXHR );")

caused problem: not yet known.

Version: master
Severity: normal



Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:14 AM
bzimport added a project: MediaViewer.
bzimport set Reference to bz66147.
bzimport added a subscriber: Unknown Object (MLST).

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

  • Bug 66657 has been marked as a duplicate of this bug. ***

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