Education » Computer Science » Open Source Projects

ID #1050

Failed to parse (Can't write to or create math temp directory) when enabling math on MediaWiki, what is the problem?

This is related to another error How to resolve this problem: Failed to parse (PNG conversion failed; check for correct installation of latex, dvips, gs, and convert) in MediaWiki when I try to enable math?

 


First, make sure you have two folders, each with permission 777:images/math and /images/tmp

 

If they do exist and have the correct permission, then check if any png file is generated under /images/math, if not, see the above problem for another error. Or, it is because of the two variables that are incorrectly set in LocalSettings.php. ---> for me this is the problem.

Look at the following vars:

$wgUploadPath = "";
$wgUploadDirectory = "";

The first one will be used for accesing the png online, in my case, my site uses redirection, so the images are not located, hence I used the absolute path for the first one, e.g., $wgUploadPath = "http://wujiewen.com/wikinotes/images". If you are to use a local path, be sure to include a slash before the folder name! e.g., /image

The second one however does not need the slash before it!

Tags: latex, math, mediawiki, parse

Related entries:

Last update: 2009-09-29 16:59
Author: Admin
Revision: 1.1

Digg it! Share on Facebook Print this record Send FAQ to a friend Show this as PDF file
Propose a translation for Propose a translation for
Please rate this FAQ:

Average rating: 0 (0 Votes)

completely useless 1 2 3 4 5 most valuable

You can comment this FAQ