Forums | Mahara Community

Support /
error-messages by editing a view with a navigation


anonymous profile picture
Account deleted
Posts: 39

05 August 2011, 9:07

Hello,

If I am editing a (group-)view with a navigation to a (different) collection insight I will find in the apache-error-log-files regularly the following error-messages:

[Fri Jul 29 11:28:41 2011] [error] [client 127.0.0.1] [WAR] 1a (lib/mahara.php:980) sprintf() [function.sprintf]: Too few arguments, referer: http://localhost//mahara/view/view.php?id=96
[Fri Jul 29 11:28:41 2011] [error] [client 127.0.0.1] Call stack (most recent first):, referer: http://localhost//mahara/view/view.php?id=96
[Fri Jul 29 11:28:41 2011] [error] [client 127.0.0.1]   * log_message("sprintf() [function.sprintf]: Too few arguments", 8, true, true, "/var/www/mahara/lib/mahara.php", 980) at /var/www/mahara/lib/errors.php:446, referer: http://localhost//mahara/view/view.php?id=96
[Fri Jul 29 11:28:41 2011] [error] [client 127.0.0.1]   * error(2, "sprintf() [<a href='function.sprintf'>function.spr...", "/var/www/mahara/lib/mahara.php", 980, array(size 2)) at Unknown:0, referer: http://localhost//mahara/view/view.php?id=96
[Fri Jul 29 11:28:41 2011] [error] [client 127.0.0.1]   * sprintf("Diesen Block %s entfernen") at Unknown:0, referer: http://localhost//mahara/view/view.php?id=96
[Fri Jul 29 11:28:41 2011] [error] [client 127.0.0.1]   * call_user_func_array("sprintf", array(size 1)) at /var/www/mahara/lib/mahara.php:980, referer: http://localhost//mahara/view/view.php?id=96
[Fri Jul 29 11:28:41 2011] [error] [client 127.0.0.1]   * format_langstring("Diesen Block %s entfernen", array(size 0)) at /var/www/mahara/lib/mahara.php:392, referer: http://localhost//mahara/view/view.php?id=96
[Fri Jul 29 11:28:41 2011] [error] [client 127.0.0.1]   * get_string_location("removethisblock", "view", array(size 0)) at /var/www/mahara/lib/mahara.php:216, referer: http://localhost//mahara/view/view.php?id=96
[Fri Jul 29 11:28:41 2011] [error] [client 127.0.0.1]   * get_string("removethisblock", "view") at /var/www/mahara/blocktype/lib.php:662, referer: http://localhost//mahara/view/view.php?id=96
[Fri Jul 29 11:28:41 2011] [error] [client 127.0.0.1]   * BlockInstance->render_editing() at /var/www/mahara/lib/view.php:1398, referer: http://localhost//mahara/view/view.php?id=96
[Fri Jul 29 11:28:41 2011] [error] [client 127.0.0.1]   * View->build_column(1, true) at /var/www/mahara/lib/view.php:1366, referer: http://localhost//mahara/view/view.php?id=96
[Fri Jul 29 11:28:41 2011] [error] [client 127.0.0.1]   * View->build_columns(true) at /var/www/mahara/view/blocks.php:238, referer: http://localhost//mahara/view/view.php?id=96
[Fri Jul 29 11:28:41 2011] [error] [client 127.0.0.1] , referer: http://localhost//mahara/view/view.php?id=96

Has anybody an idea whats wrong?

(I am using the mahara-verion 1.4)

Thank you for your help,
michael

anonymous profile picture
Account deleted
Posts: 808

07 August 2011, 17:41

It looks like an out-of-date language pack perhaps, I'd try replacing it with the latest version.  Otherwise, just edit the 'removethisblock' string, it looks like the translation expects an argument ("Diesen Block %s entfernen"), but the English version doesn't have an argument, so no argument is passed.

anonymous profile picture
Account deleted
Posts: 39

08 August 2011, 8:18

Hello Richard,

thank you for your answer. You are right, it was the expected argument in the string 'removethisblock'. In the german-master-language-pack the error is fixed. ;-)

greetings,

michael

3 results