Last modified: 2011-09-29 07:45:53 UTC
SD of revision 98061 produced the following error on http://semantic-mediawiki.org/wiki/Special:BrowseData (not any more since it is temporarily disabled now): Catchable fatal error: Argument 2 passed to SMWSQLStore2::getPropertyValues() must be an instance of SMWDIProperty, instance of SMWPropertyValue given, called in /domains/semantic-mediawiki.org/www/w/extensions/SemanticDrilldown/includes/SD_Utils.inc on line 130 and defined in /domains/semantic-mediawiki.org/www/w/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php on line 191 This is a twofold error: (1) an SMW function is called with the wrong type; (2) an SD function is invoked on a special page that has nothing to do with SD at all. Unless (2) is just due to jobs, there is a problem here in that SD retrieves data from the database without any good cause. This should be avoided then.
Hi Markus, It sounds like you're just using an old version of Semantic Drilldown - the file you're referring to, SD_Utils.inc, was actually renamed SD_Utils.php over a year ago. Maybe you're accidentally using an SVN tag or branch?
Indeed, it was a tag (my connection from the bus was too shaky to check this)! Updating it fixed the problem. I also confused Special:Browse with Special:BrowseData in the report, so the issue (2) is also invalid. Yet, I don't think that SD works now (even though the error is gone). See, for example, http://semantic-mediawiki.org/wiki/Special:BrowseData/Semantic_MediaWiki. But this would be another bug, not this one.
By the way, for the current issue - I asked Jeroen about it (since he fixed up SD's SMW compatibility), and he said that it's due to semantic-mediawiki.org using version 1.6.2 alpha of SMW - SD supports earlier and later versions of SMW, but not that one. So upgrading or downgrading would (hopefully) fix the problem.