Page MenuHomePhabricator

TypeError: null is not an object (evaluating 'this.checkboxesByName.wpWatchthis')
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error

https://logstash.wikimedia.org/app/dashboards#/doc/logstash-*/logstash-default-1-7.0.0-1-2023.02.04?id=VxZwHIYBtuX9hbBwtUkn

normalized_message
TypeError: null is not an object (evaluating 'this.checkboxesByName.wpWatchthis')
exception.trace
Impact
Notes

208 errors in last 7 days

Event Timeline

It's inside ve.init.mw.DesktopArticleTarget.prototype.onWatchToggle, and is pretty easy to trigger: watch/unwatch the page and then edit it. It doesn't handle the case of there already being something in the hook-queue and so it running before the page metadata has been parsed to setup the checkboxes.

Change 886948 had a related patch set uploaded (by DLynch; author: DLynch):

[mediawiki/extensions/VisualEditor@master] Avoid error if watchlist has been toggled before editing

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

Change 886948 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Avoid error if watchlist has been toggled before editing

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