Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.7.5, 2.8.3
-
Component/s: Questions
-
Testing Instructions:
-
Affected Branches:MOODLE_27_STABLE, MOODLE_28_STABLE
-
Fixed Branches:MOODLE_27_STABLE, MOODLE_28_STABLE
-
Pull from Repository:
-
Pull Master Branch:
-
Pull Master Diff URL:
Description
I only found this due to a bug in the STACK question type (https://github.com/maths/moodle-qtype_stack/issues/116) but it is worth fixing now it has been found.
See the attached test.php script (save into the root of your Moodle).
The point is not that the image is not displayed. (Of course it is not, we just made a reference to a non-existent image.) The problem is that an error is logged:
PHP Warning: array_key_exists(): The first argument should be either a string or an integer in /vle/www_root/lib/classes/component.php on line 872