-
Bug
-
Resolution: Fixed
-
Minor
-
2.1
-
mysql, mac, php53
-
MOODLE_21_STABLE
-
MOODLE_21_STABLE
-
To reproduce:
1) Create calculated question with some image in the question text.
2) From the question bank page, click over the preview icon
3) The question is previewed, everything looks ok, but the image is not show.
Clicking on the image, I get this notices/warnings:
Warning: Missing argument 7 for qtype_numerical_question::check_file_access(), called in /Users/stronk7/git_moodle/integration/question/behaviour/behaviourbase.php on line 138 and defined in /Users/stronk7/git_moodle/integration/question/type/numerical/question.php on line 244
|
Call Stack
|
# Time Memory Function Location
|
1 0.0001 661600 {main}( ) ../pluginfile.php:0
|
2 0.0316 4342688 question_pluginfile( ) ../pluginfile.php:658
|
3 0.0384 4730952 question_preview_question_pluginfile( ) ../questionlib.php:1779
|
4 0.0599 5440240 question_usage_by_activity->check_file_access( ) ../previewlib.php:249
|
5 0.0599 5440240 question_attempt->check_file_access( ) ../questionusage.php:391
|
6 0.0599 5440240 question_behaviour->check_file_access( ) ../questionattempt.php:745
|
7 0.0599 5440288 qtype_numerical_question->check_file_access( ) ../behaviourbase.php:138
|
|
( ! ) Notice: Undefined variable: qa in /Users/stronk7/git_moodle/integration/question/type/numerical/question.php on line 255
|
Call Stack
|
# Time Memory Function Location
|
1 0.0001 661600 {main}( ) ../pluginfile.php:0
|
2 0.0316 4342688 question_pluginfile( ) ../pluginfile.php:658
|
3 0.0384 4730952 question_preview_question_pluginfile( ) ../questionlib.php:1779
|
4 0.0599 5440240 question_usage_by_activity->check_file_access( ) ../previewlib.php:249
|
5 0.0599 5440240 question_attempt->check_file_access( ) ../questionusage.php:391
|
6 0.0599 5440240 question_behaviour->check_file_access( ) ../questionattempt.php:745
|
7 0.0599 5440288 qtype_numerical_question->check_file_access( ) ../behaviourbase.php:138
|
|
( ! ) Notice: Undefined variable: args in /Users/stronk7/git_moodle/integration/question/type/numerical/question.php on line 256
|
Call Stack
|
# Time Memory Function Location
|
1 0.0001 661600 {main}( ) ../pluginfile.php:0
|
2 0.0316 4342688 question_pluginfile( ) ../pluginfile.php:658
|
3 0.0384 4730952 question_preview_question_pluginfile( ) ../questionlib.php:1779
|
4 0.0599 5440240 question_usage_by_activity->check_file_access( ) ../previewlib.php:249
|
5 0.0599 5440240 question_attempt->check_file_access( ) ../questionusage.php:391
|
6 0.0599 5440240 question_behaviour->check_file_access( ) ../questionattempt.php:745
|
7 0.0599 5440288 qtype_numerical_question->check_file_access( ) ../behaviourbase.php:138
|
|
( ! ) Notice: Undefined variable: forcedownload in /Users/stronk7/git_moodle/integration/question/type/numerical/question.php on line 256
|
Call Stack
|
# Time Memory Function Location
|
1 0.0001 661600 {main}( ) ../pluginfile.php:0
|
2 0.0316 4342688 question_pluginfile( ) ../pluginfile.php:658
|
3 0.0384 4730952 question_preview_question_pluginfile( ) ../questionlib.php:1779
|
4 0.0599 5440240 question_usage_by_activity->check_file_access( ) ../previewlib.php:249
|
5 0.0599 5440240 question_attempt->check_file_access( ) ../questionusage.php:391
|
6 0.0599 5440240 question_behaviour->check_file_access( ) ../questionattempt.php:745
|
7 0.0599 5440288 qtype_numerical_question->check_file_access( ) ../behaviourbase.php:138
|
Ciao
- blocks
-
MDL-27738 META Question engine rewrite - tasks to complete after main integration
- Closed