Last modified: 2014-04-18 17:23:48 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 T65804, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 63804 - php class namespace errors
php class namespace errors
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
REL1_22-branch
All All
: Normal normal (vote)
: ---
Assigned To: Wikidata bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-04-11 05:07 UTC by John Mark Vandenberg
Modified: 2014-04-18 17:23 UTC (History)
3 users (show)

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


Attachments

Description John Mark Vandenberg 2014-04-11 05:07:01 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.
Comment 1 Lydia Pintscher 2014-04-11 12:55:30 UTC
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.
Comment 2 John Mark Vandenberg 2014-04-11 13:08:05 UTC
Fresh install using Composer; no outdated components. Only Wikibase and LocalisationUpdate enabled. Works perfectly in php 5; fails when deployed into php 3.

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


Navigation
Links