Backslash removed

Backslash removed

by Lindsay Magnus -
Number of replies: 2
This is a new problem that never seamed to happen before. I am guessing it happened at an upgrade, but I'm not sure where.

When I code a latex equation, the backslashes are removed from the code before it is passed to the tex filter, the result is that in stead of having $$x = \int x dx $$ I get $$x = int x dx$$

I am guessing this is a problem with php.

I am using moodle 1.8.1+ on a debian system with php version 5.2.0-8+etch7

Thanx
Lindsay
Average of ratings: -
In reply to Lindsay Magnus

Re: Backslash removed

by Tommaso Minerva -
Hi,
I'm having the same problem after an upgrade.

Php 5.2, Moodle 1.8.4+

Thanks,
Tommaso
In reply to Tommaso Minerva

Re: Backslash removed

by Lindsay Magnus -
Hi Tommaso

So ... This is how I solved the problem

  1. I downloaded and installed the mathtran filter module
  2. I went to Admin->Modules->Filters->Manage Filters and deactivated the TeX filter and made sure the mathtran and Algebra Notation filters were activated
  3. You then need to go to the php.ini file on your moodle server, check that the magic_quotes_gpc in on and magic_quotes_runtime and magic_quotes_sybase are off.
  4. Restart your apache server
This fixed my problems ... hope it works for you.
Cheers
Lindsay