mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #64575
[Bug 1952493] Re: Installing Mahara in German results in password error
One of the password description strings contained % which threw Mahara
as it wasn't escaped. We removed it from the list of possible symbols.
While it is OK to use as a special character, not all special characters
are listed and thus it was easy to just leave out.
** Changed in: mahara/22.04
Status: Confirmed => Fix Committed
** Changed in: mahara/21.10
Status: Confirmed => Fix Committed
** Also affects: mahara/21.04
Importance: Undecided
Status: New
** Changed in: mahara/21.04
Status: New => Fix Committed
** Changed in: mahara/21.04
Importance: Undecided => High
** Changed in: mahara/21.04
Milestone: None => 21.04.3
--
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/1952493
Title:
Installing Mahara in German results in password error
Status in Mahara:
Fix Committed
Status in Mahara 21.04 series:
Fix Committed
Status in Mahara 21.10 series:
Fix Committed
Status in Mahara 22.04 series:
Fix Committed
Bug description:
When I install Mahara in German, I get the following error message
(also see attachment for highlighted version):
[WAR] 35 (lib/mahara.php:1589) sprintf(): Too few arguments
Call stack (most recent first):
log_message("sprintf(): Too few arguments", 8, true, true, "/home/kristina/code/mahara/htdocs/lib/mahara.php", 1589) at /home/kristina/code/mahara/htdocs/lib/errors.php:515
error(2, "sprintf(): Too few arguments", "/home/kristina/code/mahara/htdocs/lib/mahara.php", 1589, array(size 3)) at Unknown:0
sprintf("Muss Großbuchstaben [A-Z], Kleinbuchstaben [a-z],...") at /home/kristina/code/mahara/htdocs/lib/mahara.php:1589
format_langstring("Muss Großbuchstaben [A-Z], Kleinbuchstaben [a-z],...", array(size 0), "de.utf8") at /home/kristina/code/mahara/htdocs/lib/mahara.php:596
get_string_location("passworddescription1.ulns", "mahara", array(size 0)) at /home/kristina/code/mahara/htdocs/lib/mahara.php:336
get_string("passworddescription1.ulns", "mahara") at /home/kristina/code/mahara/htdocs/lib/mahara.php:6016
get_password_policy_description("user") at /home/kristina/code/mahara/htdocs/auth/lib.php:1390
auth_check_required_fields() at /home/kristina/code/mahara/htdocs/auth/lib.php:547
auth_setup() at /home/kristina/code/mahara/htdocs/init.php:424
require("/home/kristina/code/mahara/htdocs/init.php") at /home/kristina/code/mahara/htdocs/index.php:16
To replicate in Chrome / Chromium:
1. Click the *Open and customize Google Chrome* icon.
2. In the search bar at the top, type 'Language'. The search results are highlighted.
3. Click the *Add languages* link.
4. Search or browse to the language that you want to add and select its check box.
5. Click the *Add* button. You are returned to the settings screen.
6. Click the *More actions* icon next to the language that you want to make your primary language.
7. Select the option *Move to the top*. Your changes are saved immediately.
8. Install Mahara. Double check that it is in German by checking that you see the install button as 'Mahara installieren'. Not everything on the install page is translated.
9. Once the installation is done, click the link 'Weiter' at the bottom of the page.
Result:
- Expected: I can enter the password for the admin account.
- Actual: I see the above error message but can still enter the password.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1952493/+subscriptions
References