Last modified: 2009-02-11 07:10:12 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 T19442, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 17442 - RunJobs.php appearing as a sortkey in categories
RunJobs.php appearing as a sortkey in categories
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikipedia.org/w/index.php?t...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-02-10 22:59 UTC by Richard Jenkins
Modified: 2009-02-11 07:10 UTC (History)
1 user (show)

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


Attachments

Description Richard Jenkins 2009-02-10 22:59:47 UTC
RunJobs.php has somehow been listed as a sortkey for various pages in http://en.wikipedia.org/w/index.php?title=Category:Wikipedia_pages_with_broken_references. This is causing problems when bot scripts (specifically pywikipedia's noreferences.py) try to parse the pages in the category; they hang upon encountering the abnormal key.

See http://p.defau.lt/?xNmrof_5SWi_B8cAP4MNmA (a pastebin of a MySQL query showing the error, do a search for 'RunJobs' to find the relevant rows).
Comment 1 Tim Starling 2009-02-11 06:40:25 UTC
Fixed in r47127 and patched in to Wikimedia. wfMsg() should never be used to fetch a message destined for wikitext, because this leads to double-parsing. Use wfMsgNoTrans() instead. 

The problem in this case is that the cite error contained a category tag with a sortkey of {{PAGENAME}}. When expanded by wfMsg(), this gives you the name of $wgTitle, which is incorrect in runJobs.php. The fix is to use wfMsgNoTrans(), leaving the {{PAGENAME}} tag intact, which is then expanded to the correct title when parsed by recursiveTagParse(). 
Comment 2 Tim Starling 2009-02-11 07:10:12 UTC
Cleanup script done.

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


Navigation
Links