Last modified: 2011-04-14 15:11:14 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 9355 - Interwiki transclusion does not show images
Interwiki transclusion does not show images
Status: NEW
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: crosswiki
: 18624 (view as bug list)
Depends on: 15512
  Show dependency treegraph
Reported: 2007-03-20 20:41 UTC by Gunter Schmidt
Modified: 2011-04-14 15:11 UTC (History)
4 users (show)

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


Description Gunter Schmidt 2007-03-20 20:41:21 UTC
I tried to include a page from another wiki with images. The page itself is displayed, but the 
images are not. Clicking on the image will jump to the correct page of the original wiki and 
display the image.

I tried to set
$wgUseSharedUploads = true;
$wgSharedUploadPath = "http:.../images";
but no luck either.

I think the table interwiki should have at least one more column: 
iw_imageurl: path of the images for that interlinked wiki.

Maybe also:
iw_imagecommonsurl: path of the common image url, if used
Comment 1 Gunter Schmidt 2007-03-20 20:42:59 UTC
oh, actually there must be an info how $wgHashedUploadDirectory is set on the linked wiki.
Comment 2 Rob Church 2007-03-21 08:11:29 UTC
Check the shared image repo. configuration is actually all there.
Comment 3 Chad H. 2008-09-08 15:31:59 UTC
Basic image display worksforme. Might have some issues with style images at mentioned in bug 15512. Adding that as a blocker to this, although normal image use _seems_ to work.
Comment 4 Juliano F. Ravasi 2008-09-08 15:49:04 UTC
I'm the reporter of bug 15512, and I confirm that this also happens with included image paths. This is not noticed in Wikimedia wikis because all image paths are fully-qualified, since they are served by a different server ( But default installations have $wgUploadPath = "$wgScriptPath/images", and $wgScriptPath itself is not fully-qualified.

Currently, I'm using this workaround:

	# Work around bug in MediaWiki 1.13 when '?action=render'.
	global $wgRequest, $wgScriptPath, $wgUploadPath;
	global $wgStylePath, $wgMathPath, $wgLocalFileRepo;
	if ( $wgRequest->getVal( 'action' ) == 'render' ) {
		$wgScriptPath = wfExpandUrl( $wgScriptPath );
		$wgUploadPath = wfExpandUrl( $wgUploadPath );
		$wgStylePath  = wfExpandUrl( $wgStylePath  );
		$wgMathPath   = wfExpandUrl( $wgMathPath   );
		$wgLocalFileRepo['url'] = wfExpandUrl( $wgLocalFileRepo['url'] );

It fixes local images as well as style images and math formulas.
Comment 5 Chad H. 2009-04-29 23:24:05 UTC
*** Bug 18624 has been marked as a duplicate of this bug. ***

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