Last modified: 2011-07-07 20:08:33 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T31360, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 29360 - Define $wgUploadMissingFileUrl for ptwikibooks
Define $wgUploadMissingFileUrl for ptwikibooks
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Site requests (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
https://secure.wikimedia.org/wikibook...
: shell
Depends on: 27069
Blocks:
  Show dependency treegraph
 
Reported: 2011-06-12 18:21 UTC by Helder
Modified: 2011-07-07 20:08 UTC (History)
1 user (show)

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


Attachments

Description Helder 2011-06-12 18:21:40 UTC
This is a follow up to the following:
* Bug 27069 - Define $wgUploadNavigationUrl for ptwikibooks

I noticed that the links to missing files still do not point to Commons, and I didn't find any message (on [[Special:AllMessages]]) which I could use locally to point these uploads to Commons. Then I found
* Bug 18885 - Red links for media files do not support shared repositories
which was fixed by introduction of the [[mw:$wgUploadMissingFileUrl]] variable (see r69997).

So, could you set that variable to point the red links of our files to Commons? If I understood correctly, it is enough to copy the same url which is in use at
http://noc.wikimedia.org/conf/highlight.php?file=InitialiseSettings.php
i.e., 'http://commons.wikimedia.org/wiki/Commons:Upload/pt?uselang=pt'
Comment 1 JeLuF 2011-06-23 18:02:25 UTC
Your change has been completed.
Please reopen this ticket if anything went wrong.
The following configuration settings have been changed:
===================================================================
Index: InitialiseSettings.php
===================================================================
--- InitialiseSettings.php	(revision 1905)
+++ InitialiseSettings.php	(working copy)
@@ -9122,6 +9122,11 @@
     'default' => CACHE_MEMCACHED,
     'testwiki' => 'mysql-multiwrite', # Parser cache in MySQL test -- TS 2011-06-23
 ),
+
+'wgUploadMissingFileUrl' => array(
+    'default' => false,
+    'ptwikibooks' => 'http://commons.wikimedia.org/wiki/Commons:Upload/pt?uselang=pt',
+),
 // DO NOT DISABLE WITHOUT CONTACTING PHILIPPE / LEGAL!
 // Installed by Andrew, 2011-04-26
 'wmgUseDisableAccount' => array(
===================================================================
You can find the entire config file at
http://noc.wikimedia.org/conf/highlight.php?file=InitialiseSettings.php
Comment 2 Helder 2011-07-03 01:27:23 UTC
Sorry for bothering you again, but I noticed I problem with our choice of pointing this link to
[[commons:Commons:Upload/pt]]
instead of
[[commons:Special:Upload]]

This makes the parameter "wpDestFile" to be discarded when the user follow the link to a page like
https://secure.wikimedia.org/wikipedia/commons/wiki/Commons:Upload/pt?uselang=pt&wpDestFile=EXAMPLE.jpg
because once he is on that page he will need to click in one of the options an they are just normal internal links, and do not preserve such parameters.

(compare with what happens when we go to:
https://secure.wikimedia.org/wikipedia/commons/wiki/Special:Upload?uselang=pt&wpDestFile=EXAMPLE.jpg
, i.e. the name of the file is used to fill in the corresponding field of the upload form)

So, could you change the variable to point to the special page instead?
Comment 3 Sam Reed (reedy) 2011-07-07 16:49:37 UTC
"the special page instead" == Special:Upload ?
Comment 4 Helder 2011-07-07 18:55:22 UTC
(In reply to comment #3)
> "the special page instead" == Special:Upload ?

Yep!
http://commons.wikimedia.org/wiki/Special:Upload?uselang=pt
Comment 5 Sam Reed (reedy) 2011-07-07 20:02:57 UTC
<logmsgbot> !log reedy synchronized php-1.17/wmf-config/InitialiseSettings.php  'bug 29360'
<morebots> Logged the message, Master
Comment 6 Helder 2011-07-07 20:08:33 UTC
(In reply to comment #5)
> <logmsgbot> !log reedy synchronized php-1.17/wmf-config/InitialiseSettings.php 
> 'bug 29360'
> <morebots> Logged the message, Master

Thank you! =)

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


Navigation
Links