Page MenuHomePhabricator

Uncaught TypeError: Object #<Object> has no method 'isAnon'
Closed, ResolvedPublic


Uncaught TypeError: Object #<Object> has no method 'isAnon'

We see this on when logged out.

Error occurs on line 148 of wikibase.ui.entityViewInit.js

not all the functions and stuff in mw.user are loaded at this point or not available. mw.user IS an object, though.

Version: unspecified
Severity: normal



Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 1:20 AM
bzimport set Reference to bz44051.
bzimport added a subscriber: Unknown Object (MLST).

Unfortunately, we had to temporarily disable the anon warning.

Even with asking frond-end folks like Kaldari, we couldn't figure out a quick, easy hotfix for this.

Hope we have a fix for this soon.

Try setting a dependency against 'mediawiki.user' either in the module definition or dynamically using mw.loader.using (first one is preferred of course).

wikidata-bugs wrote:

Change Ie22a7213: (bug 44051) Adding mediawiki.user dependency to entityViewInit

Verified in Wikidata demo sprint 30