Manual talk:$wgUseInstantCommons

$wgUseInstantCommons
Is it possible to keep cached images undefinitly unless manual flushing? Greudin 21:47, 3 January 2010 (UTC)

Problem when set it back to false
Hello when I set it back to false when I go to visual editor "edit" > media > I still see the Instant Commons images. I want to disable this, do you know how ? 6 May 2014

Problem with diacritics
Hi, I have some strange problem with diacritics in Commons file names when I try to use Images from Wikimedia Commons in my Enviwiki - http://www.enviwiki.cz.

What I had observed is following - when I use file, without diacritics, everything is OK. For example:





Everything works fine.

But - when the file hase diacritics in name - use of file without other parameters is also OK, but when I try to use parameters, as thumb or 300 px image disappears. Example:



works.

But

does not work.

My database MySQL is utf-8 coded and I have no other problems with interwiki links with diacritics, e.g. Černý most works fine.

Demonstration of the problem can be found at: http://www.enviwiki.cz/wiki/Enviwiki:P%C3%ADskovi%C5%A1t%C4%9B


 * There is a long term bug on Windows installation https://bugzilla.wikimedia.org/show_bug.cgi?id=1780 - we had moved to linux and everything is fine.

--Jirka Dl 04:55, 9 May 2011 (UTC)

Seems to be broken somehow
Hi after upgrading to 1.16.4 InstantCommons seems to be broken somehow. The quality of the inserted files is substancially reduced and in case I click on them I get a error 403 access denied even though the chmod of the image directory is 777. I suspect that the protection against bug 28235 may have caused this. Removing the newly added .htaccess file does not help the cause. Is there anybody out there observing the same. Cheers --&#91;&#91;kgh&#93;&#93; 21:04, 14 April 2011 (UTC)

Why would anyone want to use the commons instead of wikipedia?
I would think you would get the commons, and more, by setting If you use that, then you can import articles from enwiki and know that you have all the images you need. Of course, German users can use dewiki, etc.

Also, 12 hours sounds like a kinda short period for caching. Leucosticte (talk) 05:26, 1 August 2012 (UTC)
 * by using commons you are quite sure about licensing: at least CC-BY-SA. enwiki also allows 'fair use' images whis might be inappropriate for other wikis. - Arent (talk) 11:19, 18 January 2013 (UTC)

Timeout
Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\mediawiki\includes\HttpFunctions.p hp on line 879

I got HttpFunctions.php timeout when I turn it on. After I turn it off, it went back to normal. Bennylin (talk) 17:51, 31 August 2012 (UTC)

Fatal exception of type MWException
When using pictures from common I get
 * and an otherwise blank page.
 * MediaWiki 	1.20.2
 * PHP 	5.3.16 (apache2handler)
 * MySQL 	5.1.63-cll

Disabling $wgUseInstantCommons will get me rid of the error (but shows no commons-pictures anymore). - Arent (talk) 11:19, 18 January 2013 (UTC)


 * Hello, please grep your logs for the code 307994f4 (or the new one you're provided next time), or set $wgShowExceptionDetails to true, and file a bug with the full stacktrace. Thanks, Nemo 18:24, 18 January 2013 (UTC)
 * On accessing the history list for a page referencing some pictures on commons - Arent (talk) 21:53, 18 January 2013 (UTC)
 * 44135. --Nemo 00:40, 19 January 2013 (UTC)
 * Tnx ! - Arent (talk) 12:19, 19 January 2013 (UTC)

how to prevent hotlinking ?
I want to serve all the thumbs from my server (to get only one http2 connection). Since the 1.27 update, I can't find how to do it? Plyd (talk) 11:24, 26 December 2017 (UTC)


 * Do not set $wgUseInstantCommons to true, but instead set $wgForeignFileRepos directly and set apiThumbCacheExpiry to a value greater than 0. --Ciencia Al Poder (talk) 16:07, 26 December 2017 (UTC)
 * That's what I did, but I still have the files uploaded from . Is there something else? Plyd (talk) 15:03, 2 January 2018 (UTC)
 * here what I have set:

$wgForeignFileRepos[] = [ 'class'                  => 'ForeignAPIRepo', 'name'                   => 'wikimediacommons', 'apibase'                => 'https://commons.wikimedia.org/w/api.php', 'url'                    => 'https://upload.wikimedia.org/wikipedia/commons', 'hashLevels'             => 2, 'transformVia404'        => true, 'fetchDescription'       => true, 'descriptionCacheExpiry' => 86400*10, 'apiThumbCacheExpiry'    => 86400*10, ];
 * what's wrong? Plyd (talk) 09:23, 6 January 2018 (UTC)