Cannot edit formulas and text by Wiris editor

Cannot edit formulas and text by Wiris editor

by Marcello Bettoni -
Number of replies: 5

Hi.

I have just installed Wiris Editor and Cas in my Moodle 1.7.9

The Cas is ok, however i cannot edit the image of the html editor with formulas and text.

When i click on

wiris-formula.gif
, it shows the java editor windows, but the outcome is

bc812363ad235609dc72fc67b884af40.png

Hypotheses?

Thanks for help

Average of ratings: -
In reply to Marcello Bettoni

Re: Cannot edit formulas and text by Wiris editor

by Ramon Eixarch -
Marcello,

your server might be behind a firewall or may have restrictions for Internet connexions. The formula image is generated in wiris.com server.

If the images in the test page appear ( ../moodle/plginwiris/test.php ) then the problem might be different.

If you send the moodle url we can give more advice.
In reply to Ramon Eixarch

Re: Cannot edit formulas and text by Wiris editor

by Marcello Bettoni -

Hi Ramon,

this is the test page

Info

Plugin version: wirisversion; ?>
Moodle charset:
Database charset (according moodle):
We will send alpha character to database... You should see it in both cases!
rawtext = $testchar; $wrscache->timemodified = time(); $wrscache->filter = 'wiris'; $wrscache->version = 1; $wrscache->md5key = $md5; insert_record("cache_filters", $wrscache, false); $wrscache = get_record("cache_filters","filter","wiris", "md5key", $md5 ); $testchar = $wrscache->rawtext; delete_records("cache_filters","filter","wiris", "md5key", $md5); print "After passing through the database (" . strlen($testchar) . " bytes) hex: " . bin2hex($testchar) . ", char: " . $testchar; ?>

Test 1: testing tilde

Test 2: testing tilde in forms

">

Test 3: testing a simple image (1+2)

Test 4: testing a hard image (setN symbol)

Test 5: testing getting wiris cache

posted $wrscache = get_record("cache_filters","filter","wiris", "md5key", $md5[1]); // Finally, php search in database the same md5. If exists in database, it doesn't create the image, only it reloads the saved image. print "Raw text from database (parsed): " . $wrscache->rawtext . "
\n"; print "md5: " . $wrscache->md5key . "
\n"; print "Image: %22%20.%20$wrscache-%3Emd5key%20.%20%22.png\n"; ?>

Test 6: testing creating image

Nothing else.

What url would u need to check it better?

Ty

In reply to Marcello Bettoni

Re: Cannot edit formulas and text by Wiris editor

by Ramon Eixarch -
We need to have a look at your server (if possible) to better understand the possible problem. we checked www.cyberscuola.it but we don't see the plugin installed there.

The usual problem is that your server may have some kind of firewall that prevents it to connect to an Internet server. The images are created at our server in www.wiris.com and your server needs to connect with our server.

Ramon
In reply to Ramon Eixarch

Re: Cannot edit formulas and text by Wiris editor

by Marcello Bettoni -

The server is www.eda.lombardia.it/corsi

                 TY

In reply to Marcello Bettoni

Re: Cannot edit formulas and text by Wiris editor

by Juan Lao Tebar -
Hi, I'm Juan Lao Tebar, responsable of Plugin WIRIS development.

I have seen your server configuration and I think that the problem resides on apache or php configuration.

In test.php I see:
We will send alpha character to database... You should see it in both cases!
Original (2 bytes), hex: ceb1, char: α
After passing through the database (2 bytes) hex: ceb1, char: α

"char α" << here is the problem. You should see "α" character.

Plugin WIRIS uses UTF-8 encoding for display special mathematical characters, but your server cannot display it (is wrong configured).

The solution is modify apache configuration:
  • Open httpd.conf, apache2.conf, apache.conf... of your server.
  • Search line "AddDefaultCharset [...]", where "[...]" can be anything.
  • Write "#" before this line, as this: "#AddDefaultCharset [...]".
  • Save the file and restart your apache server.
If this doesn't solve the problem, follow these steps:
  • Open php.ini... of your server.
  • Search line "default_charset = [...]", where "[...]" can be anything.
  • Write "#" before this line, as this: "#default_charset = [...]".
  • Save the file and restart yout apache server.

For any problem, please, report it.

Thanks for use Plugin WIRIS.
Juan Lao Tebar.