Page MenuHomePhabricator

citoid dosen't work at Hindi Wikipedia
Closed, ResolvedPublic

Description

Automatic citation generation on the Visual Editor doesn't work at Hindi Wikipedia.

The automatic tab of the inline "Add a citation" popup is disabled.

Also, when trying to convert a bare url into a formatted citation the popup goes white with a message "Something went wrong" and provides two buttons "(Dismiss) (Try again)"

Steps to reproduce

  • For the "Add a citation" problem
    • Go to any page in Hindi Wikipedia
    • Switch to visual editor
    • Try to add a citation

Expected

Automatic tab is enabled and works.

Actual

Automatic tab is not enabled

  • For the Converting problem
    • Go to any page in Hindi Wikipedia with a bare url (eg:सामराऊ)
    • Open visual editor
    • Click on the superscript (a inline popup with a convert button appears)
    • Press "Convert"

Expected

A well formatted citation appears after a few seconds with an insert button at the top

Actual

After a few seconds, a overlay appears in the popup with the following message "Something went wrong" and with two buttons "(Dismiss) and (Try Again)"

Update

After yesterday's deployment, the convert button doesn't appear.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 1 2019, 4:40 PM
Aklapper changed the task status from Open to Stalled.Aug 1 2019, 6:59 PM

Hi @Force_Radical, thanks for taking the time to report this.

Unfortunately this report lacks some information. If you have time and can still reproduce the problem: Please add a more complete description to this report.
That can be a clear list of specific steps to reproduce the situation, as little details sometimes matter, so that nobody needs to guess how you performed each step, describing actual results and expected results after performing the steps to reproduce, and providing a link to a public website where the issue can be seen.

You can edit the task description by clicking Edit Task.
Ideally, exact and clear steps to reproduce should allow any other person to follow these steps (without having to interpret those steps) and see the same results. Problems that others can reliably reproduce can get fixed faster. Thanks.

Force_Radical updated the task description. (Show Details)Aug 2 2019, 4:40 AM
Force_Radical updated the task description. (Show Details)Aug 2 2019, 4:49 AM
Schnark added a subscriber: Schnark.Aug 2 2019, 7:21 AM

The console shows the following warning:

Mapping(s) missing from citoid-template-type-map.json: artwork, audioRecording, bill, computerProgram, dictionaryEntry, email, encyclopediaArticle, hearing, instantMessage, interview, letter, manuscript, map, patent, podcast, presentation, radioBroadcast, report, statute, thesis, tvBroadcast, videoRecording

So you probably just have to add these to the definition in https://hi.wikipedia.org/wiki/%E0%A4%AE%E0%A5%80%E0%A4%A1%E0%A4%BF%E0%A4%AF%E0%A4%BE%E0%A4%B5%E0%A4%BF%E0%A4%95%E0%A4%BF:Citoid-template-type-map.json. You can copy (and possible adapt) it from https://en.wikipedia.org/wiki/MediaWiki:Citoid-template-type-map.json.

Mvolz added a subscriber: Mvolz.Aug 2 2019, 8:43 AM

I've temporarily disabled it here, as it is incorrectly configured: https://hi.wikipedia.org/w/index.php?title=%E0%A4%AE%E0%A5%80%E0%A4%A1%E0%A4%BF%E0%A4%AF%E0%A4%BE%E0%A4%B5%E0%A4%BF%E0%A4%95%E0%A4%BF:Citoid-template-type-map.json&action=history

It needs to be correctly configured before it is re-enabled.

Mvolz added a comment.Aug 2 2019, 9:17 AM

You've also found a bug, we shouldn't be offering the "convert" option if citoid isn't correctly enabled. Thanks for the reporting! I've separated that off into T229654.

Mvolz closed this task as Resolved.Aug 2 2019, 10:02 AM
Mvolz claimed this task.
Restricted Application added a project: User-Ryasmeen. · View Herald TranscriptAug 2 2019, 10:02 AM
Mvolz added a comment.Aug 2 2019, 10:03 AM

I've just quickly fixed the config; it was relatively simple as hi wiki uses all the same templates as en wiki so I just copied some stuff over. Should all be working now!