Page MenuHomePhabricator

PageImages returned 0-height image for page {title}, {fileName}
Closed, ResolvedPublic1 Estimated Story PointsPRODUCTION ERROR

Description

Error
  • mwversion: 1.47.0-wmf.6
  • timestamp: 2026-06-16T10:50:05.116Z
  • phpversion: 8.3.31
  • reqId: ad12360c-b2af-4827-b54d-e36b42b64087
  • Find reqId in Logstash
normalized_message
PageImages returned 0-height image for page {title}, {fileName}
exception.trace
Impact

Unclear.

Notes

This is happening almost exclusively at wikidatawiki, where GrowthExperiments was recently enabled. See T418115: Configure newcomer dashboard for Wikidata (per community consensus). However, I can also see few entires for zhwiki.

Usually, this is associated with PDF files as filenames.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

From a 1:1 between @Michael and I, we should probably detect if the image is a PDF and if so, not return any thumbnail image.

Change #1302924 had a related patch set uploaded (by Michael Große; author: Michael Große):

[mediawiki/extensions/GrowthExperiments@master] fix: add mime/media-type to 0-height page-image logs

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

Change #1302924 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] fix: add mime/media-type to 0-height page-image logs

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

Just chiming in to say that I also observed this error when doing chores today. There were 2,742 occurrences in the last 24 hours.

We can consider working on this to silence the logs. Feels straightforward from what @Urbanecm_WMF has shared.

Looking through the amended logs, it seems that $imageFile->getMimeType() is always 'application/pdf', and $imageFile->getMediaType() is always 'OFFICE'(!?).

I suggest we use $imageFile->getMimeType() when tackling this task.

Looking through the amended logs, it seems that $imageFile->getMimeType() is always 'application/pdf', and $imageFile->getMediaType() is always 'OFFICE'(!?).

I suggest we use $imageFile->getMimeType() when tackling this task.

There was a task about `img_media_type='OFFICE' triggering a production error T332757: Invalid file error for Add image - OFFICE is not valid mime type . There was also some discussion - starting https://phabricator.wikimedia.org/T332757#8725862.

The impact of this production error is unclear (as it's stated in in the task description). The level is WARNING, the volume is large - 2,156 reports in 24 hours - https://logstash.wikimedia.org/goto/bfdc418f5c9fdcd14fb40c2371546174.
The significant increase in the nuber of the reports started on 2026-06-16 - https://logstash.wikimedia.org/goto/8b9544bef7afeb2f2e912fec7fa71571.

I checked PageImages returned 0-height image for page Q140298320, Il_Liceale_n.2_(2025-2026).pdf. The image is not included in any of wikipedia pages - checked https://www.wikidata.org/wiki/Q140298320 and https://commons.wikimedia.org/wiki/File:Il_Liceale_n.2_(2025-2026).pdf.

Change #1308561 had a related patch set uploaded (by Urbanecm; author: Urbanecm):

[mediawiki/extensions/GrowthExperiments@master] UserImpact: Skip PDF page images in impact module thumbnails

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

Change #1308577 had a related patch set uploaded (by Urbanecm; author: Urbanecm):

[mediawiki/extensions/GrowthExperiments@master] tests: Cover PageImages handling in the impact module

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

Change #1308561 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] UserImpact: Skip PDF page images in impact module thumbnails

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

Change #1308577 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] tests: Cover PageImages handling in the impact module

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

Urbanecm_WMF set the point value for this task to 1.Jul 8 2026, 5:45 PM

Only two reports for `mwversion 1.47.0-wmf.11' - https://logstash.wikimedia.org/goto/2ab0f326ef18b296b26339ca4d47c706 Closing the task as Resolved.

Both reports are about the same Q4875082 (https://www.wikidata.org/wiki/Q4875082). The following file https://commons.wikimedia.org/wiki/File:Premchand_-_Sevasadan.djvu

Premchand - Sevasadan.djvu
0 × 0; 6.57 MB

cannot be viewed in MMV. e.g. https://ar.wikipedia.org/wiki/بازار_حسن#/media/ملف:Fileicon-djvu.png

Screenshot 2026-07-17 at 4.16.22 PM.png (3,396×1,804 px, 199 KB)