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

error_question_hint_missing_in_db when Importing Quizes into New Course

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 2.2.7, 2.3.4
    • 2.2.1, 2.2.3
    • Backup, Quiz
    • MOODLE_22_STABLE
    • MOODLE_22_STABLE, MOODLE_23_STABLE
    • Hide

      It may be worth testing this at the same time as MDL-36683, which is similar. As for MDL-36683, it is probably worth verifying that you can reproduce the original problem before you test the fix.

      1. Create a question of any type, adding some hints that contain multiple paragraphs. (Most importantly, the hint text much contain at least on \r character.)

      2. Create a quiz in that course.

      3. Try to duplicate that quiz. Verify that it works.

      Show
      It may be worth testing this at the same time as MDL-36683 , which is similar. As for MDL-36683 , it is probably worth verifying that you can reproduce the original problem before you test the fix. 1. Create a question of any type, adding some hints that contain multiple paragraphs. (Most importantly, the hint text much contain at least on \r character.) 2. Create a quiz in that course. 3. Try to duplicate that quiz. Verify that it works.

      From http://moodle.org/mod/forum/discuss.php?d=203973

      I can successfully copy everything but quizzes. When I try to import the quizzes, bam, this error. I can successfully recreate the quizzes in the new course and everything behaves as it should, to the best of my knowledge.

      I recently did transition to using the "Question Sharer" role and saving my question bank at the category level instead of the course level.

      To Reproduce:
      Here is what I've done to replicate this problem. I don't know how many of these steps are important.

      I created two courses, both blank "test bed" courses.

      I created a new category and a single MC question inside the question bank. This category and question are at the category level (so they could be shared across many courses).

      I created a quiz in one of my blank courses. I left all of the settings in the quiz as defaults, including "How questions behave" as "Deferred feedback."

      I added my single MC question to this quiz.

      I went into my second blank course and attempted to import only the quiz I just created from my first blank course.

      I got the "error_question_hint_missing_in_db" error at that point.

      I think this is especially interesting because Question Hints are thoroughly optional. 99.5% of my questions do not have hints in them, and the quiz activity is perfectly fine with having things in the hint blocks or not. While the import function is somehow looking for hints as a required element?

            jmvedrine Jean-Michel Vedrine
            mikeholzer Mike Holzer
            Tim Hunt Tim Hunt
            Dan Poltawski Dan Poltawski
            Rajesh Taneja Rajesh Taneja
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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