Math display error.

Jump to: navigation, search

Hi, I get the error message "Failed to parse (PNG conversion failed; check for correct installation of latex and dvipng (or dvips + gs + convert)): x+y=2" when trying to display any math formula.

MediaWiki 1.17 PHP 5.36 SQLite (tried using mysql but it was not listed during installation). In case it matters, running OS X Snow Leopard.

The program texvc actually seems to work -- ran from command line and it generated the png. Not sure what to try now. Any help appreciated. Thanks.

98.209.31.3808:10, 27 June 2011

Could be a permissions error, check the user apache runs as has permission to create necessary files and execute texvc. When trying to run texvc from command line, make sure you're using the same command as mediawiki uses and its saving the file in the same folder as mediawiki would (You can get the command actually used from the debug log)

Bawolff19:21, 27 June 2011

Thanks, I think I have a much better idea what's going on. However I'm still getting the "failure to parse" error. At first I had set owner to _www and I couldn't, with my user, get texvc to make the png. I made a new tmp with me as the owner and then I was able to produce the png. I chmoded tmp to 777. What permissions/who needs to own tmp in order for it to work? If it worked, would there be a png left in the tmp folder? Thanks again.

67.194.85.11801:02, 28 June 2011

Which user your web server runs as varries depending on OS. Debian and Unbuntu generally uses www-data as the user (but no matter what user, 777 gives everything, so if it still doesn't work after that, there's something other then permissions wrong). Also be careful which temp folder. Generally MediaWiki uses images/tmp and images/math I think. Usually it puts the intermediate tex files in images/tmp and then puts the png in images/math.

Bawolff02:58, 28 June 2011

Yeah, that's what I figured about permissions. I'm looking at the debug log file but to be honest there does not seem to be much info there. I can see the command that it's using (which I can run just fine from command line) but I don't see anything like the error message I get. I feel like I'm so close. I have all the necessary programs installed. Texvc runs fine from command line and I have permissions set to 777 temporarily. If anyone has dealt with this error on a mac I could really use the help.

98.209.31.3804:50, 28 June 2011

Ok...found the solution finally. The solution was to specify the absolute path to the different programs in the file render.ml. I have no idea why there would be a problem as they were originally since the user _www had access to those commands in its Path, but I'm glad I got it to work. Thanks.

98.209.31.3817:07, 28 June 2011

i'm having the very same problem, what exactly do i need to do?

68.99.69.10716:03, 10 May 2012
 
 
 
 
 
 
Personal tools

Variants
Actions
Navigation
Support
Download
Development
Communication
Toolbox