Page MenuHomePhabricator

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

Description

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

We see this on wikidata.org 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

Details

Reference
bz44051

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).
aude created this task.Jan 16 2013, 11:30 PM
aude added a comment.Jan 16 2013, 11:40 PM

Unfortunately, we had to temporarily disable the anon warning.

https://gerrit.wikimedia.org/r/#/c/44359/

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.

hoo added a comment.Jan 16 2013, 11:42 PM

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