Page MenuHomePhabricator

TypeError: Cannot read property 'indexOf' of undefined
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
normalized_message
TypeError: Cannot read property 'indexOf' of undefined
exception.trace
at getMissingFrequentLanguages  <anonymous>:17:793
at <anonymous>:18:755
at Object.fire  <anonymous>:374:636
at onOpen  <anonymous>:220:407
at https://en.m.wikipedia.org/w/load.php?lang=en&modules=mobile.languages.structured&skin=minerva&version=1x4fg:2:460
Impact

239 in last 12 hours - https://logstash.wikimedia.org/goto/c46db792991ec36b8ae3ceba8a21a470

Notes

Affecting mobile domains - mostly en.m.wikipedia.org plus a few others

Event Timeline

Jdlrobson added a subscriber: Jdlrobson.

Hi language team just wanted to check in that you are aware of and handling this issue?

Yes, it is quite a simple fix. I have it ready and will publish it today.

Change 791827 had a related patch set uploaded (by Santhosh; author: Santhosh):

[mediawiki/extensions/ContentTranslation@master] mffrequentlanguages entryopoint: Handle the case of undefined deviceLanguage

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

Change 791827 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] mffrequentlanguages entryopoint: Handle the case of undefined deviceLanguage

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

TheDJ added a subscriber: TheDJ.

Screenshot 2022-06-08 at 10.46.26.png (159×1 px, 18 KB)