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

Lesson question import leads to string error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.1
    • Component/s: Lesson
    • Labels:
    • Environment:
      qa.moodle.net
    • Testing Instructions:
      Hide

      1. log in as a teacher
      2. create a new lesson
      3. add a page
      4. click the link "Import questions"

      You should see a page that allows a question file to be imported

      Show
      1. log in as a teacher 2. create a new lesson 3. add a page 4. click the link "Import questions" You should see a page that allows a question file to be imported
    • Affected Branches:
      MOODLE_21_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE
    • Pull Master Branch:
      wip-mdl-27956-master

      Description

      When editing a lesson, there is an option to import questions (in GIFT format).

      Reproduction steps (on qa.moodle.net):

      1. log in as a teacher
      2. create a new lesson
      3. add a page
      4. click the link "Import questions"

      The following error information is presented

      Invalid get_string() identifier: 'gift' or component 'quiz'
      line 5910 of /lib/moodlelib.php: call to debugging()
      line 6500 of /lib/moodlelib.php: call to core_string_manager->get_string()
      line 880 of /mod/lesson/lib.php: call to get_string()
      line 55 of /mod/lesson/import.php: call to lesson_get_import_export_formats()
       
      ( ! ) Fatal error: Access level to qformat_multianswer::readquestions() must be public (as in class qformat_default) in /html/question/format/multianswer/format.php on line 79
      Call Stack
      #	Time	Memory	Function	Location
      1	0.0066	691520	{main}( )	../import.php:0
      2	0.2115	45708976	lesson_get_import_export_formats( )	../import.php:55

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  1/Jul/11