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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Deferred
    • 3.9
    • None
    • Licensing
    • None
    • 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

              jpataleta Jun Pataleta
              jpataleta Jun Pataleta
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: