Page MenuHomePhabricator

Error when saving / editing the page with the following #show parser function
Closed, InvalidPublic

Description

Author: cnit

Description:
MediaWiki 1.17 r87675, Semantic MediaWiki 1.5.6
<noinclude>{{#show:{{PAGENAME}}|?Задание}}</noinclude>
Where Задание means task in Russian.

Produces a blank page and the following error in the log file:

[Sat May 07 22:19:34 2011] [error] [client 213.187.118.145] PHP Fatal error: Call to a member function getSortkey() on a non-object in /var/www/wiki/farm117/extensions/SemanticMediaWiki/includes/queryprinters/SMW_QP_Category.php on line 70

Maybe the function is incorrect (I don't know), however that should not produce PHP error anyway.


Version: unspecified
Severity: major

Details

Reference
bz28879

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 21 2014, 11:24 PM
bzimport set Reference to bz28879.

Try replacing line 70 in that file by this one:
$sortkey = $res->getStore()->getWikiPageSortKey( $content[0] );

This is what's currently on svn trunk.