Thread:Project:Support desk/Please help me get Tex working!?/reply (2)

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...