Page MenuHomePhabricator

PDF file has 0x0 image size in Commons after uploading a new version while the page number is correct
Open, Needs TriagePublicBUG REPORT

Description

After uploading a new version of this file to Commons:
https://commons.wikimedia.org/wiki/File:PL_Hudson_Jej_naga_stopa.pdf
it has 0x0 image size. (The initial version reported non-zero size at the moment)

Reverting to the previous version fixed the problem just for few minutes, and then its image size was zeroized as well and reappeared again after an hour.

No problem with this file after upload to test Wikipedia:
https://test.wikipedia.org/wiki/File:PL_Hudson_Jej_naga_stopa-test.pdf

Note: this does not seem to be duplicate of T297942 as unlike
https://commons.wikimedia.org/wiki/File:Guinault_-_Sergent_!_(1881).pdf
this file has correct page numbers.

Event Timeline

Page number is properly set, so this problem seems to be different to T298417

Ankry renamed this task from PDF file has 0x0 image size in Commons after uploading a new version to PDF file has 0x0 image size in Commons after uploading a new version while page number is corect.Jan 19 2022, 2:49 PM
Ankry renamed this task from PDF file has 0x0 image size in Commons after uploading a new version while page number is corect to PDF file has 0x0 image size in Commons after uploading a new version while the page number is correct.
Ankry reopened this task as Open.
Ankry updated the task description. (Show Details)

Finally, I tried deleting all versions except the last one, but it didn't work. So I deleted everything, and I reupload the file, and it shows fine. The bug still exist through. And it doesn't show properly on Wikisource.

I'm getting a similar problem with this PDF:

(currently it is broke just on la.ws, as I reverted to an old version.)

I'm getting a similar problem with this PDF:

(currently it is broke just on la.ws, as I reverted to an old version.)

An administrator can try to upload this file locally. This sometimes works as a workaround, but hides the problem.

,snip>
An administrator can try to upload this file locally. This sometimes works as a workaround, but hides the problem.

Are you able to give me some instructions or tips on how this is done so our administrators can assess if it is easy to try or not?

,snip>
An administrator can try to upload this file locally. This sometimes works as a workaround, but hides the problem.

Are you able to give me some instructions or tips on how this is done so our administrators can assess if it is easy to try or not?

Download the file from Commons. Visit Special:Upload on your wiki and upload the file, telling it to continue anyway (I think it will complain it exists on commons)

Just as a general comment... While it's helpful if you report these issues, if you revert these uploads several times, while only linking to the general File: page, it makes it hard for anyone to try and debug the issue, as they can't necessarily find which is the "broken" version of the PDF...

@Reedy Yes I see that. I'm afraid I was trying to brute force solve this problem, but all of the attempts failed. I'll remember to link to file versions in future.

As it goes the current version is still broken on LA WS, and I won't be moving it again as I am hoping an administrator will move a copy onto the wiki as per your instructions.