Page MenuHomePhabricator

Define $wgUploadMissingFileUrl for ptwikibooks
Closed, ResolvedPublic


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
i.e., ''

Version: unspecified
Severity: normal



Related Objects

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:31 PM
bzimport set Reference to bz29360.
bzimport added a subscriber: Unknown Object (MLST).

jeluf wrote:

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' => '',
Installed by Andrew, 2011-04-26

'wmgUseDisableAccount' => array(

You can find the entire config file at

Sorry for bothering you again, but I noticed I problem with our choice of pointing this link to
instead of

This makes the parameter "wpDestFile" to be discarded when the user follow the link to a page like
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:
, 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?

"the special page instead" == Special:Upload ?

(In reply to comment #3)

"the special page instead" == Special:Upload ?


<logmsgbot> !log reedy synchronized php-1.17/wmf-config/InitialiseSettings.php 'bug 29360'
<morebots> Logged the message, Master

(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! =)