-
Bug
-
Resolution: Fixed
-
Minor
-
2.3.3
-
None
-
MOODLE_23_STABLE
-
MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
-
question_preview_question_pluginfile contains a require_login test using a cmid guessed from a contextid in the URL. However, this is not always correct. Functions like quiz_question_pluginfile later do the correct require_login call, and that leads to errors like
.../php-logs/php.log.5:[18-Nov-2012 20:32:48 Europe/London] PHP Notice: Coding problem: unsupported modification of PAGE->context from 70 to 70
- line 788 of /lib/pagelib.php: call to debugging()
- line 830 of /lib/pagelib.php: call to moodle_page->set_context()
- line 2653 of /lib/moodlelib.php: call to moodle_page->set_cm()
- line 1729 of /mod/quiz/lib.php: call to require_login()
- line 1855 of /lib/questionlib.php: call to mod_quiz_question_pluginfile()
- line 3833 of /lib/filelib.php: call to question_pluginfile()
- line 37 of /pluginfile.php: call to file_pluginfile()
in /vle/www_root/lib/weblib.php on line 2751