Last modified: 2009-11-02 19:23:15 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 T22904, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 20904 - SMWResultArray changes in SMW 1.5
SMWResultArray changes in SMW 1.5
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
SemanticDrilldown (Other open bugs)
unspecified
All All
: Normal major (vote)
: ---
Assigned To: Yaron Koren
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-09-30 13:42 UTC by DaSch
Modified: 2009-11-02 19:23 UTC (History)
0 users

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


Attachments

Description DaSch 2009-09-30 13:42:24 UTC
Catchable fatal error: Argument 1 passed to SMWResultArray::SMWResultArray() must be an instance of SMWWikiPageValue, array given, called in /.../httpdocs/extensions/SemanticDrilldown/specials/SD_BrowseData.php on line 954 and defined in /.../httpdocs/extensions/SemanticMediaWiki/includes/storage/SMW_QueryResult.php on line 182

When trying to open pages like Spezial:BrowseData from Semantic Drilldown



Catchable fatal error: Argument 2 passed to SMWSQLStore2::getPropertyValues() must be an instance of SMWPropertyValue, null given, called in /.../httpdocs/extensions/SemanticMediaWiki/includes/storage/SMW_QueryResult.php on line 268 and defined in /.../httpdocs/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php on line 339

When trying to open page with semantic Query
http://www.wecowi.de/view/WeCoWi:Attribut
Comment 1 Markus Krötzsch 2009-09-30 21:57:04 UTC
The API of SMWResultArray has changed in SMW 1.5, and SemanticDrilldown is not yet updated to be compatible with these changes. This is normal, since SMW 1.5 is not released yet and it will take some time until all extensions are compatible. Please read the manual of SemanticDrilldown to find out which version of SMW you can use with it right now.

Explanation of changes in SMW: query result now are no longer pre-fetched but rather pulled from the store when needed. This eliminates the need ot have all data for a complex and very long query output in memory at the same time. To enable this, some changes had to be made in the infrastructure, though all get-functions are still the same (so all printers work as before, where some can be implemented more efficiently using the new getResults() ).

I am reassigning this bug to SD, but I add the warning that some additional changes in SMWResultArray may happen in the next week. I was not aware that any extension did actually access this part of SMW directly, or I would have sent out a note to the developers.
Comment 2 Yaron Koren 2009-10-01 03:17:21 UTC
A fix to handle the changes in SMW 1.5 is now checked in to the version of Semantic Drilldown on SVN. By the way, I don't know how the new SMW code works, but it's amazing!
Comment 3 Yaron Koren 2009-11-02 19:23:15 UTC
This was fixed in version 0.6.1 - the handling still isn't perfect, but it (I believe) no longer leads to any error messages.

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


Navigation
Links