https://bugzilla.wikimedia.org/show_bug.cgi?id=34573
Web browser: ---
Bug #: 34573
Summary: SemanticMediaWiki: Regression in 1.7.0.2
Product: MediaWiki extensions
Version: any
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Semantic MediaWiki
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
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.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l