Page MenuHomePhabricator

Uncaught TypeError: Cannot read property 'search' of undefined
Closed, ResolvedPublic

Description

When trying to add a new statement on test.wikidata, I get a js error:

Uncaught TypeError: Cannot read property 'search' of undefined

the api call is:

https://test.wikidata.org/w/api.php?action=wbsearchentities&search=&format=json&language=en&uselang=en&type=property

and returns an error:

The search parameter must be set / nosearch

Event Timeline

aude created this task.Aug 3 2016, 12:51 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 3 2016, 12:51 AM

Not sure why this has changed. Maybe @thiemowmde knows more.

Change 302710 had a related patch set uploaded (by Thiemo Mättig (WMDE)):
Forward API error in entityselector when PropertySuggester is not there

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

Restricted Application added a subscriber: TerraCodes. · View Herald TranscriptAug 3 2016, 2:18 PM
thiemowmde triaged this task as Low priority.Aug 3 2016, 2:18 PM
thiemowmde moved this task from Proposed to Review on the Wikidata-Sprint-2016-08-02 board.
Jonas closed this task as Resolved.Aug 3 2016, 2:53 PM
Jonas moved this task from Review to Done on the Wikidata-Sprint-2016-08-02 board.
aude added a comment.Aug 3 2016, 2:59 PM

https://github.com/Wikidata-lib/PropertySuggester/pull/169

(property suggester needed to be updated for compatibility in Wikibase. It was no longer being triggered, and side effect was the js error)

Change 302710 merged by jenkins-bot:
Forward API error in entityselector when PropertySuggester is not there

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

Change 302888 had a related patch set uploaded (by Thiemo Mättig (WMDE)):
Better entityselector mentioning PropertySuggester dependency

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

Change 302888 merged by jenkins-bot:
Better entityselector mentioning PropertySuggester dependency

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