Page MenuHomePhabricator

JS error on page load on mobile Uncaught TypeError: Cannot read properties of null (reading 'includes')
Closed, ResolvedPublicPRODUCTION ERROR

Description

https://logstash.wikimedia.org/goto/6f9d387b3d9f7e2d9f7553bec3386777

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

What happens?:

JS error on page load

"Uncaught TypeError: Cannot read properties of null (reading 'includes')
TypeError: Cannot read properties of null (reading 'includes')\n    at WebUtil.isWishView (https://meta.m.wikimedia.org/w/load.php?lang=en&modules=ext.gadget.WishlistIntake&skin=minerva&version=1ezd8:24:587)\n    at WebUtil.isWishRelatedPage (https://meta.m.wikimedia.org/w/load.php?lang=en&modules=ext.gadget.WishlistIntake&skin=minerva&version=1ezd8:25:161)\n    at HTMLDocument.eval (https://meta.m.wikimedia.org/w/load.php?lang=en&modules=ext.gadget.WishlistIntake&skin=minerva&version=1ezd8:59:423)\n    at mightThrow (https://meta.m.wikimedia.org/w/load.php?lang=en&modules=%40wikimedia%2Fcodex%2Ccodex-styles%2Cjquery%2Coojs-ui-core%2Cvue%7Cext.discussionTools.init%7Cjquery.ui%7Cmobile.startup&skin=minerva&version=1urqx:180:648)\n    at process (https://meta.m.wikimedia.org/w/load.php?lang=en&modules=%40wikimedia%2Fcodex%2Ccodex-styles%2Cjquery%2Coojs-ui-core%2Cvue%7Cext.discussionTools.init%7Cjquery.ui%7Cmobile.startup&skin=minerva&version=1urqx:181:309

What should have happened instead?:

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
MusikAnimal changed the subtype of this task from "Bug Report" to "Production Error".Jul 22 2024, 8:45 PM

@Jdlrobson Do you know why mw.config.get('wgCategories') doesn't work on mobile? That sounds like a MW Core bug, or perhaps MobileFrontend.

Currently, wgCategories being set is essential to a functioning Wishlist.

Related, we've noticed wgCategories isn't set on action=edit, action=info or action=history -- despite the categories already being shown on the page in all cases but the latter.

For now, I'm thinking we should disable mobile editing entirely for the Wishlist.

Resolving. QA efforts can be part of T370839.