Re: [Wikitech-l] importImages.php on symlinked windows wikis
Thanks. Specifying $wgUploadDirectory did the trick. For my own edification can someone explain how "mwstore://local-backend/local-public/e/ed/My_File_Name.png" gets converted into "C:/path/to/wiki/images/e/ed/My_File_Name.png"? On Thu, Oct 3, 2013 at 6:27 PM, Kevin Israel wrote: > On 10/03/2013 07:08 PM, James Montalvo wrote: > > I have several wikis all symlinked to a single prime wiki. Only the > > "images", "cache", and "mw-config" directories and LocalSettings.php file > > are unique for each wiki. > > > > Normally for maintenance scripts I just add "--conf > > C:/path/to/LocalSettings.php" to perform the maintenance script on a > > particular wiki but for importImages.php that does not entirely work. If > I > > use it to upload to a particular wiki, the file-namespace pages get > created > > on the correct wiki, but the actual files get put in the images directory > > of the prime wiki. > > > > Using "--conf C:/path/to/LocalSettings.php" does partially work. If I > leave > > it off then the file-namespace pages get created in the prime wiki, > instead > > of the intended wiki. So it appears --conf just isn't impacting file > upload > > location. > > The default value for $wgUploadDirectory is "$IP/images" (as determined > in includes/Setup.php), and the --conf option does not affect $IP. Have > you tried setting the MW_INSTALL_PATH environment variable to override > the $IP detection, or manually setting $wgUploadDirectory in the > appropriate LocalSettings.php file? > > > Any assistance would be greatly appreciated. I'm fairly new to MW > > development, and this is my first post on the mailing list. > > This question might have been better suited for mediawiki-l. > > -- > Kevin Israel - MediaWiki developer, Wikipedia editor > http://en.wikipedia.org/wiki/User:PleaseStand > > ___ > Wikitech-l mailing list > Wikitech-l@lists.wikimedia.org > https://lists.wikimedia.org/mailman/listinfo/wikitech-l ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Re: [Wikitech-l] importImages.php on symlinked windows wikis
On 10/03/2013 07:08 PM, James Montalvo wrote: > I have several wikis all symlinked to a single prime wiki. Only the > "images", "cache", and "mw-config" directories and LocalSettings.php file > are unique for each wiki. > > Normally for maintenance scripts I just add "--conf > C:/path/to/LocalSettings.php" to perform the maintenance script on a > particular wiki but for importImages.php that does not entirely work. If I > use it to upload to a particular wiki, the file-namespace pages get created > on the correct wiki, but the actual files get put in the images directory > of the prime wiki. > > Using "--conf C:/path/to/LocalSettings.php" does partially work. If I leave > it off then the file-namespace pages get created in the prime wiki, instead > of the intended wiki. So it appears --conf just isn't impacting file upload > location. The default value for $wgUploadDirectory is "$IP/images" (as determined in includes/Setup.php), and the --conf option does not affect $IP. Have you tried setting the MW_INSTALL_PATH environment variable to override the $IP detection, or manually setting $wgUploadDirectory in the appropriate LocalSettings.php file? > Any assistance would be greatly appreciated. I'm fairly new to MW > development, and this is my first post on the mailing list. This question might have been better suited for mediawiki-l. -- Kevin Israel - MediaWiki developer, Wikipedia editor http://en.wikipedia.org/wiki/User:PleaseStand ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
[Wikitech-l] importImages.php on symlinked windows wikis
I have several wikis all symlinked to a single prime wiki. Only the "images", "cache", and "mw-config" directories and LocalSettings.php file are unique for each wiki. Normally for maintenance scripts I just add "--conf C:/path/to/LocalSettings.php" to perform the maintenance script on a particular wiki but for importImages.php that does not entirely work. If I use it to upload to a particular wiki, the file-namespace pages get created on the correct wiki, but the actual files get put in the images directory of the prime wiki. Using "--conf C:/path/to/LocalSettings.php" does partially work. If I leave it off then the file-namespace pages get created in the prime wiki, instead of the intended wiki. So it appears --conf just isn't impacting file upload location. I've spent the last couple hours digging through the code, and at this point I'm at FileBackendStore->doOperationsInternal(), but can't figure out where the thing that looks like "mwstore://local-backend/local-public/e/ed/My_File_Name.png" (Zone Path?) gets converted into a file system path. At some point "mwstore://local-backend/local-public/" must get stripped off and replaced by "C:/path/to/wiki/images/". Any assistance would be greatly appreciated. I'm fairly new to MW development, and this is my first post on the mailing list. My config: MW 1.21, PHP 5.4, Windows 7 Thanks, James ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l