On Wed, Oct 19, 2016 at 1:38 AM, Bináris wikiposta@gmail.com wrote:
I installed MW 1.23.15 on my laptop (running on a XAMPP).
I have # InstantCommons allows wiki to use images from http://commons.wikimedia.org $wgUseInstantCommons = true; in LocalSettings.php. Content of my template is: [[Kép:Tick-green.png|20px]]<noinclude>[[Kategória:Sablonok]]</noinclude> where Kép is a legitimate alias for File in Hungarian
I get a red 20px text and a tracking category for bad file instead of the image from Commons.
The redlink goes to: http://localhost/w/index.php?title=Speci%C3%A1lis:Felt%C3% B6lt%C3%A9s&wpDestFile=Tick-green.png (Special:Upload for those who can't fluently read urlencoded Hungarian)
Check the 'http' log channel (see https://www.mediawiki.org/wiki/Manual:How_to_debug#Creating_custom_log_group... ).
Commons was switched to HTTPS a year ago, if the problem started then, it is probably some sort of certificate verification error (especially if you don't have php_curl installed, PHP pre 5.6 has lots of issues with that).
If that does not help, you could enable XDebug and check what happens inside ForeignAPIRepo::fetchImageQuery and File::getDescriptionText.