Apparently that means upload is disabled via VE.
Who knew? (Apart from James?)
| Reedy | |
| Apr 6 2017, 4:24 PM |
| F7316619: pasted_file | |
| Apr 6 2017, 7:00 PM |
| F7312684: Screen Shot 2017-04-06 at 17.23.28.png | |
| Apr 6 2017, 4:24 PM |
Apparently that means upload is disabled via VE.
Who knew? (Apart from James?)
| Subject | Repo | Branch | Lines +/- | |
|---|---|---|---|---|
| Wikitech: Don't try to do cross-wiki uploads to Commons | operations/mediawiki-config | master | +1 -0 |
Do you see this message on some production wiki? This shouldn't happen normally, I think, and would indicate that someone tried to configure foreign uploads but did it wrong. If I just disable uploads locally, I see a simple "File uploads are disabled.":
$wgForeignUploadTargets on Wikitech is set to [ 'shared' ] (that's the default in [operations/mediawiki-config]/InitialiseSettings.php). The 'shared' repository corresponds to Wikimedia Commons on most production wikis ([operations/mediawiki-config]/filebackend.php). However, Wikitech doesn't use that, and instead sets $wgUseInstantCommons ($wmgUseClusterFileBackend), which uses a repository named 'wikimediacommons'. So the repository configured as upload target is missing, and you get this error message.
So there are two ways to fix this:
Change 347422 had a related patch set uploaded (by Jforrester):
[operations/mediawiki-config@master] Wikitech: Don't try to do cross-wiki uploads to Commons
Change 347422 merged by jenkins-bot:
[operations/mediawiki-config@master] Wikitech: Don't try to do cross-wiki uploads to Commons
Mentioned in SAL (#wikimedia-operations) [2017-04-12T23:20:32Z] <catrope@tin> Synchronized wmf-config/InitialiseSettings.php: Disable cross-wiki uploads to Commons (T162374) (duration: 00m 43s)