Issue Details (XML | Word | Printable)

Key: MDL-16759
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Helen Foster
Reporter: Generazion Consulting S.L.
Votes: 0
Watchers: 3
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

After Course Restoration HTML entities get broken

Created: 02/Oct/08 12:23 AM   Updated: 04/Sep/09 12:41 PM
Component/s: Backup
Affects Version/s: 1.9.2
Fix Version/s: None

File Attachments: None
Image Attachments:

1. 01_Original_course.png
(240 kB)

2. 02_XML.png
(162 kB)

3. 03_Restoring.png
(207 kB)

4. 04_Course_damaged.png
(235 kB)
Environment: Moodle 1.9.2 on Linux Fedora Core 9 with Apache 2.2.9, PHP .5.2.6 and MySQL 5.0.51a
Issue Links:
Duplicate
 
Relates
 

Database: MySQL
Participants: Eloy Lafuente (stronk7), Generazion Consulting S.L. and Helen Foster
Security Level: None
Resolved date: 03/Oct/08
Affected Branches: MOODLE_19_STABLE


 Description  « Hide
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.



 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Eloy Lafuente (stronk7) added a comment - 02/Oct/08 06:20 AM
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.


Generazion Consulting S.L. added a comment - 02/Oct/08 02:51 PM
Thank You Eloy. After downgrading that package to libxml2-2.6.32-1.fc9.i386.rpm the restore process appears to work well.

Eloy Lafuente (stronk7) added a comment - 02/Oct/08 03:30 PM
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!


Helen Foster added a comment - 03/Oct/08 11:02 PM
Thanks for reporting this issue, and Eloy, thanks for the solution, which is now documented here:

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