Hi folks,
I created a course and added a label to it. For the label I selected HTML mode '<>' and entered the following: '<h2>My Label Here</h2>' Everything looks great. I then backed up the course and restored it to another moodle installation. Everything seems to work fine *but* the '<' and '>' characters were stripped out during the process.
So now my label looks like this: 'h2 My Label Here /h2' on the moodle site with the restored course.
Question: Is there some sort of filter setting? Has anyone else seen this before?
Any help is greatly appreciated.
Thanks,
Tom
course backup/restore missing greater than sign and less than sign
by Deleted user -
Number of replies: 2
In reply to Deleted user
Re: course backup/restore missing greater than sign and less than sign
by Hubert Chathi -
It is an issue with PHP and libxml. See MDL-16759.
In reply to Hubert Chathi
Re: course backup/restore missing greater than sign and less than sign
by Deleted user -
Thanks for responding - I took a look at that post and it seems like the problem however I did a little more investigation.
We exported quiz questions on site 1. We then imported the questions on web site 2 without issue. Then we imported back to site 1 and the '<' and '>' were missing.
Note, site1 and site2 are on different servers. So then I assumed that it must be the version of xmllib2 on the web server running site1. So I then listed the RPMs on both servers (as shown below) but they are the same.
I need to do a little more digging - hmm?
root@cadlearning7 [/]# rpm -qa | grep libxml2
libxml2-2.6.26-2.1.2.7
libxml2-2.6.26-2.1.2.7
libxml2-devel-2.6.26-2.1.2.7
libxml2-python-2.6.26-2.1.2.7
libxml2-devel-2.6.26-2.1.2.7
root@host [/home]# rpm -qa | grep libxml2
libxml2-2.6.26-2.1.2.7
libxml2-python-2.6.26-2.1.2.7
libxml2-devel-2.6.26-2.1.2.7
libxml2-2.6.26-2.1.2.7
libxml2-devel-2.6.26-2.1.2.7
We exported quiz questions on site 1. We then imported the questions on web site 2 without issue. Then we imported back to site 1 and the '<' and '>' were missing.
Note, site1 and site2 are on different servers. So then I assumed that it must be the version of xmllib2 on the web server running site1. So I then listed the RPMs on both servers (as shown below) but they are the same.
I need to do a little more digging - hmm?
root@cadlearning7 [/]# rpm -qa | grep libxml2
libxml2-2.6.26-2.1.2.7
libxml2-2.6.26-2.1.2.7
libxml2-devel-2.6.26-2.1.2.7
libxml2-python-2.6.26-2.1.2.7
libxml2-devel-2.6.26-2.1.2.7
root@host [/home]# rpm -qa | grep libxml2
libxml2-2.6.26-2.1.2.7
libxml2-python-2.6.26-2.1.2.7
libxml2-devel-2.6.26-2.1.2.7
libxml2-2.6.26-2.1.2.7
libxml2-devel-2.6.26-2.1.2.7