Page MenuHomePhabricator

"Uncaught TypeError: Cannot read property 'scrollElementIntoView' of null"
Closed, ResolvedPublic1 Estimated Story Points

Description

Steps to reproduce

  • Click the small edit button on the right to switch to visualeditor.

(Use chrome)

Actual results

  • I get this error

TypeError: Right-hand side of 'instanceof' is not an object TypeError: Right-hand side of 'instanceof' is not an object(…)
load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=07zvr6j:176

I also get VisualEditor failed to load: Error: One or more dependencies failed to load

Uncaught TypeError: Cannot read property 'scrollElementIntoView' of null

  • Expected results**
  • I expect that VisualEditor should load.

Event Timeline

Paladox triaged this task as High priority.Sep 11 2016, 4:28 PM

It seems to happen only with the button that switches between visualeditor and wikieditor.

Aklapper renamed this task from VisualEditor error in chrome to "Uncaught TypeError: Cannot read property 'scrollElementIntoView' of null".Sep 11 2016, 5:50 PM
Aklapper raised the priority of this task from High to Needs Triage.

@Paladox: Please summarize the actual issue in task summaries, otherwise nearly every task summary would look like "error on website" and task are less distinguishable.
Also, please do not set priorities on tasks, as already requested before. Thanks.

It's not consistent. So far, I've seen the error happen:

  1. When initially loading the wikitext error.
  2. When switching to VE.
  3. When switching back from VE to wikitext.

There's also another error in the console:

Exception in module-execute in module mediawiki.Upload.BookletLayout

It's not consistent. So far, I've seen the error happen:

  1. When initially loading the wikitext error.
  2. When switching to VE.
  3. When switching back from VE to wikitext.

:-(

There's also another error in the console:

Exception in module-execute in module mediawiki.Upload.BookletLayout

That's T145315: Exception in module-execute in module mediawiki.Upload.BookletLayout. Possibly the whole task is caused by that?

I've now switched back and forth with and without changes a bunch of times in master without triggering this bug. Plausibly this is fixed.

Esanders claimed this task.
Jdforrester-WMF set the point value for this task to 1.