Page MenuHomePhabricator

TypeError: itemsById[id]
Closed, DuplicatePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

For a few days now, previewing edits on Commons in source mode or even viewing standard pages like user pages or user talk pages at Commons will yield the following type error:

What happens?:
An error message pops up containing something like

TypeError: itemsById[id] is undefined
at ThreadItemSet.js/ThreadItemSet.static.newFromAnnotatedNodes/item.replies< https://ru.wikipedia.org/w/load.php?lang=ru&modules=ext.discussionTools.init%7Cjquery%2Cmoment%2Coojs-ui-core%2Coojs-ui-widgets%7Cjquery.ui&skin=vector-2022&version=y0xfp:101:69
at ThreadItemSet.js/ThreadItemSet.static.newFromAnnotatedNodes https://ru.wikipedia.org/w/load.php?lang=ru&modules=ext.discussionTools.init%7Cjquery%2Cmoment%2Coojs-ui-core%2Coojs-ui-widgets%7Cjquery.ui&skin=vector-2022&version=y0xfp:101:52
at init https://ru.wikipedia.org/w/load.php?lang=ru&modules=ext.discussionTools.init%7Cjquery%2Cmoment%2Coojs-ui-core%2Coojs-ui-widgets%7Cjquery.ui&skin=vector-2022&version=y0xfp:7:901
at reallyInit https://ru.wikipedia.org/w/load.php?lang=ru&modules=ext.discussionTools.init%7Cjquery%2Cmoment%2Coojs-ui-core%2Coojs-ui-widgets%7Cjquery.ui&skin=vector-2022&version=y0xfp:1:564
at dt.init.js/mw.dt.init https://ru.wikipedia.org/w/load.php?lang=ru&modules=ext.discussionTools.init%7Cjquery%2Cmoment%2Coojs-ui-core%2Coojs-ui-widgets%7Cjquery.ui&skin=vector-2022&version=y0xfp:1:704
at add https://ru.wikipedia.org/wiki/%D0%9E%D0%B1%D1%81%D1%83%D0%B6%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5_%D1%83%D1%87%D0%B0%D1%81%D1%82%D0%BD%D0%B8%D0%BA%D0%B0:Impro line 10 > injectedScript:823:583
at dt.init.js https://ru.wikipedia.org/w/load.php?lang=ru&modules=ext.discussionTools.init%7Cjquery%2Cmoment%2Coojs-ui-core%2Coojs-ui-widgets%7Cjquery.ui&skin=vector-2022&version=y0xfp:2:150
at runScript https://ru.wikipedia.org/w/load.php?lang=ru&modules=startup&only=scripts&raw=1&skin=vector-2022:12:259
at execute/cssHandle/< https://ru.wikipedia.org/w/load.php?lang=ru&modules=startup&only=scripts&raw=1&skin=vector-2022:12:929
at flushCssBuffer https://ru.wikipedia.org/w/load.php?lang=ru&modules=startup&only=scripts&raw=1&skin=vector-2022:4:956

Other information (browser name/version, screenshots, etc.):
The preview error does happen while using the Monobook skin although the simple page view is not affected with Monobook.

Event Timeline

Tgr added a subscriber: Tgr.

I don't see any connection to StructuredDiscussions. It's happening on a village pump and ThreadItemSet is a DiscussionTools class.

This was the same issue as T314707, now resolved.