[Mediawiki-l] Linker::makeImageLink2: File:blah.jpg does not allow inline display

Patrick Hendricks pat at revil.com
Sun Apr 10 13:08:45 UTC 2011


MediaWiki 1.16.2
PHP 5.3.3-1ubuntu9.3 (cgi-fcgi)
MySQL 5.1.49-1ubuntu8.1
Lighttpd 1.4.26-3ubuntu2
http://50.56.114.108/
An example of the problem can be found here: http://50.56.114.108/index.php?title=Kodokan_Judo_Institute
If you notice, the first thing on the page is links to File:Kodokan(andLaqua).jpg and File:Kodokan logo.gif. However, these are created using [[Image:
If you click through to the image page and then click through to the image, you can view it.
I migrated to a new server recently. Previously I was on a shared host using apache, but now I have my own virtual server using lighttpd. The problem occurs on the new server using either apache or lighttpd. Before I migrated I upgraded the installation to 1.16.2 and did not notice if the problem was from that or not.
Any new files I upload will work correctly. It is just the files that I have uploaded before the migration. (so one possible solution is to re-upload all the files... but I sure hell don't want to do that.)

Here is the error the debug log gives (it gives this for any image it tries to display):
MediaHandler::getHandler: no handler found for image/jpeg
Linker::makeImageLink2: File:Kodokan(andLaqua).jpg does not allow inline display
MediaHandler::getHandler: no handler found for image/gif
Linker::makeImageLink2: File:Kodokan_logo.gif does not allow inline display
I am guessing this has something to do with $wgTrustedMediaFormats and Image::isSafeFile deeming these file types to be invalid. But I have no idea why they would be doing this.
Any help would be appreciated.

PS: this is cross-posted here: http://www.mediawiki.org/wiki/Project:Support_desk


More information about the MediaWiki-l mailing list