Last modified: 2011-06-12 10:28:25 UTC
After Updating to trunk version I get this error Fatal error: Declaration of SMWSQLStore2::getPropertySubjects() must be compatible with that of SMWStore::getPropertySubjects() in /var/www/vhosts/wecowi.de/httpdocs/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php on line 33
This is odd, I'm not getting the error (for trunk as it is while I post this), and check the declarations of both methods, which seem to be compatible... When did you update to trunk?
I updated to r86397 can this be a result of something missing in the database or old semantic syntax in a page? But trying to run the setup or refresh data fails with the same error
Or may this be a problem with PHP? My Version is PHP 5.2.4-2ubuntu5.14 with Suhosin-Patch 0.9.6.2 (cli) (built: Jan 12 2011 15:55:42) Copyright (c) 1997-2007 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
Well, maybe I found the error. public function getPropertySubjects( SMWDiProperty $property, $value, $requestoptions = null ) public abstract function getPropertySubjects( SMWDIProperty $property, $value, $requestoptions = null ) There is SMWDIProperty and SMWDiProperty But after changing als SMWDi to SMWDI I get this error Fatal error: Call to undefined method SMWDIString::getDBkeys() in /…/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2_Queries.php on line 750
Now trying to run SMW Setup I get the following Exception Unexpected non-MediaWiki exception encountered, of type "SMWDataItemException" exception 'SMWDataItemException' with message 'There is no predefined property with "_1".' in /var/www/vhosts/wecowi.de/httpdocs/extensions/SemanticMediaWiki/includes/dataitems/SMW_DI_Property.php:80 Stack trace: #0 /var/www/vhosts/wecowi.de/httpdocs/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php(1409): SMWDIProperty->__construct('_1') #1 /var/www/vhosts/wecowi.de/httpdocs/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php(1230): SMWSQLStore2->setupPredefinedProperties(true, Object(DatabaseMysql)) #2 /var/www/vhosts/wecowi.de/httpdocs/extensions/SemanticMediaWiki/maintenance/SMW_setup.php(124): SMWSQLStore2->setup() #3 {main} #0 /var/www/vhosts/wecowi.de/httpdocs/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php(1409): SMWDIProperty->__construct('_1') #1 /var/www/vhosts/wecowi.de/httpdocs/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php(1230): SMWSQLStore2->setupPredefinedProperties(true, Object(DatabaseMysql)) #2 /var/www/vhosts/wecowi.de/httpdocs/extensions/SemanticMediaWiki/maintenance/SMW_setup.php(124): SMWSQLStore2->setup() #3 {main}
I have now fixed the errors you described in comment 4. As announced on the SMW mailing list, SMW is currently in a state of heavy development and not all features are properly working again yet. Please do not use the development version for productive sites. Of course bug reports on the development version are very welcome if you can afford the instability. Currently, records are still not functional, and the setup error you got is part of this. This will be fixed in due course.
That's no problem. The site I use it on is "half-productive" and it's no problem when it does not work properly. And most features are now working after less then 24 hours and I really like testing and finding bugs ;) In short: I can afford the instability Thx :)