Page MenuHomePhabricator

PropertyInfoTable decodes JSON to object instead of array
Closed, ResolvedPublic

Description

Editing fails with this error:

Cannot use object of type stdClass as array in <b>D:\F_Programmierung\xampp\htdocs\core\extensions\Wikibase\lib\includes\PropertyInfoDataTypeLookup.php</b> on line <b>70</b><br />

This is caused by json_decode being called without the second parameter set in PropertyInfoTable, which causes it to return a stdClass object instead of an associative array.


Version: unspecified
Severity: blocker

Details

Reference
bz51040

Event Timeline

bzimport raised the priority of this task from to Unbreak Now!.Nov 22 2014, 2:04 AM
bzimport set Reference to bz51040.
bzimport added a subscriber: Unknown Object (MLST).

Change 72728 had a related patch set uploaded by Daniel Kinzler:
(bug 51040) Fix json decode in PropertyInfoTable.

https://gerrit.wikimedia.org/r/72728

Change 72728 merged by jenkins-bot:
(bug 51040) Fix json decode in PropertyInfoTable.

https://gerrit.wikimedia.org/r/72728