Page MenuHomePhabricator

Uncaught TypeError: e.on/off is not a function (and Object doesn't support property or method 'on' error) in Minerva
Closed, ResolvedPublicPRODUCTION ERROR

Description

This occurs in Minerva desktop

This will trigger both errors

Error

MediaWiki version: n/a

message
Uncaught TypeError: e.on is not a function

Impact

Seems to occur on talk pages and notifications workflow. Likely an issue in MobileFrontend however.

Notes

There are various forms of this error including` Object doesn't support property or method 'on', Uncaught TypeError: e.off is not a function` and Uncaught TypeError: e.on is not a function

Details

Request ID
undefined
Request URL
n/a
Stack Trace
exception.trace
at o  URL1:447:401
at a._processMatch  URL1:448:263
at a._checkRoute  URL1:448:702
at OoRouter.OO.EventEmitter.emit  URL1:262:483
at URL1:270:1045
at OoRouter.OO.EventEmitter.emit  URL1:262:483
at URL1:270:898
at dispatch  URL1:169:742
at elemData.handle  URL1:166:388

URL1: https://meta.m.wikimedia.org/w/load.php?lang=tr&modules=ext.centralNotice.choiceData%2Cdisplay%2CgeoIP%2CkvStore%2CstartUp%7Cext.centralauth.ForeignApi%7Cext.centralauth.centralautologin.clearcookie%7Cext.echo.api%2Cinit%7Cext.eventLogging%2CnavigationTiming%2CwikimediaEvents%7Cext.wikimediaEvents.loggedin%7Cjquery%2Coojs%2Coojs-router%2Csite%7Cjquery.client%2Ccookie%2Cthrottle-debounce%7Cmediawiki.ForeignApi%2CString%2CTitle%2CUri%2Capi%2Cbase%2Ccldr%2Ccookie%2Cexperiments%2CjqueryMsg%2Clanguage%2Crouter%2Cstorage%2Ctemplate%2Cuser%2Cutil%2Cviewport%7Cmediawiki.ForeignApi.core%7Cmediawiki.libs.pluralruleparser%7Cmediawiki.page.ready%7Cmediawiki.page.watch.ajax%7Cmediawiki.template.mustache%7Cmediawiki.ui.anchor%7Cmobile.init%2Cstartup%7Cmobile.messageBox.styles%7Cmobile.ooui.icons%7Cmobile.pagelist.styles%7Cmobile.pagesummary.styles%7Cmobile.placeholder.images%7Cmobile.startup.images%7Cskins.minerva.icons.images.scripts%7Cskins.minerva.icons.images.scripts.misc%7Cskins.minerva.icons.page.issues.default.color%7Cskins.minerva.icons.page.issues.medium.color%7Cskins.minerva.icons.page.issues.uncolored%7Cskins.minerva.options%2Cscripts%7Cuser.defaults&skin=minerva&version=1293g

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Jdlrobson claimed this task.
Jdlrobson triaged this task as Medium priority.Sep 23 2020, 10:05 PM
Jdlrobson renamed this task from Uncaught TypeError: e.on is not a function to Uncaught TypeError: e.on/off is not a function in Vector.Oct 13 2020, 10:51 PM
Jdlrobson updated the task description. (Show Details)
Jdlrobson renamed this task from Uncaught TypeError: e.on/off is not a function in Vector to Uncaught TypeError: e.on/off is not a function (and Object doesn't support property or method 'on' error) in Minerva.Oct 16 2020, 6:01 PM
Jdlrobson updated the task description. (Show Details)

Change 645196 had a related patch set uploaded (by Jdlrobson; owner: Jdlrobson):
[mediawiki/skins/MinervaNeue@master] Avoid errors on malformed URIs when loading media viewer

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

Change 645196 merged by jenkins-bot:
[mediawiki/skins/MinervaNeue@master] Avoid errors on malformed URIs when loading media viewer

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

Still seeing the error for T268065 in production, but I can't replicate it locally.
Will check in again in the next deploy in January.

The original bug report however is resolved, and given my inability to replicate the e.on error I think a new ticket should be opened for that.