Last modified: 2014-02-08 16:34:58 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 8625 - Permissions issues with texvc
Permissions issues with texvc
Product: MediaWiki extensions
Classification: Unclassified
Math (Other open bugs)
Macintosh Mac OS X 10.4
: Low normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-need-review
Depends on:
  Show dependency treegraph
Reported: 2007-01-14 04:40 UTC by kelvSYC
Modified: 2014-02-08 16:34 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---

Patch for let the user set the environment of the wfShellExec call (1.47 KB, patch)
2012-08-21 18:30 UTC, Balazs Varga

Description kelvSYC 2007-01-14 04:40:41 UTC
I have a weird problem with texvc:

texvc is failing on PHP with
Failed to parse (PNG conversion failed; check for correct installation of latex,
dvips, gs, and convert): 0

The debug output gives us
TeX: ./math/texvc '/mediawiki/images/tmp' '/mediawiki/images/tmp' '0' 'UTF-8'
TeX output:
 Ccfcd208495d565ef66e7dff9f98764da0 <mn>0</mn>-

However, texvc works fine on the command line.  The same command above gives me
./math/texvc /mediawiki/images/tmp /mediawiki/images/tmp "0" utf-8

So I thought that it may be a permissions issue, but here's what I have:
drwxrwxrwx     5 kelvSYC  admin     170 Jan 13 20:59 images

and inside:
drwxrwxrwx   3 kelvSYC  admin  102 Jan 13 21:27 math
drwxrwxrwx   3 kelvSYC  admin  102 Jan 13 21:39 tmp

I'm kind of stumped as to why texvc would not be working, considering the
webserver has access...
Comment 1 kelvSYC 2007-01-14 05:32:35 UTC
After a little bit of searching (and not knowing much about the language texvc
is in), I determined that this is from

      | _ -> print_string "-"


How can get this error is beyond me, but the temporary .tex file
Comment 2 Balazs Varga 2012-08-21 18:29:21 UTC
I'm facing this problem on a gentoo server. For me, the problem was the environment was empty in the php so the latex shell commands had no effect because they don't call commands from /usr/bin (in my case). The binaries weren't on the PATH :) (it was no PATH set)

I made a patch which enables to the user to set the environment of the wfShellExec call from LocalSettings.php

Any comments are appreciated.

Comment 3 Balazs Varga 2012-08-21 18:30:33 UTC
Created attachment 10991 [details]
Patch for let the user set the environment of the wfShellExec call
Comment 4 Sumana Harihareswara 2012-08-22 20:55:01 UTC
Thank you for the patch, Balazs!  It will get reviewed faster if you put it directly in our source control system via .

I'll try to get a reviewer, though. Thanks again.

Note You need to log in before you can comment on or make changes to this bug.