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

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.4
    • Fix Version/s: 1.9.14
    • Component/s: Questions
    • Labels:
    • Environment:
      Moodle 1.9.4+ build 20090422, PHP 5.2.8, MYSQL 5.0.67, WINDOWS 2003 SERVER, IIS WEB SERVER
    • Database:
      MySQL
    • Testing Instructions:
      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.
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      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

              Assignee:
              timhunt Tim Hunt
              Reporter:
              raimon Raimundo Alba
              Peer reviewer:
              Tim Hunt
              Integrator:
              Sam Hemelryk
              Tester:
              Eloy Lafuente (stronk7)
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              7 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/Oct/11