https://bugzilla.wikimedia.org/show_bug.cgi?id=56051
Web browser: ---
Bug ID: 56051
Summary: Catchable fatal error: Argument 1 passed to
Wikibase\Claims::getClaimsForProperty() in property
parser function
Product: MediaWiki extensions
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: WikidataClient
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Mobile Platform: ---
I am getting a fatal error in the client:
Catchable fatal error: Argument 1 passed to
Wikibase\Claims::getClaimsForProperty() must be an instance of
Wikibase\DataModel\Entity\PropertyId, instance of
Wikibase\DataModel\Entity\EntityId given, called in
/var/www/common/php-master/extensions/Wikibase/client/includes/parserhooks/PropertyParserFunctionRenderer.php
on line 86 and defined in
/var/www/common/php-master/extensions/WikibaseDataModel/DataModel/Claim/Claims.php
on line 370
This issue is caused by older data from memcached that my install is using. The
TermPropertyLabelResolver pulls the ids from memcached.
e.g.
'coordinate' => Wikibase\DataModel\Entity\EntityId::__set_state(array(
'entityType' => 'property', 'serialization' => 'P5', ))
These are EntityId objects, but not specifically PropertyId objects that
Claims::getClaimsForProperty() now requires.
This issue *will* hit us in production, so must fix asap.
--
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