Simple problem but can't find the answer!

Simple problem but can't find the answer!

by Jonathan Smith -
Number of replies: 3
I have used the upload review assignment to upload a file for a pupil.

However when the student clicks on the link they get a "can't find file" error

The link takes them to: http://www.portsmouthhigh.org.uk/moodlee/mod/assignment/type/au/file.php/5/moddata/assignment/97/responses/5/232/1._Computers_and_Copyright_a.doc

It should be:
http://www.portsmouthhigh.org.uk/moodle/mod/assignment/type/au/file.php/5/moddata/assignment/97/responses/5/232/1._Computers_and_Copyright_a.doc

If I manually edit the path in my browser the file opens OK so the file is in the correct place.

Why has the path been changed to moodlee?
Attachment 1.png
Average of ratings: -
In reply to Jonathan Smith

Re: Simple problem but can't find the answer!

by Jeffery Watkins -
In your main config.php file, make sure you have the correct dirroot. The extra e might be there.

$CFG->dirroot = '/home/example/public_html/moodle';

Check dataroot also.

$CFG->dataroot = '/home/example/moodledata';

Also, looks like you need to put the language files for that Upload and Review assignment in your language folder. That will get rid of the brackets around the text.

feedbackfromteacher

hope this helps.

Jeff
In reply to Jeffery Watkins

Re: Simple problem but can't find the answer!

by Jonathan Smith -

Thanks for the reply.

That was the first place I checked but everything is OK there. Also the rest of the site works perfectly so I assume that $CFG->dirroot and $CFG->dataroot is OK.

It must be picking it up some where else.

More research indicates that I am not alone. There is a suggested solution at

http://moodle.org/mod/forum/discuss.php?d=46829#218199

I haven't tried the solution suggested. I had been using the original Humboldt module  but found an upgraded one in the forums which solved the problemsI #

it also sorted the issues withe thge language file.