Last modified: 2014-11-17 21:36:14 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T56202, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 54202 - InstantCommons no longer working in MediaWiki-Vagrant multimedia role
InstantCommons no longer working in MediaWiki-Vagrant multimedia role
Status: NEW
Product: MediaWiki-Vagrant
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Nobody - You can work on this!
:
Depends on: 25958
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-17 02:15 UTC by Matthew Flaschen
Modified: 2014-11-17 21:36 UTC (History)
8 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Matthew Flaschen 2013-09-17 02:15:03 UTC
InstantCommons does not work.  Reedy suggested it may be related to thumb.php handling (which there were recent changes to).
Comment 1 Brion Vibber 2013-09-27 18:00:11 UTC
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?
Comment 2 Bawolff (Brian Wolff) 2013-09-27 18:02:32 UTC
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)
Comment 3 Tisza Gergő 2014-03-12 23:00:37 UTC
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.
Comment 4 Tisza Gergő 2014-03-12 23:10:38 UTC
Bawolff: I could reproduce this with the multimedia vagrant role enabled, which in theory should enable 404-based image handling.
Comment 5 Fabrice Florin 2014-03-13 06:46:47 UTC
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!
Comment 6 Erik Moeller 2014-05-27 01:19:50 UTC
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.
Comment 7 Bryan Davis 2014-11-17 21:36:14 UTC
Bulk unassigning bugs from Ori.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links