Last modified: 2013-07-18 09:18:17 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 T53040, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 51040 - PropertyInfoTable decodes JSON to object instead of array
PropertyInfoTable decodes JSON to object instead of array
Status: VERIFIED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Highest blocker (vote)
: ---
Assigned To: Wikidata bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-09 14:31 UTC by Daniel Kinzler
Modified: 2013-07-18 09:18 UTC (History)
4 users (show)

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


Attachments

Description Daniel Kinzler 2013-07-09 14:31:48 UTC
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.
Comment 1 Gerrit Notification Bot 2013-07-09 14:39:05 UTC
Change 72728 had a related patch set uploaded by Daniel Kinzler:
(bug 51040) Fix json decode in PropertyInfoTable.

https://gerrit.wikimedia.org/r/72728
Comment 2 Gerrit Notification Bot 2013-07-09 15:04:41 UTC
Change 72728 merged by jenkins-bot:
(bug 51040) Fix json decode in PropertyInfoTable.

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

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


Navigation
Links