Last modified: 2012-02-11 16:44:56 UTC
We've stumbled upon a problem with the query printer in SMW 1.6.1 and 1.6.2. Any export to RDF (example: [0]) triggers the following exception: """ Catchable fatal error: Argument 1 passed to SMWExporter::addPropertyValues() must be an instance of SMWDIProperty, instance of SMWPropertyValue given, called in /var/local/mediawiki/extensions/SemanticMediaWiki/includes/queryprinters/SMW_QP_RDF.php on line 72 and defined in /var/local/mediawiki/extensions/SemanticMediaWiki/includes/export/SMW_Exporter.php on line 150 """ var_dumping $printreq->getMode() in SMWRDFResultPrinter->getResultText() reveals the values int(2) and int(1), i.e. PRINT_PROP in which case $printreq->getData() returns an SMWPropertyValue object and not the required SMWDIProperty. Setting the format to "debug" returns "Fatal error: Call to a member function getCount() on a non-object in /var/local/mediawiki/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_SpecialAsk.php on line 426" Let me know if you need more data. [0] https://www.hackerspace.lu/wiki/Special:Ask/-5B-5BCategory:Event-5D-5D-20-5B-5BStartDate::%2B-5D-5D-20-5B-5BStartDate::-3E2011-2D10-2D18-5D-5D/-3FStartDate/-3FEndDate/-3FHas-20description/-3FIs-20Event-20of-20Type/-3FHas-20location/mainlabel%3D/order%3DASC/sort%3DStartDate/format%3Ddebug/syntax%3Drdfxml/limit%3D100
This issue has been fixed as part of other bug reports. Closing this forgotten report now. :-)