Page MenuHomePhabricator

[Regression pre-wmf.15] Math node is appearing as UNIQ marker in Read mode
Open, HighPublic1 Estimated Story Points


Steps to reproduce:

  1. Add a math node using VE in a page
  2. Save the page

Observed Result:
Math node is not rendering properly in Read mode , appearing with UNIQ ID UNIQ--postMath-00000001-QINU

Event Timeline

Ryasmeen created this task.Feb 22 2016, 7:12 PM
Restricted Application added subscribers: StudiesWorld, Aklapper. · View Herald TranscriptFeb 22 2016, 7:12 PM
Ryasmeen renamed this task from [Regression pre-wmf.14] Math node is appearing as UNIQ marker in Read mode to [Regression pre-wmf.15] Math node is appearing as UNIQ marker in Read mode.Feb 22 2016, 7:33 PM

This is probably related to
I'm not sure what a "math node" nor what "read mode" is.
Since @mobrovac is currently travelling, I'd propose to revert the change, just to be on the save side. However, I do not have rights to backport anything.
@Jdforrester-WMF can you take care that someone looks at this change so that it does not affect production.

Physikerwelt removed Jdforrester-WMF as the assignee of this task.Feb 23 2016, 8:07 PM
Physikerwelt added a project: Services.

Can someone judge the Priority of this task?

Jdforrester-WMF triaged this task as Unbreak Now! priority.Feb 23 2016, 8:14 PM
Jdforrester-WMF moved this task from To Triage to TR0: Interrupt on the VisualEditor board.

It seems that this is a problem which appears only in PNG rendering mode.

Change 272818 had a related patch set uploaded (by Physikerwelt):
Only use parallel rendering in MathML mode

Change 272818 merged by jenkins-bot:
Only use parallel rendering in MathML mode

Jdforrester-WMF closed this task as Resolved.Feb 24 2016, 2:29 AM
Jdforrester-WMF assigned this task to Physikerwelt.
Jdforrester-WMF set the point value for this task to 1.

OK, I think this is now fixed. Thanks, @Physikerwelt!

Restricted Application added subscribers: Luke081515, TerraCodes, Urbanecm. · View Herald TranscriptMay 9 2016, 12:14 PM

Should this still be happening on ptwiki? See

Does that page show with 'UNIQ's to you? Where? (They don't for me.)

He7d3r added a comment.EditedMay 15 2016, 1:35 AM

This is what I see on ptwiki, with MathML enabled at Special:preferences#mw-prefsection-rendering:

Na matemática, o axioma da escolha é um axioma da teoria dos conjuntos equivalente à afirmação "o produto de uma coleção não-vazia de conjuntos é não-vazio". Mais explicitamente, diz que para toda família indexada '"UNIQ--postMath-00000001-QINU"' de conjuntos não-vazios existe uma família indexada '"UNIQ--postMath-00000002-QINU"' de elementos tal que '"UNIQ--postMath-00000003-QINU"' para todo '"UNIQ--postMath-00000004-QINU"' Foi formulado em 1904 por Ernst Zermelo.[1] Até o início do século XX era um axioma controverso, mas graças ao trabalho de Zermelo, Hilbert[carece de fontes] e outros matemáticos, o axioma da escolha foi satisfatoriamente modelado em lógica simbólica, resultando na teoria de conjuntos padrão da matemática contemporânea, a teoria ZFC - Zermelo-Fraenkel-Choice.

It does not happen at Benutzer:Physikerwelt/sandbox1 (but I'm not logged in)

mh. I get the impression that a wrong command in the {{cite template kills the whole rendering process. So that the postMath hook is never called.

See my workaround for that particular page

However, in general this can not be a solution.

Physikerwelt reopened this task as Open.May 15 2016, 4:41 AM
Physikerwelt removed Physikerwelt as the assignee of this task.May 15 2016, 4:43 AM

Same problem on

O princípio da não-contradição é representado do seguinte modo:
Exemplo: Não ("a bola é redonda" e "a bola não é redonda")

Physikerwelt added a comment.EditedMay 28 2016, 9:19 PM

This problem does not seem to be related to math. I think it's about the {{Citation needed}} template (uppercase) template in ptwiki. Since I do no speek portuges I am not able to help there.

He7d3r added a comment.EditedMay 29 2016, 2:11 AM

Minimal test case:

<math>B</math>{{Citation needed|date=April 2009}}ágina_de_testes/1?action=edit&oldid=45739340&preview=yes&uselang=en

Physikerwelt added a comment.EditedMay 29 2016, 6:28 AM

I used the special page expand templates and pasted the result to
which looks good.

He7d3r added a comment.EditedMay 29 2016, 11:55 AM

Looks like the problem does not happen on special pages. E.g. I copied the example above to MediaWiki:Intentionallyblankpage and loaded Special:BlankPage. The bug appeared on the MediaWiki namespace, but didn't happen on the Special namespace.

Here is another test case, which does not use "Template:Carece de fontes" to call the code which depends on the namespace:

<math>B</math>{{Manutenção/Categorizando por assunto|que carecem de notas de rodapé|data=April 2009}}ágina_de_testes/1?oldid=45741658&action=edit&preview=yes&uselang=en
and finally:

<math>B</math>{{#invoke:datas|ISO_8601|April 2009}}ágina_de_testes/1?oldid=45741679&action=edit&preview=yes&uselang=en

Notice that if we change the order of <math> and {{#invoke:, the math is displayed correctly:

{{#invoke:datas|ISO_8601|April 2009}}<math>B</math>

Aklapper lowered the priority of this task from Unbreak Now! to High.May 31 2016, 1:14 PM

Lowering priority as this seems to affect pt.wikipedia only and might be some local issue.

Izno moved this task from Unsorted backlog to Defect backlog on the Cite board.Aug 22 2016, 3:53 PM

@Krinkle @Izno I'm happy to provide information what happens within the math extension, but I will not look into the cite extension code to figure out at which point the strip markers get lost.

Here is another example where I was able to get rid of the UNIQ markers by changing {{Refimprove|date=September 2009}} to {{Sem-fontes|data=dezembro de 2016}}:

This is happening consistently on test2 right now.

Problem on en:Wikiversity gotten around by changing "cite web" to "cite book" or by changing "|month=July |year=2016" to "|date=July 2016", e.g.