https://bugzilla.wikimedia.org/show_bug.cgi?id=63804
Bug ID: 63804
Summary: php class namespace errors
Product: MediaWiki extensions
Version: REL1_22 branch
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: WikibaseDatabase
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Web browser: ---
Mobile Platform: ---
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.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l