Error restoring backup ...

Error restoring backup ...

by Hamilton Lima -
Number of replies: 4
Hi,
I'm usiing moodle 1.3.3
and having the following error restoring backups:
XML error: not well-formed (invalid token) at line 4923

removing the the following line from the xml file, makes the restore works
but I didn't find waht is wrong with that line....sad

Anybody can take a look on this line, the xml piece is attached
the 4923 line is the next line to ALLTEXT tag
Thanks

Average of ratings: -
In reply to Hamilton Lima

Re: Error restoring backup ...

by Hamilton Lima -
I found at column 2979 one char 08 ... probably generated when I try to enter the folder address of one program (the data is about mysql setup)
using c: (back-slash) mysql (back-slash) bin
today I'm using & # 92 ; to put back slashes ...
Is this a bug of the HTML editor ?

Thanks

In reply to Hamilton Lima

Re: Error restoring backup ...

by Eloy Lafuente (stronk7) -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Peer reviewers Picture of Plugin developers Picture of Testers
Hi Hamilton,

some similar issues have been posted here in the past:

http://moodle.org/mod/forum/discuss.php?d=8304

The root cause of them was the inclusion of some "strange" chars in different parts of the course. Such chars (or combination of them) can be converted to UTF-8 correctly by the backup so they cannot be converted from UTF-8 by the restore.

So, I think that you'll have to edit that text and avoid such chars...

Ciao smile
In reply to Eloy Lafuente (stronk7)

Re: Error restoring backup ...

by Hamilton Lima -
Eloy, thanks for the response,
But I believe that the point is not exactly avoid the characters ...

I can go in the HTML source and edit the char that I need, but I'm worry about some teachers that don't know html, and need for example to put in the doc the path of some file,

take a look at this example :

1. the user input
input.gif

2. the result on the browser
show.gif

3. editing the html
edit.gif

As you can see the back slashes went away ... is this a html editor problem, or I 'm doing something wrong ?

regards

In reply to Hamilton Lima

Re: Error restoring backup ...

by Eloy Lafuente (stronk7) -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Peer reviewers Picture of Plugin developers Picture of Testers
Hi Hamilton,

sorry but I didn't see your 2nd post before answering you. I've make your test and everything seems to work fine in my server/browser/DB/OS combination!!

Perhaps, if you send here more details about your environment, somebody could test it.

Anyway, now that I understand (I hope wink) your problem, I think that it has nothing to do with the backup/restore process (sure that it cannot convert that "negative bullet" char).

Now we've to analyse why your HTML editor is doing that!!

Ciao smile
Attachment test.png