Manual talk:$wgUseInstantCommons
Add topic$wgUseInstantCommons
[edit]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
[edit]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
[edit]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:
[[File:Cernymost.JPG|thumb|left]] [[File:Cernymost.JPG]]
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:
[[File:Bratří Venclíků str, Prague Kyje.jpg]]
works.
But [[File:Bratří Venclíků str, Prague Kyje.jpg|thumb|left]]
does not work.
My database MySQL is utf-8 coded and I have no other problems with interwiki links with diacritics, e.g. [[wikipedia:cs:Černý most|Č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
[edit]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 --[[kgh]] 21:04, 14 April 2011 (UTC)
Why would anyone want to use the commons instead of wikipedia?
[edit]I would think you would get the commons, and more, by setting
'apibase' => 'https://en.wikipedia.org/w/api.php',
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
[edit]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
[edit]When using pictures from common ($wgUseInstantCommons=true
)I get
[307994f4] 2013-01-18 11:14:30: Fatal exception of type MWException
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)
how to prevent hotlinking ?
[edit]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
https://upload.wikimedia.org/wikipedia/commons/thumb/...
. Is there something else? Plyd (talk) 15:03, 2 January 2018 (UTC) - here what I have set:
- That's what I did, but I still have the files uploaded from
$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)