-
Bug
-
Resolution: Fixed
-
Major
-
2.2.3, 3.6.5, 3.7.1, 3.8
-
MOODLE_22_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE
-
MOODLE_36_STABLE, MOODLE_37_STABLE
-
-
We have a lot of duplicated questions with images in it and every time we try to export more as a few of these questions we get the error message "PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 14454691 bytes) in /srv/www/html/moodlep/question/format/xml/format.php on line 1135".
We found out, that all the question files that are used in a question and all the files that ever have been used in that question are copied to the new question as well when the question is duplicated.
When exporting that questions in the Moodle-XML-format, all that files are concatinated in a single export-string. One of these questions has the size of about 35 MB by now and with over 100 questions to export we get a string of almost 3,5 GB.
The default moodle memory limit is 128 MB, so we increased it.
But when we increase the memory limit to more than 2 GB we bump into a "string size limit" of 2 GB.
Our proposition: Files, which are not part of the original question any more should not be copied to a duplicated new question.
- has a non-specific relationship to
-
MDL-50806 Question imports may result in memory exhaustion
- Closed