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
-
Testing Instructions:
-
Database:MySQL
-
Affected Branches:MOODLE_19_STABLE
-
Fixed Branches:MOODLE_19_STABLE
-
Pull from Repository:
-
Pull 1.9 Branch:
-
Pull 1.9 Diff URL:
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:
- Updated 28-04-2009 ***
-
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?
Issue Links
| This issue has a non-specific relationship to: | ||||
| MDL-18953 | Importing questions files to Lessons don't work |
|
|
|
Thank you!
Several people have reported this before in the forums, and I have never been able to work out what the problem was. It should be quite easy to fix now.
Please could I ask you to check one more thing for me: Does uploading files directly into a form, for example, uploading a new picture into your user profile, work for you?
(Basically, I want to work out, is this a problem with any form that does file upload, or is it just a problem with the question import form.)