← Back to team overview

mahara-contributors team mailing list archive

[Bug 1952493] [NEW] Installing Mahara in German results in password error

 

Public bug reported:

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.

** Affects: mahara
     Importance: High
         Status: Confirmed

** Affects: mahara/21.10
     Importance: High
         Status: Confirmed

** Affects: mahara/22.04
     Importance: High
         Status: Confirmed

** Attachment added: "password_german_install.png"
   https://bugs.launchpad.net/bugs/1952493/+attachment/5543722/+files/password_german_install.png

** Also affects: mahara/22.04
   Importance: High
       Status: Confirmed

** Also affects: mahara/21.10
   Importance: Undecided
       Status: New

** Changed in: mahara/21.10
       Status: New => Confirmed

** Changed in: mahara/21.10
   Importance: Undecided => High

** 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/1952493

Title:
  Installing Mahara in German results in password error

Status in Mahara:
  Confirmed
Status in Mahara 21.10 series:
  Confirmed
Status in Mahara 22.04 series:
  Confirmed

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



Follow ups