Page MenuHomePhabricator

TypeError: Cannot read property 'top' of undefined in loadRelatedArticles
Closed, DeclinedPublic


Lots of this error showing up in logstash: 12,721 errors in the last 12 hours, triggering alerting system.

TypeError: Cannot read property 'top' of undefined

All are on mobile sites. Most of the stack traces look like this, so it looks like something to do with RelatedArticles

at Object.isElementInViewport  <anonymous>:231:41753
at Object.isElementCloseToViewport  <anonymous>:232:54
at loadRelatedArticles  <anonymous>:103:7018
at HTMLDocument.showReadMore  <anonymous>:104:36
at mightThrow
at process

Event Timeline

Pcoombe triaged this task as Unbreak Now! priority.Fri, Apr 30, 10:21 PM
Pcoombe created this task.
Jdlrobson closed this task as Declined.EditedFri, Apr 30, 10:24 PM

See the RelatedArticles code hasn't been changed in 4 years and there were no changes rolled out to English Wikipedia this year. The stack trace appears to be a red herring to me.