Page MenuHomePhabricator

Blank page when CX is used without Cite
Closed, ResolvedPublic

Description

I'm trying to setup CX on my wiki. I've installed CX and VE following the instructions on mw.org, and Special:ContentTranslation loads fine. However, if I try to translate a page containing references (e.g. https://en.wikipedia.org/wiki/User:Testpitanormal/toPt), I get a blank page with a console error:

inheritClass: Origin is not a function (actually undefined)

I realized that this happens because VE has:

OO.inheritClass( ve.dm.CXReferenceNode, ve.dm.MWReferenceNode );

but the latter only exists if Cite is installed.

Based on mw.org, Cite is an optional dependency, so this should fallback more gracefully.

Event Timeline

It's more likely that we will make Cite a mandatory dependency.

thiemowmde assigned this task to Nikerabbit.
thiemowmde removed projects: Cite, VisualEditor.
thiemowmde subscribed.

we will make Cite a mandatory dependency.

This happened in 2020 via https://gerrit.wikimedia.org/r/566066.