Last modified: 2012-02-11 16:44:56 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T33907, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 31907 - Exception in SMW RDF Query Printer
Exception in SMW RDF Query Printer
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Unprioritized major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-10-23 16:19 UTC by David
Modified: 2012-02-11 16:44 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description David 2011-10-23 16:19:11 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
Comment 1 Markus Krötzsch 2012-02-11 16:44:56 UTC
This issue has been fixed as part of other bug reports. Closing this forgotten report now. :-)

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links