Last modified: 2010-07-07 17:56:53 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 T25964, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 23964 - Some records in table "templatelinks" refer to non-existing pages
Some records in table "templatelinks" refer to non-existing pages
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Site requests (Other open bugs)
unspecified
All All
: Normal major with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
: shell
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-06-14 19:55 UTC by Malafaya
Modified: 2010-07-07 17:56 UTC (History)
2 users (show)

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


Attachments

Description Malafaya 2010-06-14 19:55:39 UTC
At pt.WIKTIONARY (not ptwiki!), there are old records in the templatelinks table which currently refer to non-existing pages:

http://pastebin.com/1BHNgbqX

(the above SQL statement should have returned an empty result set).

Please delete these records which are interfering with the generation of special pages (namely, Special:WantedTemplates).

P.S.: pagelinks table could analogously be checked for consistency (categorylinks was fixed previously in bug:19969) and in case of bad records, these could also be deleted.

Thanks!
Comment 1 Malafaya 2010-06-14 20:09:00 UTC
In case the paste bin expires, here's the result:

      mysql> select distinct tl_from from templatelinks left join page on page_id=tl_from where page_title is null;
      +---------+
      | tl_from |
      +---------+
      |    3364 |
      |    3612 |
      |    3697 |
      |    3722 |
      |    4996 |
      |    5055 |
      |    5136 |
      |    5139 |
      |    5497 |
      |    5506 |
      |    5508 |
      |    5729 |
      |    6088 |
      |    6093 |
      |    6098 |
      |    6099 |
      |    6100 |
      |    6102 |
      |    6104 |
      |    6106 |
      |    6109 |
      |    6110 |
      |   14604 |
      |   14628 |
      |   14629 |
      |   14822 |
      |   16128 |
      |   16228 |
      +---------+
      28 rows in set (7.59 sec)
Comment 2 Malafaya 2010-07-01 13:28:30 UTC
Simplifying people's work, could you please run the following in pt.wiktionary:

delete from templatelinks where tl_from in (select distinct tl_from from templatelinks left join page on
page_id=tl_from where page_title is null);

Thanks.
Comment 3 Roan Kattouw 2010-07-01 17:47:57 UTC
(In reply to comment #2)
> Simplifying people's work, could you please run the following in pt.wiktionary:
> 
> delete from templatelinks where tl_from in (select distinct tl_from from
> templatelinks left join page on
> page_id=tl_from where page_title is null);
> 
> Thanks.
Done, was only 60 rows anyway.
Comment 4 Malafaya 2010-07-02 01:11:24 UTC
60 *nasty* rows that were messing with our Special pages :).
Thanks, Roan! Let's see if the Special pages reflect this change in the next day or two.
Comment 5 Malafaya 2010-07-04 15:13:03 UTC
Fix confirmed. Closing bug.
Comment 6 db [inactive,noenotif] 2010-07-07 17:56:53 UTC
(In reply to comment #3)
> Done, was only 60 rows anyway.

What about other wikis of WMF? It is possible to check each project? Thanks.

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


Navigation
Links