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

Cannot import questions with tags

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.1
    • Fix Version/s: 2.7.2
    • Component/s: Questions, Tags
    • Labels:

      Description

      Create some question in Question bank, and export it using Moodle XML format.

      Than try to import that question. Following error occurs:

      Coding error detected, it must be fixed by a programmer: Invalid database query parameter value

      This can be found in error log:

      [12-Aug-2014 17:58:00 Europe/Belgrade] Database transaction aborted automatically in /home/vukas/moodles/bombardier/moodle/question/import.php
      [12-Aug-2014 17:58:00 Europe/Belgrade] Default exception handler: Coding error detected, it must be fixed by a programmer: Invalid database query parameter value Debug: Objects are are not allowed: context_course
      Error code: codingerror

      • line 782 of /lib/dml/moodle_database.php: coding_exception thrown
      • line 783 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->detect_objects()
      • line 1141 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->normalise_value()
      • line 1015 of /tag/lib.php: call to mysqli_native_moodle_database->insert_record()
      • line 168 of /tag/lib.php: call to tag_assign()
      • line 429 of /question/format.php: call to tag_set()
      • line 119 of /question/import.php: call to qformat_default->importprocess()

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  8/Sep/14