Topic on Project:Support desk

Help with math rendering

7
Ag3dvr (talkcontribs)

I have a wiki page where the maths rendered perfectly until recently. Now, without any change on my part (either to the wiki text or to LocalSettings.php), it does not.

http://wiki.glennersterlab.com/index.php/Main_Page

For example:

http://wiki.glennersterlab.com/index.php/Notation

now has unrendered text (as I originally inputted it), like:

\( \begin{equation} \vec{r} = \begin{bmatrix} r_{1} \\ r_{2} \\ \vdots \\ r_{n} \end{bmatrix} \end{equation} \)

and I have put a png on the page to show how this used to render.

https://www.mathjax.org/#demo renders the text fine.

Can you tell me what needs to be done to get this to render properly? I have asked my web hosting provider but they have not been able to solve the problem.

MediaWiki 1.25.2

PHP 5.6.33 (litespeed)

MariaDB 10.1.30-MariaDB

The problem occurs on Chrome and Safari on a Mac and on an iPhone. I assume it applies to all browsers.

I am not a programmer, but relevant-looking lines in LocalSettings.php include the following (and there have been no changes in LocalSettings.php since it was working fine):

require_once "$IP/extensions/Math/Math.php";

$wgUseTeX = true;

$wgMathPath = "{$wgUploadPath}/math";

$wgMathDirectory = "{$wgUploadDirectory}/math";

$wgTmpDirectory = "{$wgUploadDirectory}/tmp";

require_once "$IP/extensions/MathJax/MathJax.php";

$wgParserCacheType = CACHE_NONE;

require_once "$IP/extensions/SimpleMathJax/SimpleMathJax.php";

$wgSimpleMathJaxSize = 120;

wfLoadExtension( 'Math' );

2A02:C7F:963F:BA00:4C5F:68F5:DDC5:BCED (talkcontribs)

Please upgrade your MediaWiki version first before getting help.

Bawolff (talkcontribs)

In addition to updated, I'd also mention, You also seem to have 3 different math extensions being loaded, and the Math extension being loaded in 2 different ways. Probably they are stepping over each other and breaking each other.

You should probably check the javascript console for errors in your web browser.

Ag3dvr (talkcontribs)

My web hosting provider has done that now:

Product Version
MediaWiki 1.30.0
PHP 5.6.33 (litespeed)
MariaDB 10.1.30-MariaDB
ICU 4.2.1

... with the result that there are now a lot of red error messages on the wiki (e.g.http://wiki.glennersterlab.com/index.php/Notation). The messages say: Failed to parse (Missing texvc executable); please see math/README to configure.). but I gather that This feature was removed from MediaWiki core in version 1.18.0 and there is no $wgTexvc in my LocalSettings.php. The extensions installed include:

Math 3.0.0 (ba08a3a)04:38, 1 February 2017

and

SimpleMathJax 0.7.1

Thanks for your help.

Ag3dvr (talkcontribs)

Thank you Bawollf. The javascript console does show useful errors.

JQMIGRATE: Migrate is installed with logging active, version 3.0.1-pre

/extensions/SimpleMathJax/modules/MathJax/MathJax.js?config=TeX-AMS-MML_CHTML&_=1524499368186 Failed to load resource: the server responded with a status of 404 (Not Found)

Notation:1 Uncaught SyntaxError: Unexpected token <

at DOMEval (load.php:1)

at Function.globalEval (load.php:4)

at text script (load.php:130)

at ajaxConvert (load.php:120)

at done (load.php:125)

at XMLHttpRequest.<anonymous> (load.php:129)

I then commented out SimpleMathJax from LocalSettings.php and this seems to get rid of the errors in the javascript console but the wiki looks the same (same red error messages). I am no expert, as you can tell. I may have to move providers to get more help. I have now commented out all math lines except wfLoadExtension( 'Math' ); but with no effect. This math extension remains:

3.0.0 (ba08a3a)04:38, 1 February 2017

Thanks again.

Ciencia Al Poder (talkcontribs)
Ag3dvr (talkcontribs)

You are right. That folder (SimpleMathJax/modules/MathJax/) is empty. I will talk to my provider and see if they can install SimpleMathJax properly. Thank you for your help. It is still odd that math on the wiki worked fine before and it broke without me touching anything. Anyway, thank you, I am very grateful for your help.

Reply to "Help with math rendering"