Page MenuHomePhabricator

Activate Citoid on sv.wp again [Regression?]
Closed, DuplicatePublic

Description

I'm unable to use (open) Citoid on sv.wp.

Event Timeline

Josve05a raised the priority of this task from to Needs Triage.
Josve05a updated the task description. (Show Details)
Josve05a added projects: Citoid, VisualEditor.
Josve05a subscribed.
Josve05a triaged this task as Unbreak Now! priority.Jul 25 2015, 11:23 AM
Josve05a updated the task description. (Show Details)
Josve05a set Security to None.
Josve05a added a subscriber: Ainali.

I just played around and copied what the inspector said was there...

<div class="ve-test-toolbar-cite oo-ui-widget oo-ui-toolGroup oo-ui-indicatorElement oo-ui-labelElement oo-ui-popupToolGroup oo-ui-listToolGroup oo-ui-widget-enabled oo-ui-popupToolGroup-active oo-ui-popupToolGroup-left" aria-disabled="false"><span tabindex="0" aria-disabled="false" class="oo-ui-popupToolGroup-handle"><span class="oo-ui-iconElement-icon"></span><span class="oo-ui-labelElement-label">Ange källa</span><span class="oo-ui-indicatorElement-indicator oo-ui-indicator-down"></span></span><div class="oo-ui-toolGroup-tools oo-ui-clippableElement-clippable" style="overflow-y: scroll; height: 222.878463745117px;"><span class="oo-ui-widget oo-ui-iconElement oo-ui-tool oo-ui-tool-name-cite-web oo-ui-widget-enabled" aria-disabled="false"><a tabindex="0" aria-disabled="false" class="oo-ui-tool-link" role="button"><span class="oo-ui-iconElement-icon oo-ui-icon-ref-cite-web"></span><span class="oo-ui-tool-title">Webbplats</span><span class="oo-ui-tool-accel" dir="ltr" lang="en"></span></a></span><span class="oo-ui-widget oo-ui-iconElement oo-ui-tool oo-ui-tool-name-cite-book oo-ui-widget-enabled" aria-disabled="false"><a tabindex="0" aria-disabled="false" class="oo-ui-tool-link" role="button"><span class="oo-ui-iconElement-icon oo-ui-icon-ref-cite-book"></span><span class="oo-ui-tool-title">Bok</span><span class="oo-ui-tool-accel" dir="ltr" lang="en"></span></a></span><span class="oo-ui-widget oo-ui-iconElement oo-ui-tool oo-ui-tool-name-cite-news oo-ui-widget-enabled" aria-disabled="false"><a tabindex="0" aria-disabled="false" class="oo-ui-tool-link" role="button"><span class="oo-ui-iconElement-icon oo-ui-icon-ref-cite-news"></span><span class="oo-ui-tool-title">Nyheter</span><span class="oo-ui-tool-accel" dir="ltr" lang="en"></span></a></span><span class="oo-ui-widget oo-ui-iconElement oo-ui-tool oo-ui-tool-name-cite-journal oo-ui-widget-enabled" aria-disabled="false"><a tabindex="0" aria-disabled="false" class="oo-ui-tool-link" role="button"><span class="oo-ui-iconElement-icon oo-ui-icon-ref-cite-journal"></span><span class="oo-ui-tool-title">Tidskrift</span><span class="oo-ui-tool-accel" dir="ltr" lang="en"></span></a></span><span class="oo-ui-widget oo-ui-iconElement oo-ui-tool oo-ui-tool-name-reference oo-ui-widget-enabled" aria-disabled="false"><a tabindex="0" aria-disabled="false" class="oo-ui-tool-link" role="button"><span class="oo-ui-iconElement-icon oo-ui-icon-reference"></span><span class="oo-ui-tool-title">Enkel</span><span class="oo-ui-tool-accel" dir="ltr" lang="en"></span></a></span><span class="oo-ui-widget oo-ui-iconElement oo-ui-tool oo-ui-tool-name-reference-existing oo-ui-widget-enabled" aria-disabled="false"><a tabindex="0" aria-disabled="false" class="oo-ui-tool-link" role="button"><span class="oo-ui-iconElement-icon oo-ui-icon-reference-existing"></span><span class="oo-ui-tool-title">Återanvänd</span><span class="oo-ui-tool-accel" dir="ltr" lang="en"></span></a></span><span class="oo-ui-widget oo-ui-widget-enabled oo-ui-tool oo-ui-tool-name-more-fewer oo-ui-element-hidden oo-ui-iconElement" aria-disabled="false"><a tabindex="0" aria-disabled="false" class="oo-ui-tool-link" role="button"><span class="oo-ui-iconElement-icon oo-ui-icon-expand"></span><span class="oo-ui-tool-title">Fler</span><span class="oo-ui-tool-accel" dir="ltr" lang="en"></span></a></span></div></div>

@Mvolz is probably right, since it works if i add uselang=en
What is strange though is that that task is older than this video that I successfully recorded two weeks ago. Something new must have happened that affected svwiki. https://commons.wikimedia.org/wiki/File:L%C3%A4gga_till_k%C3%A4lla_med_VisualEditor_(och_citoid).webm

Can someone purge the page? @Esanders @Krenair ?

@Ainali you've had this issue before? Was it reported anywhere else?

So far this issue has stumped us so any details of another outage would be
really helpful (as noted in the other task).

It worked fine yesterday when I edited/tried, now today when I try to use it, it seems to have gone back to the "CIte"-tool which existed in VE before Citoid, not even showing the (book) icon next to the "Ange källa" (Cite).

When uselang=en it does work, and with sv it doesn't, and ve.init.mw.Target.static.toolbarGroups[4] is different.
I think the ugly hack in ve.ui.CiteFromIdInspectorTool.js should write to log in all the cases of fail. (missing citoid-template-type-map.json or missing ve.init.Target etc)

Ok, I got home so I was finally able to purge the cache myself, which fixed it.

In the future if this happens again please report the outage on T93800. As @Krinkle notes there, we still don't know what causes this and reporting incidents helps with the forensics.

Then to fix citoid you can purge the cache yourself but going to:

https://sv.wikipedia.org/w/api.php?action=purge&titles=MediaWiki:Citoid-template-type-map.json

And that should fix it.

Until it happens again of course :(.