Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-71026

/user/editadvanced.php - extralocations parameter in get_string() is not supported any more

XMLWordPrintable

    • MOODLE_39_STABLE
    • MOODLE_310_STABLE, MOODLE_39_STABLE
    • MDL-71026-master
    • Hide
      1. Install attached external auth_test.zip plugin (extract it in /path_to_moodle/auth directory)
      2. Go to Add new user page
      3. Change Choose an authentication method to testauth
      4. Fill new password field
      5. Fill all compulsory fields with relevant data and click Create user
      6. Ensure these error is displayed:
      7. Failed to update password on external auth: test. See the server logs for more details.
        

      Show
      Install attached external  auth_test.zip plugin (extract it in /path_to_moodle/auth directory) Go to Add new user page Change Choose an authentication method to testauth Fill new password field Fill all compulsory fields with relevant data and click Create user Ensure these error is displayed: Failed to update password on external auth: test. See the server logs for more details.
    • Moppies Kanban

      A problem case that we encounter generates the following error: 

       

      extralocations parameter in get_string() is not supported any more, please use standard lang locations only.
       
      line 7366 of /lib/moodlelib.php: call to debugging() line 207 of /user/editadvanced.php: call to get_string()
      Invalid get_string() identifier: 'cannotupdatepasswordonextauth' or component 'moodle'. Perhaps you are missing $string['cannotupdatepasswordonextauth'] = ''; in lang/en/moodle.php?
       
      line 353 of /lib/classes/string_manager_standard.php: call to debugging() line 7394 of /lib/moodlelib.php: call to core_string_manager_standard->get_string() line 207 of /user/editadvanced.php: call to get_string()
      [[cannotupdatepasswordonextauth]]
       
      line 207 of /user/editadvanced.php: call to debugging()
       
      

       

      There are 2 separate bugs here :

      1. The badly formed call to get_string()
      2. The missing string definition for cannotupdatepasswordonextauth

       

      The offending line (/user/editadvanced.php line 207) is the following:

      debugging(get_string('cannotupdatepasswordonextauth', '', '', $usernew->auth), DEBUG_NONE);

       

        1. auth_test.zip
          18 kB
        2. MDL-71026.jpg
          MDL-71026.jpg
          16 kB
        3. three-nine-auth-test.zip
          18 kB

            ilyatregubov Ilya Tregubov
            daniel@edunao.com Daniel Miller
            Ferran Recio Ferran Recio
            Adrian Greeve Adrian Greeve
            Anna Carissa Sadia Anna Carissa Sadia
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 55 minutes
                2h 55m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.