show code html in text area import/restore moodle 2.4.1

show code html in text area import/restore moodle 2.4.1

by Gisele Brugger -
Number of replies: 5

I did two tests: importing and restoring a course.
In both cases all resources / activities in areas of the HTML text display
example:

original course -> resource page:
content= 

<div id="__ss_8593870" style="width: 425px;"><strong style="display: block; margin: 12px 0 4px;"><a target="_blank" title="Conteúdos de e-learning que apetece beijar " href="http://www.slideshare.net/svfernandes/kiss-julho-2011">Conteúdos de e-learning que apetece beijar </a></strong> <iframe scrolling="no" marginheight="0" marginwidth="0" frameborder="0" height="355" width="425" src="http://www.slideshare.net/slideshow/embed_code/8593870"></iframe>
<div style="padding: 5px 0 12px;">View more <a target="_blank" href="http://www.slideshare.net/">presentations</a> from <a target="_blank" href="http://www.slideshare.net/svfernandes">Selma Fernandes</a></div>
</div>



in imported course 

content=

div id="__ss_8593870" style="width: 425px;"strong style="display: block; margin: 12px 0 4px;"a target="_blank" title="Conteúdos de e-learning que apetece beijar " href="http://www.slideshare.net/svfernandes/kiss-julho-2011"Conteúdos de e-learning que apetece beijar /a/strong iframe scrolling="no" marginheight="0" marginwidth="0" frameborder="0" height="355" width="425" src="http://www.slideshare.net/slideshow/embed_code/8593870"/iframe
div style="padding: 5px 0 12px;"View more a target="_blank" href="http://www.slideshare.net/"presentations/a from a target="_blank" href="http://www.slideshare.net/svfernandes"Selma Fernandes/a/div
/div

 

in database , tabel mdl_page the content was stored with erros in code html

 

any suggestions?

 

Average of ratings: -
In reply to Gisele Brugger

Re: show code html in text area import/restore moodle 2.4.1

by Gisele Brugger -

I made a backup of the course and file /activities/page_19847/page.xml is corret.

then it is an error in the conversion of xml to html file?

<?xml version="1.0" encoding="UTF-8"?>
<activity id="250" moduleid="19847" modulename="page" contextid="56980">
<page id="250">
<name>Dicas de como criar materiais online</name>
<intro>&lt;p&gt;Dicas de como criar materiais online&lt;/p&gt;</intro>
<introformat>1</introformat>
<content>&lt;div id="__ss_8593870" style="width: 425px;"&gt;&lt;strong style="display: block; margin: 12px 0 4px;"&gt;&lt;a target="_blank" title="Conteúdos de e-learning que apetece beijar " href="http://www.slideshare.net/svfernandes/kiss-julho-2011"&gt;Conteúdos de e-learning que apetece beijar &lt;/a&gt;&lt;/strong&gt; &lt;iframe scrolling="no" marginheight="0" marginwidth="0" frameborder="0" height="355" width="425" src="http://www.slideshare.net/slideshow/embed_code/8593870"&gt;&lt;/iframe&gt;
&lt;div style="padding: 5px 0 12px;"&gt;View more &lt;a target="_blank" href="http://www.slideshare.net/"&gt;presentations&lt;/a&gt; from &lt;a target="_blank" href="http://www.slideshare.net/svfernandes"&gt;Selma Fernandes&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;</content>
<contentformat>1</contentformat>
<legacyfiles>0</legacyfiles>
<legacyfileslast>$@NULL@$</legacyfileslast>
<display>5</display>
<displayoptions>a:2:{s:12:"printheading";s:1:"1";s:10:"printintro";s:1:"0";}</displayoptions>
<revision>1</revision>
<timemodified>1313092729</timemodified>
</page>
</activity>

 

ps: I restored the course in another installation of moodle 2.4.1 and did not have any error.

Any idea what it might be? filter? plugin?

In reply to Gisele Brugger

Re: show code html in text area import/restore moodle 2.4.1

by Darko Miletić -

It would be helpfull if you could provide dump of $CFG object (or export of config table) for both instances of Moodle (removing any sensitive information prior to publishing) so that we can compare what is on and off.

also list of all enabled plugins of any kind would be helpfull.

Average of ratings: Useful (1)
In reply to Darko Miletić

Re: show code html in text area import/restore moodle 2.4.1

by Gisele Brugger -

Hello Darko, 

Firstly thank you for your feedback.

The moodle with problems to import courses upgrades were made:

2.2.1 -> 2.3 -> 2.3.4 -> 2.4.1

The moodle where I had no problems importing the installation was done directly in 2.4

is this link (zip file) http://giselebrugger.com/tmp/mdl_configs.zip

2 files .csv mdl_config ( 2 moodles)

and 2 imagens courses: original course and imported course

Thank you very much 

In reply to Gisele Brugger

Re: show code html in text area import/restore moodle 2.4.1

by Gisele Brugger -

Aleleuiaaaaaa

After more than 12 hours trying to find the error .... finally.
I was comparing all settings between the two moodle installed and after several settings removing plugins, modules, mdl_config noticed that was missing the moodle module php5-intl

It was only install and restartar apache2 and both imports as the restoration is Ok now

Gracias hermano