See bug bug #561378: please take care of something like what proposed in
comment 7, maybe also adding an hard-coded English message like:

  alert("Found a L10N issue with the current language pack!\r\nPlease
contact your System Administrator.")

It's something useful regardless the specific issue found into the ITA
language pack: it will give chances to recover issues when the object
returned by the server through JSON will be corrupted someway.

-- 
Profile view, Edit: freeze of the UI when adding the external video file block 
using a wrongly encoded L10N
https://bugs.launchpad.net/bugs/513331
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.

Status in Mahara ePortfolio: Confirmed

Bug description:
Mahara 1.2.2 (vanilla)
LAMP, PHP 5.2.12
MySQL
Integrated with Moodle, SSO IN (Moodle > Mahara)

It seems just related toa  missing configuration parameter, ''videoid''; is it 
a bug or an error/missing done during the installation? IMHO no reason for the 
JSON encode error since no data has been passed yet and no chance at all to 
break any enconding sequence.

Find below the complete log around the action described in the summary:
{{{
[Wed Jan 27 16:32:39 2010] [error] [client 12.34.56.78] [WAR] 79 
(blocktype/externalvideo/lib.php:61) Undefined index:  videoid, referer: 
http://111.222.333.444/mahara-stage/view/blocks.php?id=15&c=fileimagevideo&new=
[Wed Jan 27 16:32:39 2010] [error] [client 12.34.56.78] Call stack (most recent 
first):, referer: 
http://111.222.333.444/mahara-stage/view/blocks.php?id=15&c=fileimagevideo&new=
[Wed Jan 27 16:32:39 2010] [error] [client 12.34.56.78]   * 
log_message("Undefined index:  videoid", 8, true, true, 
"/path/to/mahara-stage/mahara-1.2.2/blocktype/exter...", 61) at 
/path/to/mahara-stage/mahara-1.2.2/lib/errors.php:446, referer: 
http://111.222.333.444/mahara-stage/view/blocks.php?id=15&c=fileimagevideo&new=
[Wed Jan 27 16:32:39 2010] [error] [client 12.34.56.78]   * error(8, "Undefined 
index:  videoid", "/path/to/mahara-stage/mahara-1.2.2/blocktype/exter...", 61, 
array(size 4)) at 
/path/to/mahara-stage/mahara-1.2.2/blocktype/externalvideo/lib.php:61, referer: 
http://111.222.333.444/mahara-stage/view/blocks.php?id=15&c=fileimagevideo&new=
[Wed Jan 27 16:32:39 2010] [error] [client 12.34.56.78]   * 
PluginBlocktypeExternalvideo::render_instance(object(BlockInstance), true) at 
Unknown:0, referer: 
http://111.222.333.444/mahara-stage/view/blocks.php?id=15&c=fileimagevideo&new=
[Wed Jan 27 16:32:39 2010] [error] [client 12.34.56.78]   * 
call_user_func_array(array(size 2), array(size 2)) at 
/path/to/mahara-stage/mahara-1.2.2/lib/mahara.php:1030, referer: 
http://111.222.333.444/mahara-stage/view/blocks.php?id=15&c=fileimagevideo&new=
[Wed Jan 27 16:32:39 2010] [error] [client 12.34.56.78]   * 
call_static_method("PluginBlocktypeExternalvideo", "render_instance", 
object(BlockInstance), true) at 
/path/to/mahara-stage/mahara-1.2.2/blocktype/lib.php:519, referer: 
http://111.222.333.444/mahara-stage/view/blocks.php?id=15&c=fileimagevideo&new=
[Wed Jan 27 16:32:39 2010] [error] [client 12.34.56.78]   * 
BlockInstance->render_editing(false, true) at 
/path/to/mahara-stage/mahara-1.2.2/lib/view.php:1220, referer: 
http://111.222.333.444/mahara-stage/view/blocks.php?id=15&c=fileimagevideo&new=
[Wed Jan 27 16:32:39 2010] [error] [client 12.34.56.78]   * 
View->addblocktype(array(size 4)) at 
/path/to/mahara-stage/mahara-1.2.2/lib/view.php:944, referer: 
http://111.222.333.444/mahara-stage/view/blocks.php?id=15&c=fileimagevideo&new=
[Wed Jan 27 16:32:39 2010] [error] [client 12.34.56.78]   * 
View->process_changes() at 
/path/to/mahara-stage/mahara-1.2.2/view/blocks.json.php:46, referer: 
http://111.222.333.444/mahara-stage/view/blocks.php?id=15&c=fileimagevideo&new=
[Wed Jan 27 16:32:39 2010] [error] [client 12.34.56.78] , referer: 
http://111.222.333.444/mahara-stage/view/blocks.php?id=15&c=fileimagevideo&new=
[Wed Jan 27 16:32:39 2010] [error] [client 12.34.56.78] [WAR] 79 
(blocktype/externalvideo/lib.php:92) Undefined index:  videoid, referer: 
http://111.222.333.444/mahara-stage/view/blocks.php?id=15&c=fileimagevideo&new=
[Wed Jan 27 16:32:39 2010] [error] [client 12.34.56.78] Call stack (most recent 
first):, referer: 
http://111.222.333.444/mahara-stage/view/blocks.php?id=15&c=fileimagevideo&new=
[Wed Jan 27 16:32:39 2010] [error] [client 12.34.56.78]   * 
log_message("Undefined index:  videoid", 8, true, true, 
"/path/to/mahara-stage/mahara-1.2.2/blocktype/exter...", 92) at 
/path/to/mahara-stage/mahara-1.2.2/lib/errors.php:446, referer: 
http://111.222.333.444/mahara-stage/view/blocks.php?id=15&c=fileimagevideo&new=
[Wed Jan 27 16:32:39 2010] [error] [client 12.34.56.78]   * error(8, "Undefined 
index:  videoid", "/path/to/mahara-stage/mahara-1.2.2/blocktype/exter...", 92, 
array(size 2)) at 
/path/to/mahara-stage/mahara-1.2.2/blocktype/externalvideo/lib.php:92, referer: 
http://111.222.333.444/mahara-stage/view/blocks.php?id=15&c=fileimagevideo&new=
[Wed Jan 27 16:32:39 2010] [error] [client 12.34.56.78]   * 
PluginBlocktypeExternalvideo::instance_config_form(object(BlockInstance), "0") 
at Unknown:0, referer: 
http://111.222.333.444/mahara-stage/view/blocks.php?id=15&c=fileimagevideo&new=
[Wed Jan 27 16:32:39 2010] [error] [client 12.34.56.78]   * 
call_user_func_array(array(size 2), array(size 2)) at 
/path/to/mahara-stage/mahara-1.2.2/lib/mahara.php:1030, referer: 
http://111.222.333.444/mahara-stage/view/blocks.php?id=15&c=fileimagevideo&new=
[Wed Jan 27 16:32:39 2010] [error] [client 12.34.56.78]   * 
call_static_method("PluginBlocktypeExternalvideo", "instance_config_form", 
object(BlockInstance), "0") at 
/path/to/mahara-stage/mahara-1.2.2/blocktype/lib.php:652, referer: 
http://111.222.333.444/mahara-stage/view/blocks.php?id=15&c=fileimagevideo&new=
[Wed Jan 27 16:32:39 2010] [error] [client 12.34.56.78]   * 
BlockInstance->build_configure_form(true) at 
/path/to/mahara-stage/mahara-1.2.2/blocktype/lib.php:515, referer: 
http://111.222.333.444/mahara-stage/view/blocks.php?id=15&c=fileimagevideo&new=
[Wed Jan 27 16:32:39 2010] [error] [client 12.34.56.78]   * 
BlockInstance->render_editing(true, true) at 
/path/to/mahara-stage/mahara-1.2.2/lib/view.php:1223, referer: 
http://111.222.333.444/mahara-stage/view/blocks.php?id=15&c=fileimagevideo&new=
[Wed Jan 27 16:32:39 2010] [error] [client 12.34.56.78]   * 
View->addblocktype(array(size 4)) at 
/path/to/mahara-stage/mahara-1.2.2/lib/view.php:944, referer: 
http://111.222.333.444/mahara-stage/view/blocks.php?id=15&c=fileimagevideo&new=
[Wed Jan 27 16:32:39 2010] [error] [client 12.34.56.78]   * 
View->process_changes() at 
/path/to/mahara-stage/mahara-1.2.2/view/blocks.json.php:46, referer: 
http://111.222.333.444/mahara-stage/view/blocks.php?id=15&c=fileimagevideo&new=
[Wed Jan 27 16:32:39 2010] [error] [client 12.34.56.78] , referer: 
http://111.222.333.444/mahara-stage/view/blocks.php?id=15&c=fileimagevideo&new=
[Wed Jan 27 16:32:39 2010] [error] [client 12.34.56.78] [WAR] 79 
(lib/web.php:909) json_encode() [function.json-encode]: Invalid UTF-8 sequence 
in argument, referer: 
http://111.222.333.444/mahara-stage/view/blocks.php?id=15&c=fileimagevideo&new=
[Wed Jan 27 16:32:39 2010] [error] [client 12.34.56.78] Call stack (most recent 
first):, referer: 
http://111.222.333.444/mahara-stage/view/blocks.php?id=15&c=fileimagevideo&new=
[Wed Jan 27 16:32:39 2010] [error] [client 12.34.56.78]   * 
log_message("json_encode() [function.json-encode]: Invalid UTF-...", 8, true, 
true, "/path/to/mahara-stage/mahara-1.2.2/lib/web.php", 909) at 
/path/to/mahara-stage/mahara-1.2.2/lib/errors.php:446, referer: 
http://111.222.333.444/mahara-stage/view/blocks.php?id=15&c=fileimagevideo&new=
[Wed Jan 27 16:32:39 2010] [error] [client 12.34.56.78]   * error(2, 
"json_encode() [<a href='function.json-encode'>func...", 
"/path/to/mahara-stage/mahara-1.2.2/lib/web.php", 909, array(size 3)) at 
Unknown:0, referer: 
http://111.222.333.444/mahara-stage/view/blocks.php?id=15&c=fileimagevideo&new=
[Wed Jan 27 16:32:39 2010] [error] [client 12.34.56.78]   * 
json_encode(array(size 3)) at 
/path/to/mahara-stage/mahara-1.2.2/lib/web.php:909, referer: 
http://111.222.333.444/mahara-stage/view/blocks.php?id=15&c=fileimagevideo&new=
[Wed Jan 27 16:32:39 2010] [error] [client 12.34.56.78]   * json_reply(false, 
array(size 2)) at /path/to/mahara-stage/mahara-1.2.2/view/blocks.json.php:47, 
referer: 
http://111.222.333.444/mahara-stage/view/blocks.php?id=15&c=fileimagevideo&new=
[Wed Jan 27 16:32:39 2010] [error] [client 12.34.56.78] , referer: 
http://111.222.333.444/mahara-stage/view/blocks.php?id=15&c=fileimagevideo&new=
}}}

TIA,
Matteo



_______________________________________________
Mailing list: https://launchpad.net/~mahara-contributors
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp

Reply via email to