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

String not found notice when there are custom licenses in the site

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Deferred
    • Affects Version/s: 3.9
    • Fix Version/s: None
    • Component/s: Licensing
    • Labels:
      None
    • Affected Branches:
      MOODLE_39_STABLE

      Description

      To reproduce:

      1. Log in as admin.
      2. Make sure debugging's turned on.
      3. Go to "Site administration / Licence / Licence manager"
      4. Create a custom license.
      5. Save the changes.
      6. Open a page with an editor. (E.g. the edit profile page)
      7. Expected: The page will load okay
      8. Actual: The following debug message is being shown

        Invalid get_string() identifier: 'Testlicense' or component 'license'. Perhaps you are missing $string['Testlicense'] = ''; in lang/en/license.php?
        line 353 of /lib/classes/string_manager_standard.php: call to debugging()
        line 7387 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
        line 545 of /files/renderer.php: call to get_string()
        line 410 of /files/renderer.php: call to core_files_renderer->create_license_help_icon_context()
        line 516 of /files/renderer.php: call to core_files_renderer->fp_js_template_selectlayout()
        line 3199 of /repository/lib.php: call to core_files_renderer->filepicker_js_templates()
        line 356 of /lib/form/editor.php: call to initialise_filepicker()
        line 486 of /lib/form/editor.php: call to MoodleQuickForm_editor->toHtml()
        line 4667 of /lib/outputrenderers.php: call to MoodleQuickForm_editor->export_for_template()
        line 3146 of /lib/formslib.php: call to core_renderer->mform_element()
        line 430 of /lib/pear/HTML/QuickForm/element.php: call to MoodleQuickForm_Renderer->renderElement()
        line 1653 of /lib/pear/HTML/QuickForm.php: call to HTML_QuickForm_element->accept()
        line 1905 of /lib/formslib.php: call to HTML_QuickForm->accept()
        line 1696 of /lib/pear/HTML/QuickForm.php: call to MoodleQuickForm->accept()
        line 445 of /lib/pear/HTML/Common.php: call to HTML_QuickForm->toHtml()
        line 989 of /lib/formslib.php: call to HTML_Common->display()
        line 357 of /user/editadvanced.php: call to moodleform->display()
        

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jpataleta Jun Pataleta
              Reporter:
              jpataleta Jun Pataleta
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: