Unable to upload files, please help!

Unable to upload files, please help!

von Taliesin The Bard -
Anzahl Antworten: 9

I had a friend set moodle up for me on my webspace, and everything works fine, except for one thing: uploading files does not want to work at all.

When the students want to upload their assignment, they get this error:

Warning: mkdir(): SAFE MODE Restriction in effect. The script whose uid is 10071 is not allowed to access /home/httpd/vhosts/druidcircle.net/httpdocs/moodledata/4 owned by uid 48 in /home/httpd/vhosts/druidcircle.net/httpdocs/moodle/lib/moodlelib.php on line 1440

ERROR: Could not find or create a directory (/home/httpd/vhosts/druidcircle.net/httpdocs/moodledata/4/moddata)


Sorry, an error in the system prevents you from uploading files: contact your teacher or system administrator

When I log in as administrator and go to "Site Files", I get this right away:

Note: files placed here can be accessed by anyone


Warning: opendir(): SAFE MODE Restriction in effect. The script whose uid is 10071 is not allowed to access /home/httpd/vhosts/druidcircle.net/httpdocs/moodledata/1/ owned by uid 48 in /home/httpd/vhosts/druidcircle.net/httpdocs/moodle/files/index.php on line 660

Warning: opendir(/home/httpd/vhosts/druidcircle.net/httpdocs/moodledata/1/): failed to open dir: Success in /home/httpd/vhosts/druidcircle.net/httpdocs/moodle/files/index.php on line 660

Warning: readdir(): supplied argument is not a valid Directory resource in /home/httpd/vhosts/druidcircle.net/httpdocs/moodle/files/index.php on line 661

Warning: closedir(): supplied argument is not a valid Directory resource in /home/httpd/vhosts/druidcircle.net/httpdocs/moodle/files/index.php on line 672

When I click and try to make a folder then, I get this:

Note: files placed here can be accessed by anyone


Warning: mkdir(): SAFE MODE Restriction in effect. The script whose uid is 10071 is not allowed to access /home/httpd/vhosts/druidcircle.net/httpdocs/moodledata/1 owned by uid 48 in /home/httpd/vhosts/druidcircle.net/httpdocs/moodle/lib/moodlelib.php on line 1440

