A mimetex problem

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
testnzn
Posts: 3
Joined: Sun Dec 18, 2005 2:30 pm

A mimetex problem

Post by testnzn »

Hi,

I'm trying to connect phpmyfaq and a mimetex script. Unfortunately, it is not coming off. I've compiled a mimetex script in a directory where phpmyfaq is (faq/cgi-bin). Everything is working fine after running the mimetex script without phpmyfaq (iy.html ),but when a tag from the file iy.html (that is <img src="/faq/cgi-bin/mimetex.cgi?x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}">) is used, writing a new post in phpmyfaq results in a following error

Do I need to modify some files in phpmyfaq? Can you give me some advice?

Thank you in advance
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

I do not see an error. Do you have a screenshot?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
testnzn
Posts: 3
Joined: Sun Dec 18, 2005 2:30 pm

Post by testnzn »

I'm using mimetex. If we include e.g. <img src="/faq/cgi-bin/mimetex.cgi?x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}"> in the page code, we'll get a mathematical expression as a result. The problem is that when I'm adding a new entry in phpmyfaq and trying to add <img=...> mentioned above, I don't get any mathematical equation at all or I get it written in an illegible way. The problem is that there should be B instead of A.
I think the processing in my phpmyfaq is wrong.
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

got an mathematical expression with Firefox 1.5.

Maybe one regex destroys the formula... I'll look at this issue.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Missing of backslashes

Post by matteo »

testnzn wrote:The problem is that when I'm adding a new entry in phpmyfaq and trying to add <img=...> mentioned above, I don't get any mathematical equation at all or I get it written in an illegible way.
I've just tested your IMG html tag using:

Code: Select all

<img src="http://test.nzn.pl/faq/cgi-bin/mimetex.cgi?x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}" />
both in PMF 1.5.4 and PMF 1.5.5 (the upcoming release): it works in both cases.
I suspect that within your server PMF breaks the backslashes, i.e.:
1. http://test.nzn.pl/faq/cgi-bin/mimetex. ... -4ac}}{2a} <- OK
2. http://test.nzn.pl/faq/cgi-bin/mimetex. ... -4ac}}{2a} <- KO, equal to the screeshot provided.

Could you post your PHP setting about magic quotes?

Code: Select all

magic_quotes_gpc = Off
magic_quotes_runtime = Off
magic_quotes_sybase = Off
A quick fix (waiting to close the investigation about your issue) would be to use something like phpMyAdmin to fix the faq content data directly into the table faqdata, column content, if the WYSIWYG PMF editor breaks it
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
testnzn
Posts: 3
Joined: Sun Dec 18, 2005 2:30 pm

Post by testnzn »

Thank you very much. :D I forgot to answer. The problem was a misinterpreted data by the server. It cut an expression in url.
Post Reply