Last modified: 2012-02-22 07:27:05 UTC
I am working with Collaboration extension (got it from http://www.smwplus.com). The extension work with SMW 1.6.1, but running it with SMW 1.7.0.2 (or trunk) causes problems: > Notice: Undefined index: sort in .../SemanticMediaWiki-trunk/includes/SMW_QueryProcessor.php on line 127 > Notice: Undefined index: order in .../SemanticMediaWiki-trunk/includes/SMW_QueryProcessor.php on line 127 > Catchable fatal error: Argument 1 passed to SMWQueryProcessor::getSortKeys() must be an array, null given, called in .../SemanticMediaWiki-trunk/includes/SMW_QueryProcessor.php on line 127 and defined in .../SemanticMediaWiki-trunk/includes/SMW_QueryProcessor.php on line 147 Call stack: > #0 .../SemanticMediaWiki-trunk/includes/SMW_QueryProcessor.php(363): > SMWQueryProcessor::createQuery('[[Category:Comm...', Array, 1, 'list', Array) > #1 .../Collaboration/specials/Comment/CE_CommentParserFunctions.php(362): > SMWQueryProcessor::getResultFromQueryString('[[Category:Comm...', Array, Array, 2) Caller code: > SMWQueryProcessor::processFunctionParams( > array("[[Category:Comment]] [[Belongs to article::" . $title->getFullText() . "]]", > "[[Has comment rating::+]]", "[[Comment was deleted::!true]]", > "?Has comment rating=", "format=list", "mainlabel=-", "searchlabel=" > ), > $querystring, $params, $printouts > ); > SMWQueryProcessor::getResultFromQueryString( > $querystring, $params, $printouts, SMW_OUTPUT_WIKI > ) At the call time, $params contains 3 elements with indices 'format', 'mainlabe;, 'searchlabel' (as it was specified in original query). No default values are assigned to 'order' and 'sort'. In SMW 1.6.1, everything described above is the same, but outcome is different: No PHP warnings, no errors.
This is caused by architecture changes in SMW not matched by the extension you are using. The extension needs to match these changes, nothing that can reasonably be done about this in SMW.
So you might want to re-file this bug for that extension or contact the developers :)
Changed resolution from WONTFIX to INVALID as it is really not a bug in SMW (as opposed to one that we won't fix).