Topic on Project:Support desk

NitaiDas (talkcontribs)

My problem is 3 fold

First, I can not figure out how to make the images available to all separete wikis. Technically it works fine, all images go to the same folder, and when entered in the source code they are viewable. But they show in Special:ListFiles only on the site that uploaded them.

Second, and similar, files uploaded on another wiki, or in the pool wiki, are not available in Visual Editor. Files uploaded on a particular site are available for that site only.

Third is explained below

Here is my settings

(Inside of require_once "......SharedWikiFamilySettings.php"; from LocalSettings.php)

$wgUploadNavigationUrl = 'http://pool.domain.org/index.php/Special:Upload';

$wgUseSharedUploads = true;

$wgSharedUploadPath = 'http://pool.domain.org/images';

$wgSharedUploadDirectory = '/home/domain/public_html/mediawiki/sites/images';

$wgHashedSharedUploadDirectory = true;

$wgUploadDirectory = "/home/domain/public_html/mediawiki/sites/images";

Now the 3rd problem is when i remove $wgUploadDirectory none of the sites are able to display the images.

I think everything is related and would appreciate any direction.

I am using Manual:Wiki family#Drupal-style sites on Ubuntu 16, Mediawiki 1.28.

Ciencia Al Poder (talkcontribs)

Apparently you need to set $wgSharedUploadDBname so the wikis can access the database where the shared uploads are uploaded.

The idea of using $wgSharedUpload* variables is that a central wiki is used for "shared uploads", but other wikis have independent upload directories, so particular uploads are listed only on each respective wiki (not in all of them at once).

NitaiDas (talkcontribs)

Ah ok, so there is no way to have images uploaded on one wiki be available on the other, or be automatically published on the central pool wiki (thereby available for all). Do I understand correctly?

Ciencia Al Poder (talkcontribs)
NitaiDas (talkcontribs)

That didnt really work, I decided just to leave it at the current situation (described here for anyone goolging here).

Images are uploaded on each site, and owned by that site. All images are stored on the server in the same directory. I can still use an image on another wiki by putting the source code in (e.g. [[ File ... ]]).

My setting in SharedWikiFamilySettings.php

$wgUploadNavigationUrl = 'http://pool-domain.org/index.php/Special:Upload';

$wgUseSharedUploads = true;

$wgSharedUploadPath = 'http://pool-domain.org/images';

$wgSharedUploadDirectory = '/home/domain/public_html/mediawiki/sites/images';

$wgHashedSharedUploadDirectory = true;

$wgUploadDirectory = "/home/domain/public_html/mediawiki/sites/images";