Page MenuHomePhabricator

Uncaught TypeError: can't access property "getContentApi", ve.init.target is null
Open, Needs TriagePublic

Description

I get this error on https://www.mediawiki.org/wiki/Topic:Wrtheq4lru4u1lf1 when entering {{ into a comment box.

image.png (2×2 px, 655 KB)

Event Timeline

kostajh triaged this task as High priority.Mar 16 2022, 2:53 PM
kostajh created this task.
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
kostajh raised the priority of this task from High to Needs Triage.Mar 16 2022, 2:59 PM
kostajh added a subscriber: Etonkovidova.

Hmm, well I can't seem to reproduce it.

The exact steps I took were:

  1. click the edit pencil on the second comment
  2. change to source text
  3. click cancel
  4. start a new comment in visual mode
  5. input {{

cc @Etonkovidova

Jdlrobson subscribed.

Seems infrequent but it has been logged (although given the mediawiki.org error hasn't shown up could actually be higher)
https://logstash.wikimedia.org/goto/92b2607e74129b9aefa5f8feb638c5f3

at VeDmMWTransclusionModel.ve.dm.MWTransclusionModel.callTemplateDataApi  https://pt.m.wikipedia.org/w/load.php?lang=pt&modules=ext.visualEditor.core%2Cmwtransclusion&skin=minerva&version=1g7zn:886:68
at VeDmMWTransclusionModel.ve.dm.MWTransclusionModel.processChangeQueue  https://pt.m.wikipedia.org/w/load.php?lang=pt&modules=ext.visualEditor.core%2Cmwtransclusion&skin=minerva&version=1g7zn:885:929

Note: I had a quick look and as far as I can see this is unrelated to the changes we did as part of our WMDE-Templates-FocusArea. It seems ve.init.target wasn't initialized. This must have happened long before code specific to the template dialog is executed.

Also my first impression was that this might be related to T298599 in ContentTranslation because both are about some API requests related to templates – but it's unrelated.