Page MenuHomePhabricator

Multimediaviewer does not display image file (HTTP 404 error when $wgMediaViewerUseThumbnailGuessing not set to true)
Closed, InvalidPublic

Description

Einzelheiten zum Fehler werden dem Bericht beigefügt, die öffentlich sichtbar sind. Falls du mit diesem Vorgehen nicht einverstanden bist, kannst du den Bericht unten bearbeiten und alle Daten entfernen, die du nicht teilen möchtest.

Im Medienbetrachter werden keine Bilder angezeigt. Es kommt die Meldung "Leider kann die Datei nicht angezeigt werden. Es scheint ein technisches Problem zu geben."
Der Fehler erscheint in allen Browsern. Es läuft Mediawike 1.28 und die zugehörige Version des Medienbetrachters.

Error details:

error: http
URL: https://www.kempedia.de/index.php?title=Datei:Ellenstrasse_10_2013.jpg#/media/File:Ellenstrasse_10_2013.jpg
user agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36
screen size: 1280x1024
canvas size: 1263x769
image size: 1000x1546
thumbnail size: CSS: 497x769, screen width: 497, real width: 800

Event Timeline

Hi @Rainerhamm, thanks for taking the time to report this!

Reproducible e.g. by not being logged in and clicking on the image in https://www.kempedia.de/index.php?title=Ellenstra%C3%9Fe_10 :

Fehler: could not load image from http://www.kempedia.de/images/thumb/3/3d/Ellenstrasse_10_2013.jpg/800px-Ellenstrasse_10_2013.jpg
and that URL is actually a 404 hence no thumbnail of that size (800px) was created to display.
https://www.kempedia.de/images/thumb/3/3d/Ellenstrasse_10_2013.jpg/250px-Ellenstrasse_10_2013.jpg exists, however.

This might be an issue with the configuration of the software that you use for creating image thumbnails, instead of MultimediaViewer itself.
Has this problem been brought up on https://www.mediawiki.org/wiki/Project:Support_desk already?

Aklapper renamed this task from Datei kann nicht angezeigt werden im Medienbetrachter to Multimediaviewer does not display image file.Mar 15 2017, 12:54 PM

It is not only with that picture. I cannot open any picture in my wiki kempedia.de. A few weeks before (may be before the update to 1.28) it worked without any problems.
I do not use any special software for creating thumbnails. I only want to view normal uploaded pictures with the Multimediaviewer.

No, I haven't brought the problem to the Support Desk. It's my first attempt to get some help. I don't know the right procedure.

What can I do, what shall I do?
Thank you in advance.

Which software is used for creating thumbnails? (ImageMagick? Something else?)

I'd recommend posting also on the Support Desk.

I don't know what you mean with thumbnails.
These are normal uploaded jpegs. It does not depend on the source of the picture whether it is not shown. I suppose that Mediawiki or the Multimediaviewer transform the pictures inti another size if necessary. I don't know.

I will try to bring the issue to the Support Desk as well.

Thank you!!

A thumbnail is the same image but converted to a smaller size. The original size of your image is 1000px.
According to the error message of MultimediaViewer that I'm getting here (I'm writing "I'm getting here" as you have not posted yet the full complete error message that you receive), MultimediaViewer tries to display the 800px thumbnail of your 1000px image. But that 800px thumbnail has not been created. Hence that error.

What is $wgMediaViewerUseThumbnailGuessing set to?
Do you have a 404 handler set?

With $wgMediaViewerUseThumbnailGuessing = true;
it works !!!!
It was not set respectively on default.
I will check whether there is set a 404 handler. I don't know.
But first it works!

Thank you very much!

Glad to hear that. Closing task as 'invalid' as this was not a bug in the code base but a configuration issue.

Aklapper renamed this task from Multimediaviewer does not display image file to Multimediaviewer does not display image file (HTTP 404 error when $wgMediaViewerUseThumbnailGuessing not set to true).Mar 15 2017, 3:19 PM

With $wgMediaViewerUseThumbnailGuessing = true;
it works !!!!

Huh, that's usually the other way around. Guessing is fragile; without guessing it uses the API, which should work unless there is a bug or the site is seriously misconfigured.