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

Unable to import xml question files over 10000KB

XMLWordPrintable

    • MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_30_STABLE, MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE
    • MOODLE_35_STABLE
    • MDL-38829-master
    • Hide
      1. Go to the question bank for a course.
      2. Create some questions containing large images.
      3. Go to Question bank -> Export, and export the questions in Moodle XML format.
      4. Verify that the export file size if more than 10MB. If not, create more questions, or add more images.
      5. In another course, go to Question bank -> Import, and import the file.
      6. Verify that the import succeeds and that the imported questions are an accurate copy.
      Show
      Go to the question bank for a course. Create some questions containing large images. Go to Question bank -> Export, and export the questions in Moodle XML format. Verify that the export file size if more than 10MB. If not, create more questions, or add more images. In another course, go to Question bank -> Import, and import the file. Verify that the import succeeds and that the imported questions are an accurate copy.

      Moodle 2.2.9 with libxml v 2.7.6

      When importing a XML question file that exceeds ~10000KB you receive an error:

      Parsing questions from import file.
      Error importing question Error parsing XML: No memory at line 141214, char 8
      There are no questions in the import file

      Import error

      More information about this error
      Stack trace:

      line 435 of /lib/setuplib.php: moodle_exception thrown
      line 120 of /question/import.php: call to print_error()

      However if I import the same file into the site with libxml version < 2.7.3 - the import works fine.

      I have tested with 2.3.6+ and 2.4.3+ code as well.

      I believe this is related to:

      https://bugs.php.net/bug.php?id=49660

            Unassigned Unassigned
            heather.williams Heather Williams
            Tim Hunt Tim Hunt
            Jake Dallimore Jake Dallimore
            Jake Dallimore Jake Dallimore
            Votes:
            18 Vote for this issue
            Watchers:
            31 Start watching this issue

              Created:
              Updated:
              Resolved:

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