Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.0.3, 2.1.3, 2.2, 2.3
-
Any
-
MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
-
MOODLE_21_STABLE, MOODLE_22_STABLE
-
MDL-27432_gd_error -
Description
to reproduce create a new database activity. It will complain you have no fields defined. Elect to use a preset collection of fields. Select image gallery. As a student upload an image through the activity.
I get the following php error Fatal error: Call to undefined function imagecreatefromstring() in /var/www/moodle/lib/filestorage/file_storage.php on line 994
Oddly the teacher seems to be able to see the uploaded image but the student cant.
Anyhow, we either need to make GD a firm requirement of Moodle (preventing install unless its present) or the database activity needs to avoid the error should GD not be present. Currently the environment does suggest the GD extension but suggesting it then throwing errors is pretty crappy.