Last modified: 2013-02-06 16:25:27 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 T46542, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 44542 - editing/adding/removing references via API is broken
editing/adding/removing references via API is broken
Status: VERIFIED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Unprioritized blocker (vote)
: ---
Assigned To: Wikidata bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-31 12:05 UTC by Daniel A. R. Werner
Modified: 2013-02-06 16:25 UTC (History)
4 users (show)

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


Attachments

Description Daniel A. R. Werner 2013-01-31 12:05:21 UTC
Adding a reference to a Statement will only work if the Statement has no references yet. When editing an existing reference or when adding a second reference, the API will return an error (this one in case of editing an existing one with 'wbsetreference'):

Warning: assert() [function.assert]: Assertion failed in D:\Wikidata\gerrit.wikimedia.org\extensions\Wikibase\lib\includes\claim\Claims.php on line 200

Warning: assert() [function.assert]: Assertion failed in D:\Wikidata\gerrit.wikimedia.org\extensions\Wikibase\lib\includes\claim\Claims.php on line 228

Fatal error: Call to a member function getGuid() on a non-object in D:\Wikidata\gerrit.wikimedia.org\extensions\Wikibase\lib\includes\claim\Claims.php on line 230
Comment 1 Daniel Kinzler 2013-01-31 14:44:54 UTC
Fixed by I9b144f3d. merged.
Comment 2 abraham.taherivand 2013-02-06 16:25:27 UTC
Verified in Wikidata demo sprint 31

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


Navigation
Links