I've just installed v1.9.2+ on my computer. I've created a course and when I try to upload a file to the files folder, I get an error that says "Missing a temporary folder". The temp subdirectory is in my moodledata directory and all the permissions are 777.
A search reveals that nobody else has asked about this problem. Any ideas? It must be something simple.
Thanks very much,
Phil
Solved: "Missing a temporary folder" when uploading file to course
; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
upload_tmp_dir = "/Applications/xampp/xamppfiles/temp"
Phil
Re: Solved: "Missing a temporary folder" when uploading file to course
Re: Solved: "Missing a temporary folder" when uploading file to course
I'm not sure if I can help. I'm not a developer, so I'm just figuring stuff out as I go. That particular solution was for a project on my own computer, so I have access to the php.ini file. I wasn't running into that issue when uploading to my live site, so I haven't had to deal with it there.
One thing I know that you can do is create your own php.ini file in a simple text editor like notepad and upload it to your site. We've done that for different problems and it's uploaded to about 6 different areas on our site, including in the moodle directory and in several subdirectories under that such as admin, auth, backup, blocks, and calendar. I think that's all.
So you could try making this file called php.ini with my solution in it:
upload_tmp_dir = "pathtoyourtempfolder"
Hope that helps. I'm off for the day, but I'll be around tomorrow.
Phil
Re: Solved: "Missing a temporary folder" when uploading file to course
I am contacting my host provider to see what they can do for me.
Kerry
Re: Solved: "Missing a temporary folder" when uploading file to course
upload_tmp_dir = "/tmp"
I am still getting the error message - Missing a temporary folder ; while trying to upload the file.
Re: Solved: "Missing a temporary folder" when uploading file to course
Re: Solved: "Missing a temporary folder" when uploading file to course
Can you please tell me where the temporary directory is located ... I need to fix this issue and can't find a temporary directory.
Thanks
Re: Solved: "Missing a temporary folder" when uploading file to course
I am also having trouble with this, after reading the terse responses given to others also having the same problem I am none the wiser.
I know where my php.ini file is, and I know how to edit it but where is "/tmp" pointing too, the one in the php installation folder, the one in the wwwroot or the Moodle installation on my IIS or the one on C:\ drive. Also what sort of access level does IWAM and IUSR require to be able to upload files to Moodle. Would be nice if a someone whould be so kind as to post some clear instructions because without this feature Moodle is pretty limited.
Thanks in advanced.
Re: Solved: "Missing a temporary folder" when uploading file to course
This still is not resolved? All I think I need is where the private files are stored. Then I can just ftp my backups and choose which one I want. However, as simple as that seems I can't find even the backup file that I made with my new 2.03 Moodle. Many hours wasted...
Re: "Missing a temporary folder" when uploading file to course
I also received the message "Missing a temporary folder" after trying to upload a file. I restarted the computer and the message dissapeared.
I don't know much about this error, but I do know that since it's a temporary folder, you should probably just reset some stuff before uploading to the server. In my case I restarted the server and deleted the last activity I added. Then everything worked out.
I suspect that in my case I might have stopped an upload while it was busy. Which means that the upload wasn't a success.
Re: "Missing a temporary folder" when uploading file to course
This problem take place when your upload directory is too big, After deleted my temp folder this problem's been revolved
I got this "missing a temporary folder" today. It looks like my issue was with the php\sessions folder being too large. It had two years worth of files totaling over 60 gig. I deleted all files from the earliest year, freeing up about half the space. The upload worked after that. I hope that is the complete fix.
BTW, our platform is Windows and MSSQL server. Moodle version 2.6.
Edit: Turns out, in my php.ini file, the upload_tmp_dir setting and the session.save_path setting both point to the php\sessions folder. So the "missing a temporary folder" message makes sense if that folder was maxxed out.