Page MenuHomePhabricator

Getting error "Cannot read property 'target' of undefined" while opening VE from section edit link
Closed, ResolvedPublic1 Estimated Story Points


Steps to reproduce:

  1. Open VE and add something to the page
  2. Save the page
  3. Now click on the Section edit link to open VE

Observed Result:
Observe that, there is an error "Cannot read property 'target' of undefined" that appears briefly in the console.
If I add something more to the page and again save, there is another error in the console "Uncaught TypeError: Cannot read property 'getToolbarDialogs' of null"

Screen Shot 2017-03-01 at 12.06.06 PM.png (720×714 px, 203 KB)

Screen Shot 2017-03-01 at 12.09.29 PM.png (699×1 px, 196 KB)

Event Timeline

The second error also appears when adding new section using NWE, so I reported a separate issue on it here T159377

Change 340776 had a related patch set uploaded (by DLynch):
[mediawiki/extensions/VisualEditor] DesktopArticleTarget: Correctly bind section link handler

Change 340776 merged by DLynch:
[mediawiki/extensions/VisualEditor] DesktopArticleTarget: Correctly bind section link handler

Jdforrester-WMF assigned this task to DLynch.
Jdforrester-WMF triaged this task as Unbreak Now! priority.
Jdforrester-WMF set the point value for this task to 1.
Jdforrester-WMF moved this task from To Triage to TR0: Interrupt on the VisualEditor board.
Restricted Application added subscribers: Jay8g, TerraCodes. · View Herald Transcript