Patrick Hendricks wrote:
> 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

Your mime types are wrong, they are padded with spaces.
See
http://50.56.114.108/api.php?action=query&titles=File:Kodokan_logo.gif&prop=imageinfo&iiprop=mime

Running a SQL query like
UPDATE image SET img_minor_mime=TRIM(img_minor_mime);
should fix it.



_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to