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

Invalid get_string() identifier when using admin/tool/qeupgradehelper/extracttestcase.php

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.4.8, 2.5.4, 2.6.1
    • 2.4.7, 2.5.3, 2.6, 2.7
    • Quiz
    • MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE
    • MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
    • m27_MDL-43508_Invalid_String_Identifier
    • Hide

      (difficulty: easy, requires administrator access to the Moodle instance)

      1. Log in as an Administrator;
      2. Point to Site administration > Question engine upgrade helper > Extract test case, i.e. admin/tool/qeupgradehelper/extracttestcase.php;
      3. You should see no warnings about invalid get_string() identifiers and the Question type dropdown is populated with the name of those question type installed in the system and not with the string identifiers e.g. [[calculated]].
      Show
      (difficulty: easy, requires administrator access to the Moodle instance) Log in as an Administrator ; Point to Site administration > Question engine upgrade helper > Extract test case , i.e. admin/tool/qeupgradehelper/extracttestcase.php ; You should see no warnings about invalid get_string() identifiers and the Question type dropdown is populated with the name of those question type installed in the system and not with the string identifiers e.g. [ [calculated] ] .

      See below the long list, due to the usage of the explicit plugin name instead of pluginname:

      Invalid get_string() identifier: 'calculated' or component 'qtype_calculated'. Perhaps you are missing $string['calculated'] = ''; in /var/www/moodle-master-git-remote/question/type/calculated/lang/en/qtype_calculated.php?
      line 293 of /lib/classes/string_manager_standard.php: call to debugging()
      line 6833 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
      line 49 of /admin/tool/qeupgradehelper/extracttestcase_form.php: call to get_string()
      line 191 of /lib/formslib.php: call to tool_qeupgradehelper_extract_options_form->definition()
      line 49 of /admin/tool/qeupgradehelper/extracttestcase.php: call to moodleform->moodleform()
       
      Invalid get_string() identifier: 'calculatedmulti' or component 'qtype_calculatedmulti'. Perhaps you are missing $string['calculatedmulti'] = ''; in /var/www/moodle-master-git-remote/question/type/calculatedmulti/lang/en/qtype_calculatedmulti.php?
      line 293 of /lib/classes/string_manager_standard.php: call to debugging()
      line 6833 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
      line 49 of /admin/tool/qeupgradehelper/extracttestcase_form.php: call to get_string()
      line 191 of /lib/formslib.php: call to tool_qeupgradehelper_extract_options_form->definition()
      line 49 of /admin/tool/qeupgradehelper/extracttestcase.php: call to moodleform->moodleform()
       
      Invalid get_string() identifier: 'calculatedsimple' or component 'qtype_calculatedsimple'. Perhaps you are missing $string['calculatedsimple'] = ''; in /var/www/moodle-master-git-remote/question/type/calculatedsimple/lang/en/qtype_calculatedsimple.php?
      line 293 of /lib/classes/string_manager_standard.php: call to debugging()
      line 6833 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
      line 49 of /admin/tool/qeupgradehelper/extracttestcase_form.php: call to get_string()
      line 191 of /lib/formslib.php: call to tool_qeupgradehelper_extract_options_form->definition()
      line 49 of /admin/tool/qeupgradehelper/extracttestcase.php: call to moodleform->moodleform()
       
      Invalid get_string() identifier: 'description' or component 'qtype_description'. Perhaps you are missing $string['description'] = ''; in /var/www/moodle-master-git-remote/question/type/description/lang/en/qtype_description.php?
      line 293 of /lib/classes/string_manager_standard.php: call to debugging()
      line 6833 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
      line 49 of /admin/tool/qeupgradehelper/extracttestcase_form.php: call to get_string()
      line 191 of /lib/formslib.php: call to tool_qeupgradehelper_extract_options_form->definition()
      line 49 of /admin/tool/qeupgradehelper/extracttestcase.php: call to moodleform->moodleform()
       
      Invalid get_string() identifier: 'essay' or component 'qtype_essay'. Perhaps you are missing $string['essay'] = ''; in /var/www/moodle-master-git-remote/question/type/essay/lang/en/qtype_essay.php?
      line 293 of /lib/classes/string_manager_standard.php: call to debugging()
      line 6833 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
      line 49 of /admin/tool/qeupgradehelper/extracttestcase_form.php: call to get_string()
      line 191 of /lib/formslib.php: call to tool_qeupgradehelper_extract_options_form->definition()
      line 49 of /admin/tool/qeupgradehelper/extracttestcase.php: call to moodleform->moodleform()
       
      Invalid get_string() identifier: 'match' or component 'qtype_match'. Perhaps you are missing $string['match'] = ''; in /var/www/moodle-master-git-remote/question/type/match/lang/en/qtype_match.php?
      line 293 of /lib/classes/string_manager_standard.php: call to debugging()
      line 6833 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
      line 49 of /admin/tool/qeupgradehelper/extracttestcase_form.php: call to get_string()
      line 191 of /lib/formslib.php: call to tool_qeupgradehelper_extract_options_form->definition()
      line 49 of /admin/tool/qeupgradehelper/extracttestcase.php: call to moodleform->moodleform()
       
      Invalid get_string() identifier: 'missingtype' or component 'qtype_missingtype'. Perhaps you are missing $string['missingtype'] = ''; in /var/www/moodle-master-git-remote/question/type/missingtype/lang/en/qtype_missingtype.php?
      line 293 of /lib/classes/string_manager_standard.php: call to debugging()
      line 6833 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
      line 49 of /admin/tool/qeupgradehelper/extracttestcase_form.php: call to get_string()
      line 191 of /lib/formslib.php: call to tool_qeupgradehelper_extract_options_form->definition()
      line 49 of /admin/tool/qeupgradehelper/extracttestcase.php: call to moodleform->moodleform()
       
      Invalid get_string() identifier: 'multianswer' or component 'qtype_multianswer'. Perhaps you are missing $string['multianswer'] = ''; in /var/www/moodle-master-git-remote/question/type/multianswer/lang/en/qtype_multianswer.php?
      line 293 of /lib/classes/string_manager_standard.php: call to debugging()
      line 6833 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
      line 49 of /admin/tool/qeupgradehelper/extracttestcase_form.php: call to get_string()
      line 191 of /lib/formslib.php: call to tool_qeupgradehelper_extract_options_form->definition()
      line 49 of /admin/tool/qeupgradehelper/extracttestcase.php: call to moodleform->moodleform()
       
      Invalid get_string() identifier: 'multichoice' or component 'qtype_multichoice'. Perhaps you are missing $string['multichoice'] = ''; in /var/www/moodle-master-git-remote/question/type/multichoice/lang/en/qtype_multichoice.php?
      line 293 of /lib/classes/string_manager_standard.php: call to debugging()
      line 6833 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
      line 49 of /admin/tool/qeupgradehelper/extracttestcase_form.php: call to get_string()
      line 191 of /lib/formslib.php: call to tool_qeupgradehelper_extract_options_form->definition()
      line 49 of /admin/tool/qeupgradehelper/extracttestcase.php: call to moodleform->moodleform()
       
      Invalid get_string() identifier: 'numerical' or component 'qtype_numerical'. Perhaps you are missing $string['numerical'] = ''; in /var/www/moodle-master-git-remote/question/type/numerical/lang/en/qtype_numerical.php?
      line 293 of /lib/classes/string_manager_standard.php: call to debugging()
      line 6833 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
      line 49 of /admin/tool/qeupgradehelper/extracttestcase_form.php: call to get_string()
      line 191 of /lib/formslib.php: call to tool_qeupgradehelper_extract_options_form->definition()
      line 49 of /admin/tool/qeupgradehelper/extracttestcase.php: call to moodleform->moodleform()
       
      Invalid get_string() identifier: 'random' or component 'qtype_random'. Perhaps you are missing $string['random'] = ''; in /var/www/moodle-master-git-remote/question/type/random/lang/en/qtype_random.php?
      line 293 of /lib/classes/string_manager_standard.php: call to debugging()
      line 6833 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
      line 49 of /admin/tool/qeupgradehelper/extracttestcase_form.php: call to get_string()
      line 191 of /lib/formslib.php: call to tool_qeupgradehelper_extract_options_form->definition()
      line 49 of /admin/tool/qeupgradehelper/extracttestcase.php: call to moodleform->moodleform()
       
      Invalid get_string() identifier: 'randomsamatch' or component 'qtype_randomsamatch'. Perhaps you are missing $string['randomsamatch'] = ''; in /var/www/moodle-master-git-remote/question/type/randomsamatch/lang/en/qtype_randomsamatch.php?
      line 293 of /lib/classes/string_manager_standard.php: call to debugging()
      line 6833 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
      line 49 of /admin/tool/qeupgradehelper/extracttestcase_form.php: call to get_string()
      line 191 of /lib/formslib.php: call to tool_qeupgradehelper_extract_options_form->definition()
      line 49 of /admin/tool/qeupgradehelper/extracttestcase.php: call to moodleform->moodleform()
       
      Invalid get_string() identifier: 'shortanswer' or component 'qtype_shortanswer'. Perhaps you are missing $string['shortanswer'] = ''; in /var/www/moodle-master-git-remote/question/type/shortanswer/lang/en/qtype_shortanswer.php?
      line 293 of /lib/classes/string_manager_standard.php: call to debugging()
      line 6833 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
      line 49 of /admin/tool/qeupgradehelper/extracttestcase_form.php: call to get_string()
      line 191 of /lib/formslib.php: call to tool_qeupgradehelper_extract_options_form->definition()
      line 49 of /admin/tool/qeupgradehelper/extracttestcase.php: call to moodleform->moodleform()
       
      Invalid get_string() identifier: 'truefalse' or component 'qtype_truefalse'. Perhaps you are missing $string['truefalse'] = ''; in /var/www/moodle-master-git-remote/question/type/truefalse/lang/en/qtype_truefalse.php?
      line 293 of /lib/classes/string_manager_standard.php: call to debugging()
      line 6833 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
      line 49 of /admin/tool/qeupgradehelper/extracttestcase_form.php: call to get_string()
      line 191 of /lib/formslib.php: call to tool_qeupgradehelper_extract_options_form->definition()
      line 49 of /admin/tool/qeupgradehelper/extracttestcase.php: call to moodleform->moodleform()
      

            matteo Matteo Scaramuccia
            matteo Matteo Scaramuccia
            Tim Hunt Tim Hunt
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Andrew Davis Andrew Davis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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