Topic on Project:Support desk

Please help me get Tex working!?

6
72.224.62.198 (talkcontribs)

I've gone through all the instructions over and over and nothing seems to be working with Tex. I've added these lines into LocalSettings.php:

all the sub-programs run just fine from the command line, latex, convert, gs, dvips, no problem. if I run the command:

  texvc /var/wiki/images/tmp /var/wiki/images/math "y=x+2"

I get an image in the /var/wiki/images/math directory, as I expect.

I added these lines to the LocalSettings.php file: $IP = '/var/wiki'; require_once( "$IP/extensions/Math/Math.php" ); $wgUseTex = true; $wgTexvc = '/usr/bin/texvc'; $wgMathDisableTexFilter = true; $wgMathCheckFiles = true; $wgUploadPath = "/var/wiki/images"; $wgUploadDirectory = "/var/wiki/images"; $wgMathPath = "{$wgUploadPath}/math"; $wgMathDirectory = "{$wgUploadDirectory}/math"; $wgTmpDirectory = "{$wgUploadDirectory}/tmp";

I went into the wiki/maintenance directory and did 'php update.php' and no errors. Then I restarted apache.

However, if I go to the page: wiki/index.php?title=Special:Version on the wiki, it shows that the Math extension is NOT installed. No error message, nothing, it just doesn't see it, apparently.

I also notice I do not have a file /wiki/includes/Math.php...

and anything between tags is just ignored, not parsed into math images by the wiki.

So... What am I doing wrong? How do I enable the Tex / math extension here? I'm pulling my hair out!

AKlapper (WMF) (talkcontribs)

To make sure we talk about the same thing, could you link to the "instructions" you refer to?

72.224.62.198 (talkcontribs)

Here are the pages I have examined in effort to get the Tex / Math extension working:

http://www.mediawiki.org/wiki/Manual:Math

http://www.mediawiki.org/wiki/Extension:Math

http://www.mediawiki.org/wiki/Manual:Enable_TeX

http://www.mediawiki.org/wiki/Manual:Troubleshooting_math_display_errors

http://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_Debian_GNU/Linux#TeX_Support

http://www.mediawiki.org/wiki/Manual:Update.php

http://meta.wikimedia.org/wiki/Help:Displaying_a_formula

http://meta.wikimedia.org/wiki/Texvc

myDomainName.com/wiki/index.php?title=Special:Version

http://zarjay.net/2008/03/07/how-to-get-math-support-in-mediawiki/

http://kb.siteground.com/how_to_enable_math_support_in_my_mediawiki_application/

http://www.siteground.com/tutorials/mediawiki/mediawiki_math.htm

http://www.mediawiki.org/wiki/Extension:Configure

Specifically, I'm running version 1.20 so I downloaded the extension from here:

http://www.mediawiki.org/wiki/Special:ExtensionDistributor?extdist_extension=Math&extdist_version=REL1_20&extdist_submit=Continue

But that was only after I had also installed OCaml and used Git to try installing the extension directly, with texvccheck, as per the instructions here:

http://www.mediawiki.org/wiki/Extension:Math

which built fine, but still did nothing towards actually enabling the extension. As I said, I can generate images from the command-line directly into /var/wiki/images/math as a target dir, so the back-end LaTeX stuff on the server seems to be fine.

I found there are two directories, /etc/mediawiki-extensions/extensions-enabled, and /etc/mediawiki-extensions/extensions-available. The only thing inside of /etc/mediawiki-extensions/extensions-enabled was wikidiff2.php, as a symbolic link to the wikidiff.php file in /etc/mediawiki-extensions/extensions-available. So I added another symbolic link there for Math.php. This had no effect. How does the wiki server normally move extensions from "available" to "enabled", and how can I get some feedback from that process to see why Math.php is not enabled?

I found a type above, my line

$wgUseTex = true;

should have been

$wgUseTeX = true;

With a capital X at the end there on $wgUseTeX, but that also made no difference, still not enabled. Ok. So I go searching for error messages on the server. I found that if you include:

$wgDebugLogFile = "/var/log/wiki.log";

in LocalSettings.php, you can get some info in the logs. So I find that when I do 'php update.php' from within the maintenance/ folder, I see this in the error logs:

..> Start command line script update.php

..> CACHES: EmptyBagOStuff[main] SqlBagOStuff[message] SqlBagOStuff[parser]

..> LocalisationCache: using store LCStore_Null

..> Fully initialised

..> Connecting to localhost my_wiki...

..> Profiler::instance called with bogus $wgProfiler setting, falling back to ProfilerStub for safety

..> Connected to localhost my_wiki.

..> DatabaseBase::query: Writes done: UPDATE `page` SET page_random = RAND() WHERE page_random = 0

..> SQL ERROR (ignored): Table 'my_wiki.profiling' doesn't exist (localhost)

..> Class ConvertUserOptions not found; skipped loading


That's all I have so far. I was about to go digging into:

http://www.mediawiki.org/wiki/Extension:Configure

unless you have some better advice... It doesn't look like 'Math' or 'Tex' are supported extensions for the "configure" tool, but I thought it might give me some more info at least...

72.224.62.198 (talkcontribs)

Hmmmmmm, some more interesting stuff going on with our server. I tried adding the FootNote extension, just to see if I could get ANY extension working. So I add the line:

require_once( "$IP/extensions/Footnote/Footnote.php" );

and do 'php5 update.php',

but this time update.php gives no response, nothing shows up in the /var/log/wiki.log either. The Footnote extension is not enabled. Hmmm seems that our wiki server is somehow crippled for extensions. I may need to just reinstall the whole thing. How can I do this without losing all the current content? Or maybe there is another option to troubleshoot this issue? Please help?

Mfort123 (talkcontribs)

Did you ever find a solution to this? I have the exact same problem. I'm running fedora 20. I keep getting "unknown error". I have followed every step. I have given up.

Ciencia Al Poder (talkcontribs)

Mfort123, please create a NEW post for this. You say you have the exact same problem, but the original poster didn't mention unknown error

Reply to "Please help me get Tex working!?"