I'm running Moodle 2.0.4 on PHP 5.2.17 and MySQL 5.0.92 on a shared hosting solution.
Installation and migration from 1.9 was no big deal and everything works quiet fine except of file downloads. It doesn't matter on which way one submits files (Upload, etc.), if you try to download them you'll receive Error "invalidargorconf". Unfortunately the help-topic to this error isn't very informative (http://docs.moodle.org/20/en/error/moodle/invalidargorconf). I had a look into the source of file.php. The first lines suggest to retrieve the file via file.php?file=/139/index.wml instead of file.php/139/index.wml as provided by Moodle, what is successfull. The error seems to be connected with a variable "$relativepath" but I don't get what that stands for.
Somewhere on the internet I read about a "legacy file mode", is there anything like this and if yes how do I enable this mode?
Thanks for your help
Regards from Germany
PS: The file type and the course doesn't matter it's always the same...
I could gather some more information:
The problem is that $relativepath is always empty, because get_file_argument() always returns an empty string. But why? As a reminder: It works properly by calling the file like this "file.php?file=/139/index.wml".
Where is get_file_argument() defined so I might have a look at it?
Is this an error in Moodle source? Is there any patch?
Your help is highly appreciated
Ok, it's solved. The bug is about an issue of all current Moodle versions in 1&1 (German Hoster) shared hosting environments.
See here for fix and explaination: http://moodle.org/mod/forum/discuss.php?d=181931