Page MenuHomePhabricator

MathRestbaseInterface.php: "TeX input is invalid" error
Closed, ResolvedPublic

Description

The following error is visible on the Special:MathStatus page:

[WqJ3l9cgOeeep3zNGdYeUAAAAAc] /iacc/index.php/Special:MathStatus MWException from line 91 of /var/www/html/iacc/extensions/Math/MathRestbaseInterface.php: TeX input is invalid.

Backtrace:

#0 /var/www/html/iacc/extensions/Math/MathRestbaseInterface.php(382): MathRestbaseInterface->calculateHash()
#1 /var/www/html/iacc/extensions/Math/MathRestbaseInterface.php(82): MathRestbaseInterface->getContentRequest(string)
#2 /var/www/html/iacc/extensions/Math/MathRestbaseInterface.php(211): MathRestbaseInterface->getContent(string)
#3 /var/www/html/iacc/extensions/Math/MathRenderer.php(654): MathRestbaseInterface->getSvg()
#4 /var/www/html/iacc/extensions/Math/MathMathML.php(345): MathRenderer->getSvg()
#5 /var/www/html/iacc/extensions/Math/MathMathML.php(386): MathMathML->correctSvgStyle(NULL)
#6 /var/www/html/iacc/extensions/Math/MathMathML.php(458): MathMathML->getFallbackImage()
#7 /var/www/html/iacc/extensions/Math/SpecialMathStatus.php(70): MathMathML->getHtmlOutput()
#8 /var/www/html/iacc/extensions/Math/SpecialMathStatus.php(52): SpecialMathStatus->testSpecialCaseText()
#9 /var/www/html/iacc/extensions/Math/SpecialMathStatus.php(42): SpecialMathStatus->runMathMLTest(string)
#10 /var/www/html/iacc/includes/specialpage/SpecialPage.php(479): SpecialMathStatus->execute(NULL)
#11 /var/www/html/iacc/includes/specialpage/SpecialPageFactory.php(577): SpecialPage->run(NULL)
#12 /var/www/html/iacc/includes/MediaWiki.php(282): SpecialPageFactory::executePath(Title, RequestContext)
#13 /var/www/html/iacc/includes/MediaWiki.php(735): MediaWiki->performRequest()
#14 /var/www/html/iacc/includes/MediaWiki.php(509): MediaWiki->main()
#15 /var/www/html/iacc/index.php(43): MediaWiki->run()
#16 {main}

The mediawiki version is 1.27.4
The Math extension version is 1.27

The reason we are trying to install the extension is because the following is not rendering properly now:

<math>YearlyConsumptionkWh + ContractedPowerInjection \times ConversionFactor</math>

It currently outputs as:

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://api.formulasearchengine.com/v1/":): {\displaystyle YearlyConsumptionkWh + ContractedPowerInjection \times ConversionFactor}

Event Timeline

Kelaun created this task.Mar 9 2018, 12:10 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMar 9 2018, 12:10 PM
Aklapper renamed this task from Error in Math extension to MathRestbaseInterface.php: "TeX input is invalid" error.Mar 9 2018, 1:17 PM
Physikerwelt closed this task as Resolved.Mar 9 2018, 3:57 PM
Physikerwelt claimed this task.
Physikerwelt added a subscriber: Physikerwelt.

@Kelaun I have restarted api.formulasearchengine.com . It was crashed, but your input should render now. Can you update to the latest version of core and the math extension as described here T188745?

Please reopen the issue if the problem remains.