Last modified: 2011-06-12 10:28:25 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 T30606, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 28606 - Declaration of SMWSQLStore2 incompatible with SMWStore
Declaration of SMWSQLStore2 incompatible with SMWStore
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Markus Krötzsch
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-04-18 22:37 UTC by DaSch
Modified: 2011-06-12 10:28 UTC (History)
1 user (show)

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


Attachments

Description DaSch 2011-04-18 22:37:11 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
Comment 1 Jeroen De Dauw 2011-04-19 00:00:48 UTC
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?
Comment 2 DaSch 2011-04-19 14:58:41 UTC
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
Comment 3 DaSch 2011-04-19 15:03:06 UTC
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
Comment 4 DaSch 2011-04-19 15:17:28 UTC
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
Comment 5 DaSch 2011-04-19 15:43:10 UTC
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}
Comment 6 Markus Krötzsch 2011-04-19 16:13:51 UTC
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.
Comment 7 DaSch 2011-04-19 16:32:29 UTC
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 :)

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


Navigation
Links