Public bug reported:
When I submitted a portfolio via LTI to Brightspace and then release the
submission via the admin interface at Admin menu -> Groups -> Current
submissions, I get the following warning. There is no warning when the
portfolio is submitted via a Mahara group.
[WAR] a3 (lib/mahara.php:1557) sprintf(): Too few arguments
Call stack (most recent first):
log_message("sprintf(): Too few arguments", 8, true, true,
"/var/www/ws-mahara-testing-mahara/releases/2021102...", 1557) at
/var/www/ws-mahara-testing-mahara/releases/20211027023906/lib/errors.php:515
error(2, "sprintf(): Too few arguments",
"/var/www/ws-mahara-testing-mahara/releases/2021102...", 1557, array(size 3))
at Unknown:0
sprintf("Your portfolio "%s" has been released from "%s" by...",
"Internship") at
/var/www/ws-mahara-testing-mahara/releases/20211027023906/lib/mahara.php:1557
format_langstring("Your portfolio "%s" has been released from "%s" by...",
array(size 1), "en.utf8") at
/var/www/ws-mahara-testing-mahara/releases/20211027023906/lib/mahara.php:558
get_string_location("portfolioreleasedmessage", "group", array(size 1),
"format_langstring", "en.utf8") at
/var/www/ws-mahara-testing-mahara/releases/20211027023906/lib/mahara.php:361
get_string_from_language("en.utf8", "portfolioreleasedmessage", "group",
"Internship") at
/var/www/ws-mahara-testing-mahara/releases/20211027023906/lib/view.php:1789
View->release(object(LiveUser), array(size 1)) at
/var/www/ws-mahara-testing-mahara/releases/20211027023906/admin/groups/archives.php:93
To replicate:
1. Set up a deep link assignment in Brightspace (Kristina can help with that)
2. Submit a portfolio as a student.
3. Log into Mahara as site admin.
4. Go to Admin menu -> Groups -> Current submissions.
5. Release the student's portfolio.
Expected result: The portfolio is released without warning.
Actual result: The above warning is thrown but the portfolio still seems to be
released.
** Affects: mahara
Importance: High
Status: Confirmed
** Affects: mahara/21.10
Importance: High
Status: Confirmed
** Affects: mahara/22.04
Importance: High
Status: Confirmed
** Tags: lti-advantage
** Tags added: lti-advantage
** Also affects: mahara/21.10
Importance: Undecided
Status: New
** Also affects: mahara/22.04
Importance: Undecided
Status: New
** Changed in: mahara/22.04
Status: New => Confirmed
** Changed in: mahara/21.10
Status: New => Confirmed
** Changed in: mahara/22.04
Importance: Undecided => High
** Changed in: mahara/21.10
Importance: Undecided => High
** Changed in: mahara/22.04
Milestone: None => 22.04.0
** Changed in: mahara/21.10
Milestone: None => 21.10.1
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: mahara-contributors
https://bugs.launchpad.net/bugs/1949333
Title:
Releasing a current submission produces warning
Status in Mahara:
Confirmed
Status in Mahara 21.10 series:
Confirmed
Status in Mahara 22.04 series:
Confirmed
Bug description:
When I submitted a portfolio via LTI to Brightspace and then release
the submission via the admin interface at Admin menu -> Groups ->
Current submissions, I get the following warning. There is no warning
when the portfolio is submitted via a Mahara group.
[WAR] a3 (lib/mahara.php:1557) sprintf(): Too few arguments
Call stack (most recent first):
log_message("sprintf(): Too few arguments", 8, true, true,
"/var/www/ws-mahara-testing-mahara/releases/2021102...", 1557) at
/var/www/ws-mahara-testing-mahara/releases/20211027023906/lib/errors.php:515
error(2, "sprintf(): Too few arguments",
"/var/www/ws-mahara-testing-mahara/releases/2021102...", 1557, array(size 3))
at Unknown:0
sprintf("Your portfolio "%s" has been released from "%s" by...",
"Internship") at
/var/www/ws-mahara-testing-mahara/releases/20211027023906/lib/mahara.php:1557
format_langstring("Your portfolio "%s" has been released from "%s"
by...", array(size 1), "en.utf8") at
/var/www/ws-mahara-testing-mahara/releases/20211027023906/lib/mahara.php:558
get_string_location("portfolioreleasedmessage", "group", array(size 1),
"format_langstring", "en.utf8") at
/var/www/ws-mahara-testing-mahara/releases/20211027023906/lib/mahara.php:361
get_string_from_language("en.utf8", "portfolioreleasedmessage", "group",
"Internship") at
/var/www/ws-mahara-testing-mahara/releases/20211027023906/lib/view.php:1789
View->release(object(LiveUser), array(size 1)) at
/var/www/ws-mahara-testing-mahara/releases/20211027023906/admin/groups/archives.php:93
To replicate:
1. Set up a deep link assignment in Brightspace (Kristina can help with that)
2. Submit a portfolio as a student.
3. Log into Mahara as site admin.
4. Go to Admin menu -> Groups -> Current submissions.
5. Release the student's portfolio.
Expected result: The portfolio is released without warning.
Actual result: The above warning is thrown but the portfolio still seems to
be released.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1949333/+subscriptions
_______________________________________________
Mailing list: https://launchpad.net/~mahara-contributors
Post to : [email protected]
Unsubscribe : https://launchpad.net/~mahara-contributors
More help : https://help.launchpad.net/ListHelp