Last modified: 2011-02-22 22:31:25 UTC
Some recent changes in MediaWiki make Special:Types not show anything.
The TypesPage class has a getSQL method that returns the SQL to create the types list, but it's not getting called any more in 1.17 and above. Looks like getQueryInfo should be used instead. I've given it a try, but am not sure how to return the equivalent query with the UNIONs.
Relevant code at http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/SemanticMediaWiki/specials/QueryPages/SMW_SpecialTypes.php?view=markup, line 78
It is supposed to fall back to getSQL(), so there's something wrong with QueryPage if it's not being called when getQueryInfo() is commented.
So we should file a bug on QueryPage?
Probably, although the code at QueryPage looks perfectly good. Needs debugging.
I found the bug, someone decided to swap the limit and offset params of doQuery at r78786. Awesome way to introduce subtle bugs! Fixed in r82636.