Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-67000

Importing large number of questions result in memory_limit error

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Not a bug
    • Icon: Minor Minor
    • None
    • 3.5.8
    • Questions
    • None
    • MOODLE_35_STABLE

      Error when mporting a large question file (around 360MB):

      Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 67108872 bytes) in /var/www/html/question/format.php on line 615
      Call Stack

      1. Time Memory Function Location
        1 0.0093 404520 {main}( ) .../import.php:0
        2 1.0923 9727608 qformat_xml->importprocess( ) .../import.php:123
        3 5.4069 9711472 qformat_xml->readdata( ??? ) .../format.php:312
        4 7.0664 9711472 file ( ??? ) .../format.php:615

      The issue seem to be fixed for smaller question file:

      https://tracker.moodle.org/browse/MDL-50806

       

      It wonder if the memory_limit can be raised based on the file size (or configurable) for question import.

       

            Unassigned Unassigned
            Nguyen Nathan Nguyen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.