There are two ways you can solve this problem:
session.auto_start = 1
session.auto_start = 0
php_value session.auto_start "0"
file_uploads = Off
file_uploads = On
php_value file_uploads "On"
IIS:
cgi.fix_pathinfo=1
Apache 1:
Apache 2:
AcceptPathInfo on
For random questions, question.parent should equal question.id. ' . 'There are some questions in your database for which this is not true. ' . 'One way that this could have happened is for random questions restored from backup before ' . 'MDL-5482 was fixed.
Upgrade to Moodle 1.9.1 or later, or manually execute the SQL
UPDATE ' . $CFG->prefix . 'question SET parent = id WHERE qtype = \'random\' and parent <> id;
For each sub-question whose id is listed in ' . 'question_multianswer.sequence, its question.parent field should equal ' . 'question_multianswer.question; and each sub-question should be in the same ' . 'category as its parent. There are questions in your database for ' . 'which this is not the case. One way that this could have happened is ' . 'for multi-answer questions restored from backup before ' . 'MDL-14750 was fixed.
Upgrade to Moodle 1.9.1 or later, or manually execute the ' . 'code in question_multianswer_fix_subquestion_parents_and_categories in ' . '/question/type/multianswer/db/upgrade.php' . 'from the 1.9 stable branch.
You have questions that violate this in your databse. ' . 'You will need to investigate to determine how this happened.
It is impossible to give a solution without knowing more about ' . ' how the problem was caused. You may be able to get help from the ' . 'Quiz forum.
All question categories are linked to a context id, and, ' . 'the context they are linked to must exist. The following categories ' . 'belong to a non-existant category:
Any of these ' . 'categories that contain no questions can just be deleted form the database. ' . 'Other categories will require more thought.
You can delete the empty categories by executing the following SQL:
DELETE FROM ' . $CFG->prefix . 'question_categories WHERE NOT EXISTS (SELECT * FROM ' . $CFG->prefix . 'question q WHERE q.category = ' . $CFG->prefix . 'question_categories.id) AND NOT EXISTS (SELECT * FROM ' . $CFG->prefix . 'context con WHERE contextid = con.id)
Any remaining categories that contain questions will require more thought. ' . 'People in the Quiz forum may be able to help.
When one question category is the parent of another, then they ' . 'should both belong to the same context. This is not true for the following categories:
An automated solution is difficult. It depends whether the ' . 'parent or child category is in the wrong pace.' . 'People in the Quiz forum may be able to help.
The question categories should be arranged into tree ' . ' structures by the question_categories.parent field. Sometimes ' . ' this tree structure gets messed up.
Consider executing the following SQL queries. These fix ' . 'the problem by moving some categories to the top level.
UPDATE " . $CFG->prefix . "question_categories\n" . " SET parent = 0\n" . " WHERE id IN (" . implode(',', array_keys($missingparent)) . ");
UPDATE " . $CFG->prefix . "question_categories\n" . " SET parent = 0\n" . " WHERE id IN (" . implode(',', array_keys($loops)) . ");
The course categories should be arranged into tree ' . ' structures by the course_categories.parent field. Sometimes ' . ' this tree structure gets messed up.
UPDATE " . $CFG->prefix . "course_categories\n" . " SET parent = 0, depth = 1, path = CONCAT('/', id)\n" . " WHERE id IN (" . implode(',', array_keys($missingparent)) . ");
UPDATE " . $CFG->prefix . "course_categories\n" . " SET parent = 0, depth = 1, path = CONCAT('/', id)\n" . " WHERE id IN (" . implode(',', array_keys($loops)) . ");