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

Lesson question import leads to string error

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.1
    • 2.1
    • Lesson
    • qa.moodle.net
    • MOODLE_21_STABLE
    • MOODLE_21_STABLE
    • wip-mdl-27956-master
    • 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

    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

              rajeshtaneja Rajesh Taneja
              salvetore Michael de Raadt
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Nobody Nobody
              Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                1/Jul/11