Page MenuHomePhabricator

VisualEditor: Faulty wmf21 OOjs UI deploy -> Exception on load "Uncaught TypeError: Object #<Object> has no method 'lookup'"
Closed, ResolvedPublic

Description

After wmf21 deployment cannot load VE on en.wiki.GEtting the following error:

Uncaught TypeError: Object #<Object> has no method 'lookup' VM734:1505


Version: unspecified
Severity: normal

Details

Reference
bz63791

Event Timeline

• bzimport raised the priority of this task from to Unbreak Now!.Nov 22 2014, 3:14 AM
• bzimport set Reference to bz63791.

oojs-ui was pulled through to MW core with a breaking change ( https://gerrit.wikimedia.org/r/#/c/121537/ ) before the update to VE extension.

It was correctly pulled through to ve core with changes: https://gerrit.wikimedia.org/r/#/c/120844/

Uncaught TypeError: Object #<Object> has no method 'lookup' VM1319:1505
OO.ui.Toolbar.setup VM1319:1505
ve.init.mw.Target.setUpToolbar VM1319:19180
ve.init.mw.ViewPageTarget.setUpToolbar VM1319:21943
(anonymous function)

Looks like Rummana and Trevor can reproduce it on their machine, but Ed and myself cannot.

And on their machine it also doesn't happen in Incognito mode, so looks like it is a caching bug.

[#wikimedia-operations]
!log krinkle touched php-1.23wmf21/resources/oojs-ui/oojs-ui.js'
!log krinkle touched php-1.23wmf21/resources/startup.js
!log krinkle touched php-1.23wmf21/extensions/VisualEditor/lib/ve/lib/oojs-ui/oojs-ui.js
!log krinkle touched php-1.23wmf21/extensions/VisualEditor/lib/ve/modules/ve/ui/ve.ui.Toolbar.js

Looks like a caching issue.

The offending line is 25 of ve.ui.Toolbar.js

Fixed by Timo