dmlwriteexception error when trying to create a page.

dmlwriteexception error when trying to create a page.

by Priscilla de Carvalho Nunes -
Number of replies: 0

Hi,

I'm trying to create a page with a Vimeo video embeded and I get a dmlwriteexception error. I turn the debug on, and get the following (which makes no sense to me):

Debug info: Incorrect string value: '\xC2\x87caO ...' for column 'content' at row 1
INSERT INTO mdl_page (name,display,course,revision,intro,introformat,timemodified,displayoptions,content,contentformat) VALUES(?,?,?,?,?,?,?,?,?,?)
[array (
0 => 'Teste (10/12/2012) - (SPED Fiscal) nota com Redução ICMS (entrada)',
1 => 5,
2 => '24',
3 => 1,
4 => '<p>(SPED Fiscal) nota com Redução ICMS (entrada)</p>',
5 => '1',
6 => 1355148640,
7 => 'a:2:{s:12:"printheading";s:1:"1";s:10:"printintro";s:1:"0";}',
8 => '<p><iframe src="http://player.vimeo.com/video/54161154?badge=0&amp;color=ff9933" width="560" height="315" frameborder="0" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen=""></iframe></p> 
<p><a href="http://vimeo.com/54161154">(SPED Fiscal) nota com REDUcaO ICMS (entrada)</a> from <a href="http://vimeo.com/millenniumnetwork">Millennium Network®</a> on <a href="http://vimeo.com">Vimeo</a>.</p>',
9 => '1',
)]
Stack trace:
  • line 397 of /lib/dml/moodle_database.php: dml_write_exception thrown
  • line 893 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
  • line 935 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
  • line 108 of /mod/page/lib.php: call to mysqli_native_moodle_database->insert_record()
  • line 443 of /course/modedit.php: call to page_add_instance()

Anyone know how to fix these?

 

Average of ratings: -