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

GIFT import fails for 2.0

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.0
    • 2.0
    • Questions
    • None
    • MySQL
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE

    Description

      Using 2.0 RC1 downloaded on 6 November 2010, I attempted to upload questions in GIFT format for both true/false and multichoice and encountered the same error with both types: "Error writing to database".

      I attempted to trace the cause and discovered that the value of $feedbackformat; was the problem. If the following kinds of statements in both the truefalse/questiontype.php and multichoice/questiontype.php were changed from

      $true->feedbackformat = $feedbackformat;

      to

      $true->feedbackformat = "";

      then the routine finishes without any additional errors. Unfortunately, I couldn't discover exactly where the default value for $feedbackformat is assigned.

      Attachments

        Issue Links

          Activity

            People

              timhunt Tim Hunt
              trobb Thomas Robb
              Helen Foster Helen Foster
              Safat Shahin, Tim Hunt, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                24/Nov/10