Last modified: 2014-04-18 17:23:48 UTC
I think this is caused by php 5.3.3 , which is what is available on Redhat Enterprise Linux. fwiw I am using MediaWiki 1.22.5, and Wikibase master from about a week ago with a few local mods to get it to work with the 1.22 branch, and a lot more mods to get it to work on Oracle (bug reports and patches coming this weekend). All that works fine on my dev box with php 5.5.10, but then setting up on RHEL and lots of new errors. Doing an import of data results in errors like PHP Fatal error: Declaration of Wikibase\store\CachingEntityRevisionLookup::entityDeleted() must be compatible with that of Wikibase\store\EntityStoreWatcher::entityDeleted() in .../extensions/Wikibase/lib/includes/store/sql/CachingEntityRevisionLookup.php on line 20 My fix (not fully tested yet) is to replace all the instances of 'use Wikibase\EntityId;' with 'use Wikibase\DataModel\Entity\EntityId;' Possibly related, again while doing an import Unexpected non-MediaWiki exception encountered, of type "InvalidArgumentException" [7dcae276] [no req] Exception from line 48 of /var/www/html/oracle-wiki/extensions/Wikibase/lib/includes/util/GenericEventDispatcher.php: $listener must implement Wikibase\store\EntityStoreWatcher Backtrace: #0 /var/www/html/oracle-wiki/extensions/Wikibase/repo/includes/store/sql/SqlStore.php(456): Wikibase\util\GenericEventDispatcher->registerWatcher(Wikibase\store\CachingEntityRevisionLookup) #1 /var/www/html/oracle-wiki/extensions/Wikibase/repo/includes/store/sql/SqlStore.php(426): Wikibase\SqlStore->newEntityRevisionLookup() #2 /var/www/html/oracle-wiki/extensions/Wikibase/repo/includes/store/sql/SqlStore.php(372): Wikibase\SqlStore->getEntityRevisionLookup(string) Disabling the check in GenericEventDispatcher.php worked around the problem.
Are you using Composer to install the components? You might have an outdated dependency. Also please be aware that we do not support importing of items.
Fresh install using Composer; no outdated components. Only Wikibase and LocalisationUpdate enabled. Works perfectly in php 5; fails when deployed into php 3.