Thread:Project:Support desk/Warning error on Mediawiki Family - GlobalFunctions.php line 2532

Hi there

I had to set up a Mediawiki Family on my Baby Plan at Hostgator, so i decided to test the software on a dummy subdomain. My network is set as follows:

- en-testwiki.studiosuperfluo.com (language wiki / no uploads / Interlinked)

- it-testwiki.studiosuperfluo.com (language wiki / no uploads / Interlinked)

- media-testwiki.studiosuperfluo.com (shares images, user table, includes, skins and extensions folder)

Every wiki has its own DB, same user, same server. Includes, extensions and skins folder are shared via symlink to have less dublicated files and save resources (since i can set PHPAccerator on my server)

I shared the User Tables on the language wiki setting:

I shared the user sessions between every wiki setting:

While i've set the uploads to media-testwiki using wgForeignDBRepo, adding this code to the language wiki LocalSettings.php:

Then i set pretty urls via .htaccess and some code on Localsettings.php files, but this is not relevant to us.

The problem is that everything works fine, but if i upload a file on media-testwiki, and i check the file page via a language wiki, then i get

f.EG: http://en-testwiki.studiosuperfluo.com/wiki/file:Test.jpg http://it-testwiki.studiosuperfluo.com/wiki/file:Test.jpg

No warning instead for the original "repository" wiki: http://media-testwiki.studiosuperfluo.com/wiki/file:Test.jpg

I tried to add the code found here: http://www.mwusers.com/forums/showthread.php?17926-New-install-wfMkdirParents-failed-to-mkdir-(an-image-thumbnail-directory to GlobalSetting.php but it changed only the line of the error (2533 instead of 2532).

Folder permission are all set to 755, i've already tried to set them to 777 with no changes to the problem.

MediaWiki 1.18.2 PHP 5.2.17 Mysql 5.5.19

I think another solution could be to redirect all pages like language-testwiki.domain.com/wiki/File:XXX.jpg to media-testwiki.domain.com/wiki/File:XXX.jpg but i don't know how to handle that... or even to add a check to GlobalFunctions.php that if the folder already exist, there's no need to be created, since it's there from the 1st attempt to upload the file.

Many thanks for support!