-
Bug
-
Resolution: Fixed
-
Major
-
2.7.1
-
MOODLE_27_STABLE
-
MOODLE_27_STABLE
-
wip-
MDL-46791-master -
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()
- is a regression caused by
-
MDL-44316 Change the tag API to include the contextid and component when tagging an item.
-
- Closed
-