Last modified: 2012-07-30 12:14:57 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 T40784, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 38784 - $wgUseInstantCommons conflicts with $wgUploadPath
$wgUseInstantCommons conflicts with $wgUploadPath
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-07-29 03:57 UTC by Liangent
Modified: 2012-07-30 12:14 UTC (History)
2 users (show)

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


Attachments

Description Liangent 2012-07-29 03:57:35 UTC
Repro:

In a local MW installation, LocalSettings.php:

$wgUseInstantCommons = true;
$wgUploadPath = '/000';

In a page:

[[File:Mediterranean_Sea_political_map-en.svg]]

I don't have this file locally and it's on commons, and it generates HTML:

<p><a href="/index.php/File:Mediterranean_Sea_political_map-en.svg" class="image"><img alt="Mediterranean Sea political map-en.svg" src="/000/thumb/d/d8/Mediterranean_Sea_political_map-en.svg/2046px-Mediterranean_Sea_political_map-en.svg.png" width="2046" height="1496" /></a>
</p>
Comment 1 Bawolff (Brian Wolff) 2012-07-29 17:56:17 UTC
instant commons is set to cache files from commons locally. If you disable that (See [[mw:Manual:$wgForeignFileRepos]] docs) does it fix your issue?
Comment 2 Liangent 2012-07-29 20:55:54 UTC
(In reply to comment #1)
> instant commons is set to cache files from commons locally. If you disable that
> (See [[mw:Manual:$wgForeignFileRepos]] docs) does it fix your issue?

It does.
Comment 3 Bawolff (Brian Wolff) 2012-07-30 12:14:57 UTC
In that case I'm going to mark this resolved invalid, since if caching of files is enabled, they have to be stored somewhere, and that somewhere is $wgUploadPath.

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


Navigation
Links