Page MenuHomePhabricator

TypeError: Cannot read properties of null (reading 'style')
Closed, ResolvedPublicPRODUCTION ERROR

Description

Appearing on various ContentTranslation pages. 233 in last 24hrs.

Error
normalized_message
TypeError: Cannot read properties of null (reading 'style')
exception.trace
at onWindowResize
Impact
Notes

Event Timeline

Jdlrobson added a project: Language-Team.

This is one of our more common errors (517 errors a week). We should check what the impact is here. Seems limited to Chrome Mobile Safari.

Looks like contentRef can be null [1] here so should hopefully be easy to at least silence error.

[1] https://gerrit.wikimedia.org/g/mediawiki/extensions/ContentTranslation/+/c02f32bc457ca048bcbf09f91363f1c78584a5be/app/src/lib/mediawiki.ui/components/MWExpandableContent/MWExpandableContent.vue#101

Change 792122 had a related patch set uploaded (by Nik Gkountas; author: Nik Gkountas):

[mediawiki/extensions/ContentTranslation@master] MWExpandableContent SFC: Add check for contentRef on window resize

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

Change 792122 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] MWExpandableContent SFC: Add check for contentRef on window resize

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

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

[mediawiki/extensions/ContentTranslation@master] CX3 Build 0.2.0+20220517

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

Change 792418 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX3 Build 0.2.0+20220517

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

Unable to reproduce this after the fix. Marking this as done