ERROR: Could not find or create a directory (/home/httpd/vhosts/druidcircle.net/httpdocs/moodledata/1///test)

Error: could not create test
Warning: opendir(): SAFE MODE Restriction in effect. The script whose uid is 10071 is not allowed to access /home/httpd/vhosts/druidcircle.net/httpdocs/moodledata/1/ owned by uid 48 in /home/httpd/vhosts/druidcircle.net/httpdocs/moodle/files/index.php on line 660

Warning: opendir(/home/httpd/vhosts/druidcircle.net/httpdocs/moodledata/1/): failed to open dir: No such file or directory in /home/httpd/vhosts/druidcircle.net/httpdocs/moodle/files/index.php on line 660

Warning: readdir(): supplied argument is not a valid Directory resource in /home/httpd/vhosts/druidcircle.net/httpdocs/moodle/files/index.php on line 661

Warning: closedir(): supplied argument is not a valid Directory resource in /home/httpd/vhosts/druidcircle.net/httpdocs/moodle/files/index.php on line 672

When I try to upload a file there (in the admin area, I mean), I get this:

Note: files placed here can be accessed by anyone


Warning: move_uploaded_file(): SAFE MODE Restriction in effect. The script whose uid is 10071 is not allowed to access /home/httpd/vhosts/druidcircle.net/httpdocs/moodledata/1 owned by uid 48 in /home/httpd/vhosts/druidcircle.net/httpdocs/moodle/files/index.php on line 124

An unknown problem occurred while uploading the file 'Reserveringsformulier_Mark.doc' (perhaps it was too large?)


Warning: opendir(): SAFE MODE Restriction in effect. The script whose uid is 10071 is not allowed to access /home/httpd/vhosts/druidcircle.net/httpdocs/moodledata/1/ owned by uid 48 in /home/httpd/vhosts/druidcircle.net/httpdocs/moodle/files/index.php on line 660

Warning: opendir(/home/httpd/vhosts/druidcircle.net/httpdocs/moodledata/1/): failed to open dir: No such file or directory in /home/httpd/vhosts/druidcircle.net/httpdocs/moodle/files/index.php on line 660

Warning: readdir(): supplied argument is not a valid Directory resource in /home/httpd/vhosts/druidcircle.net/httpdocs/moodle/files/index.php on line 661

Warning: closedir(): supplied argument is not a valid Directory resource in /home/httpd/vhosts/druidcircle.net/httpdocs/moodle/files/index.php on line 672

This is most annoying because it stops our students from actually using the moodle system for the courses, and I don't want to lose their interest because of a technical problem. Please help. Thanks!

Als Antwort auf Taliesin The Bard

Re: Unable to upload files, please help!

von Przemyslaw Stencel -
I'm no expert, but it seems to me that the problem lies in the fact that the Safe Mode is turned on for your site. Moodle requires Safe Mode to be off - I'd recommend talking to your provider about this.
Als Antwort auf Taliesin The Bard

Re: Unable to upload files, please help!

von Drew Buddie -

I am not an expert (Sean Keogh has helped me immeasurably) but it is important that SAFE MODE is OFF - and this is something that is dictated by you web space provider.  You need to establish with them that it can be turned off.  If this can't be done through them ie. they will not permit it, my humble guess is that you'll need to find a different web space provider traurig  I am with EASYSPACE (through whom you an also buy domain names.  With them SAFE MODE can be off and apart from some minor gltiches, all is working well.

Drew

Als Antwort auf Drew Buddie

Re: Unable to upload files, please help!

von Taliesin The Bard -

Hello again,

thank you for your replies. I have emailed my hosting company, and it appears that they have agreed to my request.

I can now create directories, have files uploaded and all that, and none of the errors occur any more.

BUT there is another problem now, however: whenever a document is uploaded, and I want to access it (for example, you are logged in as admin and you want to click on an uploaded assignment of a student), it gives 404 file not found.

It tries to find the document in this URL on my server:

http://www.druidcircle.net/moodle/file.php/4/moddata/assignment/5/64/

Though I have set it up to place files in the /moodlefiles/ directory.

Can anyone help? Thanks!

Als Antwort auf Taliesin The Bard

Re: Unable to upload files, please help!

von Martin Bruckbauer -
i have exactly the same problem (so you are not alone - if  this cheers you up...)

so please - experts - can anybody help us?
Als Antwort auf Martin Bruckbauer

Re: Unable to upload files, please help!

von Taliesin The Bard -

Actually, I happened to find the solution to this problem after I posted that message, and it's a very easy solution.

Just go to Administration > Configuration > Variables

Look up slasharguments on that page.

Change the setting (you can only choose between two) and it'll probably work right away lächelnd

Hope that resolves your problem too.

Als Antwort auf Taliesin The Bard

Re: Unable to upload files, please help!

von Martin Bruckbauer -
Exactly - that's it!
Thanx very much!
Als Antwort auf Martin Bruckbauer

Re: Unable to upload files, please help!

von Crafton Williams -
Hi all:

I can upload a file to a folder that i created within moodle. However, I get an error whenever i try to upload a file to a folder that has been unzipped from within moodle. This is the error i get:

Warning: Unable to create '/usr/moodle_data/files/6/Course_Development_Library/MS65B/test.html': No such file or directory in /usr/moodle/moodle/files/index.php on line 124 Warning: Unable to move '/tmp/phpXUDZtE' to '/usr/moodle_data/files/6/Course_Development_Library/MS65B/test.html' in /usr/moodle/moodle/files/index.php on line 124 An unknown problem occurred while uploading the file 'test.html' (perhaps it was too large?) Warning: OpenDir: No such file or directory (errno 2) in /usr/moodle/moodle/files/index.php on line 660 Warning: readdir(): supplied argument is not a valid Directory resource in /usr/moodle/moodle/files/index.php on line 661 Warning: closedir(): supplied argument is not a valid Directory resource in /usr/moodle/moodle/files/index.php on line 672

Does anyone know whether this could possibly be a safe mode issue?

Crafton