Last modified: 2011-03-12 20:29:32 UTC
Trying to setup an upload server http://base.ekopedia.org like "Commons" project
Everything work great except one thing: images included in image description
fetched by wgFetchCommonsDescriptions do not use correct URL source.
As you can see on this URL:
http://base.ekopedia.org/Image:Pecheurs-sur-la-plage.jpg, the image and
description is fetched correctly. But there is an banner (Public Domain) which
contain an image inside.
As you can see on the source page:
http://base.ekopedia.org/Image:Pecheurs-sur-la-plage.jpg, the image in the
banner is ok.
So $wgFetchCommonsDescriptions works correctly for text, but did not correct the
image URL. In fact in html, this is this URL:
Instead of this one:
I'm using this configuration:
$wgUseSharedUploads = true;
$wgSharedUploadPath = "http://base.ekopedia.org/images";
$wgSharedUploadDirectory = "/var/www/base.ekopedia.org/images";
$wgHashedSharedUploadDirectory = true;
$wgSharedUploadDBname = "base";
$wgFetchCommonsDescriptions = true;
$wgRepositoryBaseUrl = "http://base.ekopedia.org/image:";
$wgCacheSharedUploads = true;
$wgSharedLatin1 = false;
As far as I can tell, this is because MediaWiki on the "calling" wiki asks the
"pool" wiki (where the shared image resides) to render the description when it
retrieves it. As far as the pool wiki is concerned, a shared image in the
description text is local to it, so it outputs an URL that is foreign to the caller.
There was a typo! :(
> As you can see on this URL:
> http://base.ekopedia.org/Image:Pecheurs-sur-la-plage.jpg, the image and
> description is fetched correctly. But there is an banner (Public Domain) which
You should read:
As a workaround, try setting the full URL in $wgUploadPath on the shared wiki.
(eg including hostname)
I've put this on the shared wiki:
$wgUploadPath = "http://base.ekopedia.org/images";
and this is working fine.
Thanks a lot!
*** Bug 9184 has been marked as a duplicate of this bug. ***
Code inspection indicates that this should be fixed somewhere along the way. Please reopen if the bug still occurs.