Page MenuHomePhabricator

Structured Data add reference not working
Closed, DuplicatePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Open the "Structured data" tab in a Wikimedia Commons file.
  • Add a new statement or edit an existing one.
  • Click on "Add reference" to add a new reference supporting the statement.

What happens?:
Nothing happens visually.
The browser's console shows error: Uncaught TypeError: can't convert undefined to object (ItemWidget.js:332:45)

What should have happened instead?:
The fields to add a new reference should have been shown.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):
Tried both logged in and logged out, using Firefox v113.0.2 and Chrome v103 (super outdated, I know; I just never use it).

Event Timeline

Change #1051166 had a related patch set uploaded (by Marco Fossati; author: Marco Fossati):

[mediawiki/extensions/WikibaseMediaInfo@master] Reference widget: check for undefined config

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

mfossati changed the task status from Open to In Progress.Jul 1 2024, 4:34 PM
mfossati claimed this task.

Change #1051166 merged by jenkins-bot:

[mediawiki/extensions/WikibaseMediaInfo@master] Reference widget: check for undefined config

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

Change #1051202 had a related patch set uploaded (by Jforrester; author: Marco Fossati):

[mediawiki/extensions/WikibaseMediaInfo@wmf/1.43.0-wmf.11] Reference widget: check for undefined config

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

Change #1051202 merged by jenkins-bot:

[mediawiki/extensions/WikibaseMediaInfo@wmf/1.43.0-wmf.11] Reference widget: check for undefined config

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

Mentioned in SAL (#wikimedia-operations) [2024-07-02T12:14:54Z] <jforrester@deploy1002> Started scap sync-world: Backport for [[gerrit:1051202|Reference widget: check for undefined config (T368736)]]

Mentioned in SAL (#wikimedia-operations) [2024-07-02T12:19:17Z] <jforrester@deploy1002> jforrester: Backport for [[gerrit:1051202|Reference widget: check for undefined config (T368736)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2024-07-02T12:24:53Z] <jforrester@deploy1002> Finished scap: Backport for [[gerrit:1051202|Reference widget: check for undefined config (T368736)]] (duration: 09m 59s)