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

Question Import of GIFT for True/False Question Type Reports Error and Fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.8
    • Fix Version/s: 1.8, 1.9
    • Component/s: Questions
    • Labels:
      None
    • Environment:
      WinXP, PHP 5.2, MySQL 5.x, Apache 2.2.x
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      I have begun some testing of 18_stable (beta) and was trying to test some features so I started by exporting some questions from 1.6+ in the GIFT format and then importing them. In the process, I get a "An error occurred during import processing" - Could not insert quiz answer "true")!

      from /question/import.php

      I am attaching a GIFT formatted text file of questions. Of particular concern is that it does add in to the question database the true/false question that it fails on; however, then if I try to preview the question I get an:

      Error: Missing question options! and Error: Could not start a new attempt at the quiz message which basically just mucks up the category because there are some unusable questions that cause errors.

      To reproduce, attempt to import questions using the attached GIFT text file - or any GIFT with T/F questions.

      Let me know if you have any questions or need additional information. Peace.

        Attachments

          Activity

            People

            Assignee:
            howardsmiller Howard Miller
            Reporter:
            aborrow Anthony Borrow
            Tester:
            Nobody
            Participants:
            Component watchers:
            Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              31/Mar/07