After upgrade from 1.5.2+ to 1.6.1 and utf8-migration, essays writen before upgrade and therefore migrated do not get show to users (inc. admin). Turning on debug show a message:
Notice: unserialize(): Error at offset 909 of 1110 bytes in /var/www/moodle/mod/lesson/view.php on line 1672.
All pre-migration essays throw that error. New essays seem to work. In the db the attempts look to be fine. Not truncated or anything obvious. Essays are writen in Finnish, so there are a lot of non-ascii characters in them.
Seem fairly obvious that unserialize can handle "useranswer" strings that have gone through utf8-migration. However, the error must be rather subtle, because the "useranswer" strings do seem identical.
Here's the "useranswer" field of lesson_attempt table for the same attempt at the error message above.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
O:8:"stdClass":5:
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- blocks
-
MDL-6854 Review UTF migration to check everything works properly...
-
- Closed
-