Page MenuHomePhabricator

HTTP 404 for several images in page namespace on different wikisource projects
Closed, ResolvedPublicBUG REPORT

Assigned To
None
Authored By
Hardarshan2207
Jan 9 2020, 5:52 AM
Referenced Files
F31512852: 389.jpg
Jan 15 2020, 1:49 AM
F31512857: 393.jpg
Jan 15 2020, 1:49 AM
F31512854: 397.jpg
Jan 15 2020, 1:49 AM
F31512856: 392.jpg
Jan 15 2020, 1:49 AM
F31512855: 320.jpg
Jan 15 2020, 1:49 AM
F31505929: Screenshot 2020-01-09 at 3.23.06 PM.png
Jan 11 2020, 6:19 AM

Description

Steps to Reproduce:

  • Example in pa.wikisource

https://pa.wikisource.org/wiki/ਪੰਨਾ:ਅਰਸ਼ੀ_ਝਲਕਾਂ.pdf/141

The page above don't have a picture but the source file has an image
Link for the source file(https://pa.wikisource.org/w/index.php?title=ਤਸਵੀਰ:ਅਰਸ਼ੀ_ਝਲਕਾਂ.pdf&page=148)

Expected Results: The page must show a picture on the right side of the page.

  • Example in ta.wikisource [From T242329]

https://ta.wikisource.org/s/1l97

None of the pages liked in this index page is showing the image of the book in the page namespace. The same was appearing previously.

Pages unrelated to this book is appearing as usual. Check the file in commons. The pages are visible in commons.

Screenshot 2020-01-09 at 3.23.06 PM.png (1×2 px, 703 KB)

Event Timeline

Hi Rupika and Satpal,

There is a ticket about the rendering issue of this file (
https://pa.wikisource.org/wiki/ਤਸਵੀਰ:ਅਰਸ਼ੀ_ਝਲਕਾਂ.pdf). I have fixed the
file ( attached). Could you please update/override the file? I can't do
that because it is a local upload, and I am not an admin.

Regards,
Jayanta Da

Dear Jayanta Nath,

I have updated this file and the issue has been resolved. @HardarshanGamer
<Hardarshanbenipal.hb@gmail.com> Please have a look.

Thank you.

*Regards*

*Satpal*

The images are missing from majority of the books in the Punjabi
Wikisource. Seems like a technical issue.

The images are missing from majority of the books in the Punjabi
Wikisource. Seems like a technical issue.

Aklapper renamed this task from Image not visible to HTTP 404 for several images in page namespace on pa.wikisource.Jan 10 2020, 4:08 PM
Aklapper added a project: SRE-swift-storage.
Bodhisattwa renamed this task from HTTP 404 for several images in page namespace on pa.wikisource to HTTP 404 for several images in page namespace on different wikisource projects.Jan 11 2020, 6:19 AM
Bodhisattwa reopened this task as Open.
Bodhisattwa updated the task description. (Show Details)
Bodhisattwa added a subscriber: Balajijagadesh.
Bodhisattwa subscribed.

merged T242329 here as this seems to be an issue of other Wikisource projects also, for example, the same issue has been reported by Gujarati community in telegram chat.

Change 564115 had a related patch set uploaded (by Jayprakash12345; owner: Jayprakash12345):
[mediawiki/extensions/PdfHandler@master] Sanitize $param['width'] to avoid float number

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

@Sushant_savla Ji, Every page is redenering with script. Do you wait to load the page? Please wait because userscripts only runs after the DOM is read.

393.jpg (1×1 px, 410 KB)
392.jpg (1×1 px, 397 KB)
320.jpg (1×1 px, 389 KB)
397.jpg (1×1 px, 365 KB)
389.jpg (1×1 px, 266 KB)

@Sushant_savla The problem is Here with your Common.js. You are using Template in UserScript. which is breaking the UserScript. So remove the Template from your common.js

@Jayprakash12345 thank you for your help. Now i can see the images

Closing per last comment. Please set the status of this task back to "Open" via the Add Action...Change Status dropdown if this still happens. Thanks!

Change 564115 abandoned by Jayprakash12345:
Sanitize $param['width'] to avoid float number

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