Page MenuHomePhabricator

Local-only setup buggy?
Closed, ResolvedPublic

Description

Im running a wiki that is there since like 2005. Obviously there were quite a few changes to the math extension.

A few years ago we noticed, that since some update every formula was rendered at/linked to/loaded from wikimedia.org. Therefore we setup our own mathoid service and were under the impression that it was all thats needed for a fully self-sustained local-only wiki-setup. At least the users should never access anything but our domain(s), its ok-if-must-be that the server does calls to servers we dont run.

Now we noticed this is not the case (anymore?) and rendered math formulas are loaded from wikimedia.org.

Is there a way to prevent the formulas to be loaded externally?
Like before all the mathoid and restbase stuff, where rendered math formulas were stored in the images-dir/math and served locally?

As in: We want a fully self-sustained local setup without external dependencies and this extension seems to be breaking it and it worked like 10 years ago.

Event Timeline

Yes, there are at least 3 options. 1) use mathoid via cli 2) setup your own restbase instance 3) use experimental native rendering (which just converts from LaTeX to mathml with PHP code)

1 is recommended https://www.mediawiki.org/wiki/Extension:Math#Mathoid's_CLI_interface
3 is still actively being developed and will become the default in the future.

If you would have waited one year longer you would have missed the whole rise and fall of the microservice mathoid:-)

Besides there is LaTeXML, which requires setting up the LaTeXML rendering service.

As ugly as it is to have nodejs installed on this box, it actually solves the issue. Thanks! :)

Please document that on the extension's page so that its more obvious that the cli approach is what people really want for local wikis.
(so they dont waste many evenings on getting mathoid up, just to not be told that restbase is needed too and since mathoid was a huge pain already, i would expect restbase to be even worse)

Also is there anything relevant in the config.yaml for the cli?

Physikerwelt claimed this task.

The documentation needs improvement, but it is very unlikely that any volunteer will add documentation, so this is a problem by design.
One can configure things, but I recommend not going into this unless something does not function correctly.
If anything else is broken, please create a new ticket. Thank you.