Page MenuHomePhabricator

Publishing error: [ContentTranslationError] Url exceeds maximum length
Closed, ResolvedPublic

Description

While trying to publish article I created (with lots of days of work), following error occurred:

Object {sourceLanguage: "en", targetLanguage: "gu", sourceTitle: "Sanjay Gandhi National Park", sourceRevision: "669174420", targetTitle: "સંજય ગાંધી રાષ્ટ્રીય ઉદ્યાન"…}error: ObjectsourceLanguage: "en"sourceRevision: "669174420"sourceTitle: "Sanjay Gandhi National Park"targetLanguage: "gu"targetTitle: "સંજય ગાંધી રાષ્ટ્રીય ઉદ્યાન"__proto__: Object
load.php?debug=true&lang=gu&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=eDmIb5ih:11122
[ContentTranslationError] Url exceeds maximum lengthmw.log.log.error @ load.php?debug=true&lang=gu&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=eDmIb5ih:11122(anonymous function) @ ext.eventLogging.core.js:279handler @ load.php?debug=true&lang=gu&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=eDmIb5ih:10972jQuery.Callbacks.fire @ load.php?debug=true&lang=gu&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=eDmIb5ih:3148jQuery.Callbacks.self.fireWith @ load.php?debug=true&lang=gu&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=eDmIb5ih:3260jQuery.Callbacks.self.fire @ load.php?debug=true&lang=gu&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=eDmIb5ih:3267mw.track @ load.php?debug=true&lang=gu&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=eDmIb5ih:10948mw.eventLog.checkUrlSize @ ext.eventLogging.core.js:228mw.eventLog.logEvent @ ext.eventLogging.core.js:263(anonymous function) @ ext.eventLogging.subscriber.js:38jQuery.Callbacks.fire @ load.php?debug=true&lang=gu&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=eDmIb5ih:3148jQuery.Callbacks.self.fireWith @ load.php?debug=true&lang=gu&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=eDmIb5ih:3260jQuery.extend.Deferred.jQuery.each.deferred.(anonymous function) @ load.php?debug=true&lang=gu&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=eDmIb5ih:3350handlePending @ load.php?debug=true&lang=gu&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=eDmIb5ih:11583mw.loader.state @ load.php?debug=true&lang=gu&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=eDmIb5ih:12450mw.loader.state @ load.php?debug=true&lang=gu&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=eDmIb5ih:12438(anonymous function) @ load.php?debug=true&lang=gu&modules=schema.ContentTranslationError&only=scripts&skin=vector&version…:1

URL: https://gu.wikipedia.org/wiki/Special:ContentTranslation?page=Sanjay+Gandhi+National+Park&from=en&to=gu&targettitle=સંજય+ગાંધી+રાષ્ટ્રીય+ઉદ્યાન&draft=40289&debug=1

Event Timeline

KokilaMistry raised the priority of this task from to Needs Triage.
KokilaMistry updated the task description. (Show Details)
Amire80 triaged this task as High priority.Jul 3 2015, 2:40 PM
Amire80 set Security to None.
Amire80 moved this task from Needs Triage to CX6 on the ContentTranslation board.

The [ContentTranslationError] Url exceeds maximum length is probably just a symptom: it is trying to log an error event that is too big (long page names?). Hopefully actual error could be seen by inspecting the headers and responses of the AJAX requests.

I have given the draft of this translation to Santhosh for investigation.

As per the analysis, it is found that the references list was not added to translation, while a reference is used . This cause parsoid failure

[fatal/request][enwiki/Main Page] extension src id mw-reference-text-cite_note-3 points to non-existent element for:  <span about="#mwt11" class="reference" data-mw="{&quot;name&quot;:&quot;ref&quot;,&quot;body&quot;:{&quot;id&quot;:&quot;mw-reference-text-cite_note-3&quot;,&quot;html&quot;:&quot;&quot;},&quot;attrs&quot;:{}}" id="cxcite_ref-3" rel="dc:references" typeof="mw:Extension/ref" data-sourceid="cite_ref-3" contenteditable="false"><a href="#cite_note-3">[3]</a>&nbsp;</span> [reference #cite_note-3 not found]

Further analysis showed that the translation was started long time back(May 26) before we fixed CX's reference handling for this case(See https://phabricator.wikimedia.org/T103502 and https://gerrit.wikimedia.org/r/#/c/220435/ )
So, to publish this without an error, removing and re-adding reference is needed.

@KokilaMistry, please confirm whether you can see the translation in your translation dashboard under "In progress" section or "Published section".

santhosh moved this task from Backlog to Done on the LE-CX6-Sprint 1 board.
santhosh removed a project: LE-CX6-Sprint 1.