Page MenuHomePhabricator

[BUG] Invalid image URL on the newcomer homepage’s Impact section
Open, Needs TriagePublicBUG REPORT


Original task description

Steps to Reproduce:

  • Unsure, maybe impossible. When I open my own newcomer homepage, the thumbnail image of is //, which is invalid (it looks like a thumbnail URL mixed up with a geocoordinate).

Actual Results:

  • The thumbnail image for the Németország article doesn’t appear, its place is blank.

Expected Results:

  • A thumbnail (or placeholder) appears, just like for the other four articles.
Proposed solution

Per @Etonkovidova's confirmation of the bug and notes in T245508#6778931, it seems like certain SVGs are not being rendered properly as the thumbnail.
For such images which are resulting in a "Cannot load the image" console error, can we instead show the placeholder thumbnail image (shown when an article has no image available)?

image.png (100×108 px, 1 KB)

Event Timeline

RHo renamed this task from Invalid image URL on the newcomer homepage’s Impact section to [BUG] Invalid image URL on the newcomer homepage’s Impact section.Jan 26 2021, 5:44 PM
RHo added a project: Growth-Team.

Checked huwiki (via Special:Impact page) - the issue seems to happen quite often. In the screenshot below, the thumbnail for Németország article is displayed but it's missing for another article with the similar template - Magyarország

Screen Shot 2021-01-26 at 4.32.33 PM.png (369×1 px, 52 KB)

<a class="article-image" href="/wiki/Magyarorsz%C3%A1g" title="Szócikk megtekintése" data-link-id="impact-article-image"><div alt="Magyarország" title="Magyarország" class="real-image" style="background-image: url(//;"></div></a>

And there is a message in the Console - "Cannot load the image":


  • the issue is less common, but it's still present on cswiki
  • the issue is not present - as far as I could see - in betalabs or in testwiki.
RHo added a subscriber: RHo.

I've updated the task description with a proposed solution to show the placeholder image icon instead when the image thumbnail fails to load for any reason.