Forums | Mahara Community
Support
/
Invalid Multibyte Sequence
07 November 2009, 7:37
Hi guys,
the first 70 users are registered and most things work as they are supposed to. Unfortunately the php_error_log is growing pretty fast as I get a lot of warnings concerning "Invalid Multibyte Sequence".
Here is a snippet from the error log:
[07-Nov-2009 11:14:05] [WAR] 4b (lib/web.php:1938) htmlspecialchars() [function.htmlspecialchars]: Invalid multibyte sequence in argument
[07-Nov-2009 11:14:05] Call stack (most recent first):
[07-Nov-2009 11:14:05] * log_message("htmlspecialchars() [function.htmlspecialchars]: In...", 8, true, true, "/data/web/social/web/social/collabuni/lib/web.php", 1938) at /data/web/social/web/social/collabuni/lib/errors.php:378
[07-Nov-2009 11:14:05] * error(2, "htmlspecialchars() [<a href='function.htmlspecialc...", "/data/web/social/web/social/collabuni/lib/web.php", 1938, array(size 1)) at Unknown:0
[07-Nov-2009 11:14:05] * htmlspecialchars("Hi!
[07-Nov-2009 11:14:05]
[07-Nov-2009 11:14:05] Ich bin Lara, 22 Jahre alt, und studiere IIM ...", 2, "UTF-8") at /data/web/social/web/social/collabuni/lib/web.php:1938
[07-Nov-2009 11:14:05] * hsc("Hi!
[07-Nov-2009 11:14:05]
[07-Nov-2009 11:14:05] Ich bin Lara, 22 Jahre alt, und studiere IIM ...") at /data/web/social/web/social/collabuni/lib/web.php:2383
[07-Nov-2009 11:14:05] * str_shorten("<p>Hi!</p><p>Ich bin Lara, 22 Jahre alt, und studi...", 100, true) at /data/web/social/web/social/collabuni/lib/user.php:1025
[07-Nov-2009 11:14:05] * get_users_data("15,32,12,45,63,20,30,42,39,67") at /data/web/social/web/social/collabuni/user/find.php:43
[07-Nov-2009 11:14:05] [07-Nov-2009 11:14:05] PHP Warning: htmlspecialchars() [<a href='function.htmlspecialchars'>function.htmlspecialchars</a>]: Invalid multibyte sequence in argument in /data/web/social/web/social/collabuni/lib/errors.php on line 306
[07-Nov-2009 11:14:05] PHP Warning: htmlspecialchars() [<a href='function.htmlspecialchars'>function.htmlspecialchars</a>]: Invalid multibyte sequence in argument in /data/web/social/web/social/collabuni/lib/errors.php on line 306
[07-Nov-2009 11:14:05] [WAR] 4b (lib/web.php:1938) htmlspecialchars() [function.htmlspecialchars]: Invalid multibyte sequence in argument
[07-Nov-2009 11:14:05] Call stack (most recent first):
[07-Nov-2009 11:14:05] * log_message("htmlspecialchars() [function.htmlspecialchars]: In...", 8, true, true, "/data/web/social/web/social/collabuni/lib/web.php", 1938) at /data/web/social/web/social/collabuni/lib/errors.php:378
[07-Nov-2009 11:14:05] * error(2, "htmlspecialchars() [<a href='function.htmlspecialc...", "/data/web/social/web/social/collabuni/lib/web.php", 1938, array(size 1)) at Unknown:0
[07-Nov-2009 11:14:05] * htmlspecialchars("Ich studiere IIM im 1. Semester mit den Nebenfäche...", 2, "UTF-8") at /data/web/social/web/social/collabuni/lib/web.php:1938
[07-Nov-2009 11:14:05] * hsc("Ich studiere IIM im 1. Semester mit den Nebenfäche...") at /data/web/social/web/social/collabuni/lib/web.php:2383
[07-Nov-2009 11:14:05] * str_shorten("<p>Ich studiere IIM im 1. Semester mit den Nebenf&...", 100, true) at /data/web/social/web/social/collabuni/lib/user.php:1025
[07-Nov-2009 11:14:05] * get_users_data("15,32,12,45,63,20,30,42,39,67") at /data/web/social/web/social/collabuni/user/find.php:43
Does anybody know why Mahara is producing this error?
thx Alex
08 November 2009, 18:02
That problem used to happen in older versions of Mahara, because we weren't using the multibyte string functions when shortening strings. But we fixed that in newer versions.
What version of Mahara are you using? If it's not recent, you might want to upgrade. And if it is recent, make sure you have the multibyte string extension installed for PHP (mbstring).