Page MenuHomePhabricator

Adding a Wikidata link from Wikipedia and Wikivoyage fails
Closed, ResolvedPublic

Description

Author: fabsk

Description:
When a Wikipedia or Wikivoyage page does not have a link to another language:

  • the user can click on the link "Add links"
  • a dialog "Link with page" is displayed
  • if the user starts to type a language name, there is an auto-completion

Problem: the auto-completion stopped working recently at least in Wikivoyage and Wikipedia, English and French. When I start to type a language name, nothing happens and in the Firefox Javascript console the message "TypeError: this.options.source is not a function" in the file "/static-1.24wmf8/extensions/Wikidata/extensions/ValueView/lib/jquery.ui/jquery.ui.suggester.js", in the function "_getSuggestions". Call stack:

._getSuggestions(term="e")jquery....ster.js (495 行目)
.search(event=undefined)jquery....ster.js (415 行目)
._create/<(event=Object { originalEvent=Event input, type="eachchange", timeStamp=1402607831917, もっと見る...}, previousValue="en")jquery....ctor.js (50 行目)
$.event.special.eachchange.add/<(event=Object { originalEvent=Event input, type="eachchange", timeStamp=1402607831917, もっと見る...})jquery....ange.js (60 行目)
jQuery.event.dispatch(event=Object { originalEvent=Event input, type="eachchange", timeStamp=1402607831917, もっと見る...})load.ph...190453Z (4641 行目)
jQuery.event.add/elemData.handle(e=input )load.ph...190453Z (4309 行目)

Example of page:
https://en.wikipedia.org/wiki/Indiana_%28singer%29?debug=true

Browser: Firefox 29&30, no specific add-on excepted Firebug


Version: unspecified
Severity: critical
URL: https://en.wikipedia.org/wiki/Indiana_%28singer%29?debug=true

Details

Reference
bz66557

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:24 AM
bzimport set Reference to bz66557.
bzimport added a subscriber: Unknown Object (MLST).

fabsk wrote:

I tried to debug but could not find the reason. From what I understand, the jquery suggester needs to be configured with an "option.source" for the possible items. I cannot understand how is it supposed to be passed in the MediaWiki infrastructure.

Also the problem appeared only when there is no link yet. If there is already one, the link ("edit links") will lead to Wikidata.

I confirm this bug. Tried to add interwiki to enwiki at ro.wiki, and no auto-completion was. This thing happens only last 3-5 hours. Today, about 10 hours, ago i attached succesfuly 2-3 interwiki.

Created attachment 15646
gray fields

I confirm with Opera 22 , langs: cs, sk and de

Attached:

interlanglink.jpg (852×834 px, 80 KB)