{"id":369,"date":"2010-09-30T19:39:50","date_gmt":"2010-09-30T19:39:50","guid":{"rendered":"http:\/\/www.otioti.com\/?p=369"},"modified":"2013-03-05T19:40:26","modified_gmt":"2013-03-05T19:40:26","slug":"moodle-libxml2","status":"publish","type":"post","link":"https:\/\/www.otioti.com\/?p=369","title":{"rendered":"Moodle &#038; libxml2"},"content":{"rendered":"<p><span style=\"font-size: 13px;\">This is too weird, but when I tried to restore a course from backup, all HTML tags was broken. I thought it was related to PHP and XML but I could never think it was caused of libxml2 version. I had installed libxml2-2.7.3, so to resolv this problem you just have to uninstall this version and install the recommended versions: 2.6.32 or 2.7.0.<\/span><\/p>\n<div>\n<p>If you have an old system, in Gentoo would be:<\/p>\n<blockquote>\n<pre>echo \u201c&gt;=dev-libs\/libxml2-2.7.1\u2033 &gt;&gt; \/etc\/portage\/package.mask\r\nemerge -av libxml2<\/pre>\n<\/blockquote>\n<p>If you have a newly fashioned portage:<\/p>\n<blockquote>\n<pre>emerge -av \u2018=dev-libs\/libxml2-2.7.6\u2032<\/pre>\n<\/blockquote>\n<p>See:\u00a0<a href=\"http:\/\/docs.moodle.org\/en\/Backup_FAQ#Restoring_a_course_results_in_broken_HTML_tags._What_can_I_do.3F\">http:\/\/docs.moodle.org\/en\/Backup_FAQ#Restoring_a_course_results_in_broken_HTML_tags._What_can_I_do.3F<\/a><\/p>\n<\/div>\n<div><\/div>\n<div>Tags:\u00a0<a href=\"http:\/\/www.otioti.com\/?tag=libxml2\" rel=\"tag\">libxml2<\/a>,\u00a0<a href=\"http:\/\/www.otioti.com\/?tag=linkedin\" rel=\"tag\">linkedin<\/a>,\u00a0<a href=\"http:\/\/www.otioti.com\/?tag=moodle\" rel=\"tag\">moodle<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>This is too weird, but when I tried to restore a course from backup, all HTML tags was broken. I thought it was related to PHP and XML but I could never think it was caused of libxml2 version. I had installed libxml2-2.7.3, so to resolv this problem you just have to uninstall this version [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,4],"tags":[63,65,62],"class_list":["post-369","post","type-post","status-publish","format-standard","hentry","category-gentoo-linux","category-linux","tag-libxml2","tag-linux","tag-moodle"],"_links":{"self":[{"href":"https:\/\/www.otioti.com\/index.php?rest_route=\/wp\/v2\/posts\/369","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.otioti.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.otioti.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.otioti.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.otioti.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=369"}],"version-history":[{"count":2,"href":"https:\/\/www.otioti.com\/index.php?rest_route=\/wp\/v2\/posts\/369\/revisions"}],"predecessor-version":[{"id":371,"href":"https:\/\/www.otioti.com\/index.php?rest_route=\/wp\/v2\/posts\/369\/revisions\/371"}],"wp:attachment":[{"href":"https:\/\/www.otioti.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=369"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.otioti.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=369"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.otioti.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=369"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}