Last modified: 2014-11-17 21:36:14 UTC
InstantCommons does not work. Reedy suggested it may be related to thumb.php handling (which there were recent changes to).
Oddly, if I insert an image from Commons through VisualEditor it appears to work ok inline. If I insert one in source, I get "Error creating thumbnail: Invalid thumbnail parameters". whaaaaaat?
This is a known issue of using thumb.php directly instead of from a 404 handler. (Not sure how "known" in any case, not new)
Workaround: <?php $wgUseInstantCommons = false; $wgForeignFileRepos[] = array( 'class' => 'ForeignAPIRepo', 'name' => 'wikimediacommons', 'apibase' => 'http://commons.wikimedia.org/w/api.php', 'fetchDescription' => true, 'descriptionCacheExpiry' => 0, 'apiThumbCacheExpiry' => 0, ); I started to track this down some weeks ago but ran out of time and had to give up. The issue was MediaWiki getting confused about which local directory to use for the thumb cache IIRC.
Bawolff: I could reproduce this with the multimedia vagrant role enabled, which in theory should enable 404-based image handling.
I can confirm that Gergo's workaround does the trick, even for a Vagrant newbie like me. So even if we can't fix this in code right away, at least we have a solution for making this work temporarily. Thanks for this!
In the latest MediaWiki Vagrant with the multimedia role enabled, InstantCommons does not successfully generate thumbnails for me. The issue goes away if I comment out the thumb-php-on-404 handler, so I suspect it's an issue with the rewrite rule. CCing Bryan since he wrote that template.
Bulk unassigning bugs from Ori.