Topic on Project:Support desk

Jump to: navigation, search (talkcontribs)

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.

Bawolff (talkcontribs)

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) (talkcontribs)

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.

Bawolff (talkcontribs)

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. (talkcontribs)

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. (talkcontribs)

Ok...found the solution finally. The solution was to specify the absolute path to the different programs in the file 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. (talkcontribs)

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

2A01:E35:8AAE:8A60:B0C3:7F08:1453:65A9 (talkcontribs)

Having the same problem ? Any solution ?

MarkAHershberger (talkcontribs)

If you have read the thread and are not able to solve your problem, it is best if you start a new thread.

Reply to "[RESOLVED] Math display error."