Hi,

Executing a query with format=debug and a property of type record where at
least one field has a value e.g.

{{#ask: [[GOslim:membrane;?;?]] | format=debug}}

gives the error

Fatal error: Call to a member function findPropertyTypeID() on a
non-object in
/w/extensions/SemanticMediaWiki/includes/SMW_DataValueFactory.php  on line
130

Queries with other format values than 'debug' e.g. 'format=table' are
working ok and give the expected results.
Also {{#ask: [[GOslim:?;?;?]] | format=debug}} (no field values given)
returns the expected result.


It seems the function newDataItemValue is at some point called with the
variable $property having the value '1' causing 
if ( !is_null( $property ) ) {
   $typeId = $property->findPropertyTypeID();
to throw the error.
Changing the if to if ((is_object($property)) && (!is_null($property)))
results in an empty white page instead of the error message.


I created such a record property on sandbox.semantic-mediawiki.org and see
there the same problem, except that with format=debug I don't get an error
message but always a white empty page.

Versions I use:
MediaWiki       1.18.1
Semantic MediaWiki (Version 1.8 alpha) (r115105)

Cheers,
Gu

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to