Moodle

After Course Restoration HTML entities get broken

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.9.2
  • Fix Version/s: None
  • Component/s: Backup
  • Labels:
    None
  • Environment:
    Moodle 1.9.2 on Linux Fedora Core 9 with Apache 2.2.9, PHP .5.2.6 and MySQL 5.0.51a
  • Database:
    MySQL
  • Affected Branches:
    MOODLE_19_STABLE

Description

Restore and html entities problem

We have several Moodle 1.9.2 installations on different servers and we only have this problem in one using PHP 5.2.6 on Fedora Core 9

If we try to recover a backup the html entities in the embedded text gets broken.

The backup system appear to work well. We can restore any backup on a different machine without problems.

Obviously the problem is related to something in the system, maybe PHP but I can not see the difference. In the servers that works I use a similar setup but with CentOS5.

All Moodle installations at the same server have this problem.

Look at the screenshots. I think they explain the problem very well.

Thank you.

  1. 01_Original_course.png
    240 kB
    02/Oct/08 12:23 AM
  2. 02_XML.png
    162 kB
    02/Oct/08 12:24 AM
  3. 03_Restoring.png
    207 kB
    02/Oct/08 12:23 AM
  4. 04_Course_damaged.png
    235 kB
    02/Oct/08 12:23 AM

Issue Links

Activity

Hide
Eloy Lafuente (stronk7) added a comment -

Yes, it seems that its one well-know-old-problem that has happened again in the PHP side.

See:

it seems that you'll need to avoid some libxml2 versions.

Show
Eloy Lafuente (stronk7) added a comment - Yes, it seems that its one well-know-old-problem that has happened again in the PHP side. See: it seems that you'll need to avoid some libxml2 versions.
Hide
Generazion Consulting S.L. added a comment -

Thank You Eloy. After downgrading that package to libxml2-2.6.32-1.fc9.i386.rpm the restore process appears to work well.

Show
Generazion Consulting S.L. added a comment - Thank You Eloy. After downgrading that package to libxml2-2.6.32-1.fc9.i386.rpm the restore process appears to work well.
Hide
Eloy Lafuente (stronk7) added a comment -

Thanks for feedback.

Assigning this to Helen to add some in Backup FAQ (http://docs.moodle.org/en/Backup_FAQ) or so about this problem and solution.

Thanks!

Show
Eloy Lafuente (stronk7) added a comment - Thanks for feedback. Assigning this to Helen to add some in Backup FAQ (http://docs.moodle.org/en/Backup_FAQ) or so about this problem and solution. Thanks!
Hide
Helen Foster added a comment -

Thanks for reporting this issue, and Eloy, thanks for the solution, which is now documented here:

http://docs.moodle.org/en/Backup_FAQ

Show
Helen Foster added a comment - Thanks for reporting this issue, and Eloy, thanks for the solution, which is now documented here: http://docs.moodle.org/en/Backup_FAQ

People

Vote (0)
Watch (3)

Dates

  • Created:
    Updated:
    Resolved: