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

Importing files to Question bank DON'T WORK from "Import from file upload..." and WORKS from "Import from file already in course files..."

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.9.4
    • 1.9.14
    • Questions
    • Moodle 1.9.4+ build 20090422, PHP 5.2.8, MYSQL 5.0.67, WINDOWS 2003 SERVER, IIS WEB SERVER
    • MySQL
    • MOODLE_19_STABLE
    • MOODLE_19_STABLE
    • Hide

      1. Test importing questions one your normal server, to ensure this change does not cause any regressions.

      2. If you have an IIS install that demonstrated this old problem, verify that this fix actually fixes it.

      Show
      1. Test importing questions one your normal server, to ensure this change does not cause any regressions. 2. If you have an IIS install that demonstrated this old problem, verify that this fix actually fixes it.

    Description

      When importing files to Question Bank previously exported from there in any format like MOODLE XML, when trying to import using option "Import from file upload..." DON'T WORK looking like file not uploaded and a message showing this: "Parsing questions from import file. Cannot read import file (or file is empty) An error occurred during import processing".

      If you use the other option down named "Import from file already in course files..." that allow you to upload a file and select it IT WORKS PROPERLY with the same file.

          • Updated 28-04-2009 ***
            Just discovered what's happening: Looks like not taken TEMP variable enviroment properly and using a ¿default? one where Web Server user don't have write permissions to upload file:

      TEMP and TMP variables are pointting to "C:\TEMP" and discovered that it's training to write in "C:\WINDOWS\TEMP" so getting error "Cannot read import file (or file is empty) An error occurred during import processing".

      ¿Perhaps an error taken environment?

      Attachments

        Issue Links

          Activity

            People

              timhunt Tim Hunt
              raimon Raimundo Alba
              Tim Hunt Tim Hunt
              Sam Hemelryk Sam Hemelryk
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Safat Shahin, Tim Hunt, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
              Votes:
              7 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                10/Oct/11