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

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

    XMLWordPrintable

Details

    • Moppies Kanban

    Description

      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);

       

      Attachments

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

        Activity

          People

            ilyatregubov Ilya Tregubov
            daniel@edunao.com Daniel Miller
            Ferran Recio Ferran Recio
            Adrian Greeve Adrian Greeve
            Anna Carissa Sadia Anna Carissa Sadia
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona)
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              25/Mar/21

              Time Tracking

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