Tex Filter in 2.2 not rendering equations but it does in 2.1

Tex Filter in 2.2 not rendering equations but it does in 2.1

by Sam Mudle -
Number of replies: 3

Ok, I just installed a copy of 2.2 and turned on the Tex filter.

Debug gives me this:

h: /home/hscomp/public_html/filter/tex/mimetex.linux:Permission denied

The shell command "/home/hscomp/public_html/filter/tex/mimetex.linux" -e "/home/hscomp/moodledata_spring12/filter/tex/9608176195573c30c6beb3cf078fdf66.gif" -- '\Large f(x)=\int_{-\infty}^x~e^{-t^2}dt' returned status = 126

File size of mimetex executable /home/hscomp/public_html/filter/tex/mimetex.linux is 830675
The file permissions are: 100644

Now this works just fine with Moodle 2.1.  What changed with the Tex filter between moodle 2.1 and 2.2?

Thanks!

Average of ratings: -
In reply to Sam Mudle

Re: Tex Filter in 2.2 not rendering equations but it does in 2.1

by Mauno Korpelainen -

Your debug info says: The file permissions are: 100644

644 means that file mimetex.linux has no permission to EXECUTE - it is an executable file so try permission 755 wink

Instead of mimetex you might also want to install / use local distribution of latex (TexLive) with ImageMagick or GhostScript etc (if your previous site used them)

In reply to Mauno Korpelainen

Re: Tex Filter in 2.2 not rendering equations but it does in 2.1

by Sam Mudle -

Thanks Mauno for the quick reply. I will see if my host can do that, but I'm still curious about what happened.  How is it that my  moodle 2.1 and moodle 2.2 have the exact same filter settings, yet 2.2 requires different permissions?

Ah I see what happened, when i uploaded the moodle.zip to install on my host, it extracted everything as 644.  I had to set that file as 755.

It works fine now!  Thanks! smile

In reply to Mauno Korpelainen

Re: Tex Filter in 2.2 not rendering equations but it does in 2.1

by Jeff Kitterman -

Mauno,

I have problem's rendering too. However, permissions are 755 as shown in debugging. How can I approach solving this?

sh: /var/www/moodle/filter/tex/mimetex.linux: not found
The shell command
"/var/www/moodle/filter/tex/mimetex.linux" -e "/var/moodledata/filter/tex/9608176195573c30c6beb3cf078fdf66.gif" -- '\Large f(x)=\int_{-\infty}^x~e^{-t^2}dt'
returned status = 127
File size of mimetex executable /var/www/moodle/filter/tex/mimetex.linux is 830675
The file permissions are: 100755
The md5 checksum of the file is 56bcc40de905ce92ebd7b083c76e019e
Image not found!

Many thanks,

Jeff