Page MenuHomePhabricator

"Uncaught Error: Syntax error, unrecognized expression: ." when clicking on paragraph
Closed, ResolvedPublic

Description

The error

Uncaught Error: Syntax error, unrecognized expression: .
    at Function.Sizzle.error (load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:21)
    at Sizzle.tokenize (load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:30)
    at Sizzle.select (load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:37)
    at Function.Sizzle (load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:11)
    at Function.jQuery.find (load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:146)
    at jQuery.fn.init.find (load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:41)
    at jQuery.fn.init (load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:42)
    at new jQuery.fn.init (load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:145)
    at jQuery (load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:2)
    at Object.mw.cx.TranslationTracker.static.getTokensFromValidationTree (<anonymous>:206:297)
load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:21 Uncaught Error: Syntax error, unrecognized expression: .
    at Function.Sizzle.error (load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:21)
    at Sizzle.tokenize (load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:30)
    at Sizzle.select (load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:37)
    at Function.Sizzle (load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:11)
    at Function.jQuery.find (load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:146)
    at jQuery.fn.init.find (load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:41)
    at jQuery.fn.init (load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:42)
    at new jQuery.fn.init (load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:145)
    at jQuery (load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:2)
    at Object.mw.cx.TranslationTracker.static.getTokensFromValidationTree (<anonymous>:206:297)
VM150:1031 Uncaught Error: Syntax error, unrecognized expression: .
    at Function.Sizzle.error (load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:21)
    at Sizzle.tokenize (load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:30)
    at Sizzle.select (load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:37)
    at Function.Sizzle (load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:11)
    at Function.jQuery.find (load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:146)
    at jQuery.fn.init.find (load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:41)
    at jQuery.fn.init (load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:42)
    at new jQuery.fn.init (load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:145)
    at jQuery (load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:2)
    at Object.mw.cx.TranslationTracker.static.getTokensFromValidationTree (<anonymous>:206:297)
DevTools failed to load SourceMap: Could not load content for chrome-extension://hdokiejnpimakedhajhdlcegeplioahd/sourcemaps/onloadwff.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:21 Uncaught Error: Syntax error, unrecognized expression: .
    at Function.Sizzle.error (load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:21)
    at Sizzle.tokenize (load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:30)
    at Sizzle.select (load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:37)
    at Function.Sizzle (load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:11)
    at Function.jQuery.find (load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:146)
    at jQuery.fn.init.find (load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:41)
    at jQuery.fn.init (load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:42)
    at new jQuery.fn.init (load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:145)
    at jQuery (load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:2)
    at Object.mw.cx.TranslationTracker.static.getTokensFromValidationTree (<anonymous>:206:297)
Sizzle.error @ load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:21
Sizzle.tokenize @ load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:30
Sizzle.select @ load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:37
Sizzle @ load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:11
jQuery.find @ load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:146
find @ load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:41
jQuery.fn.init @ load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:42
jQuery.fn.init @ load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:145
jQuery @ load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:2
mw.cx.TranslationTracker.static.getTokensFromValidationTree @ VM150:206
mw.cx.TranslationTracker.static.getSectionNodeValidationTokens @ VM150:206
mw.cx.TranslationTracker.validateForMTAbuse @ VM150:212
mw.cx.TranslationTracker.processValidationQueue @ VM150:216
later @ load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:157
setTimeout (async)
(anonymous) @ load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:157
mw.cx.TranslationTracker.processSectionChange @ VM150:211
mw.cx.TranslationTracker.processChangeQueue @ VM150:210
mw.cx.TranslationController.processChangeQueue @ VM150:189
mw.cx.TranslationController.processSaveQueue @ VM150:189
later @ load.php?lang=pt&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets&skin=vector&version=b943y:157

happened at
https://pt.wikipedia.org/wiki/Special:ContentTranslation?title=Special:ContentTranslation&campaign=contributionsmenu&to=pt&page=Universal+algebra&from=en&targettitle=%C3%81lgebra+universal
right after I clicked on the paragraph

For example, the n-coloring problem can be stated as CSP of the algebra {\displaystyle {\big (}\{0,1,\dots ,n-1\},\neq {\big )}}, i.e. an algebra with {\displaystyle n} elements and a single relation, inequality.

to start translating it.

Event Timeline

He7d3r created this task.Jun 27 2020, 2:11 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJun 27 2020, 2:11 PM

This seems to a minor regression resulted from https://gerrit.wikimedia.org/r/c/mediawiki/extensions/ContentTranslation/+/596635

@ngkountas Can we make the below line a little bit more stable in these contexts?

sourceText = $( ve.dm.converter.getDomFromNode( validationNode ).body.innerHTML ).text();

Thank you @santhosh! Let me check it and come back with a solution

Change 614753 had a related patch set uploaded (by Nik Gkountas; owner: Nik Gkountas):
[mediawiki/extensions/ContentTranslation@master] CX TranslationTracker: Fix issue in validation tree token calculation

https://gerrit.wikimedia.org/r/614753

Change 614753 merged by jenkins-bot:
[mediawiki/extensions/ContentTranslation@master] CX TranslationTracker: Fix issue in validation tree token calculation

https://gerrit.wikimedia.org/r/614753

Pginer-WMF closed this task as Resolved.Aug 14 2020, 1:55 PM