Page MenuHomePhabricator

namespaceDupes.php assumes all wikis have a interwiki table with at least one row
Closed, ResolvedPublic

Description

namespaceDupes.php thinks all wikis have a interwiki table. But that is not always
the case for older wikis even though they have run update.php faithfully even thru 1.15:

$ php namespaceDupes.php
Warning: Invalid argument supplied for foreach() in /home/jidanni/phase3/maintenance/namespaceDupes.php on line 59


Version: 1.15.x
Severity: trivial

Details

Reference
bz17964

Event Timeline

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

Yes, via the update.php, all wikis will have the table.
However, it never occured to the script that the table might be empty,
as the contents of that table are the choice of the administrator.

(E.g., following the advice of Bug #12200, the sysop might have just done TRUNCATE TABLE wiki_interwiki;)