'Files' Link Broken Inside Class...

'Files' Link Broken Inside Class...

by Jim Hale -
Number of replies: 10

I am sooooooooooo glad I came across this package - I think it'll be the perfect addition to my website since everything is FREE! smile

Anyhow - I'm still in the experimental stage(s) of setting up classes and when I go inside of a class I click the 'Files' link and get a page not found. Am I supposed to create anything manually?

Thanks! smile

Average of ratings: -
In reply to Jim Hale

Re: 'Files' Link Broken Inside Class...

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
See the FAQ: http://moodle.org/doc/?frame=faq.html

Don't feel bad for not noticing it as I just this second put that page up. smile
In reply to Martin Dougiamas

Re: 'Files' Link Broken Inside Class...

by Jim Hale -

Thanks for the reply Martin. smile

Unfortunatly that didn't work either - I still got the page not found. :/

In reply to Jim Hale

Re: 'Files' Link Broken Inside Class...

by Petri Asikainen -
Have you setup $CFG->dataroot in config.php correctly? Are permissions of directory OK and webserver prosess can read files from $CFG->dataroot.

Cheers,
Petri
In reply to Petri Asikainen

Re: 'Files' Link Broken Inside Class...

by Jim Hale -

Yep - Just got done triple-checking that too. The folder is $CFG->dataroot = "/home/e-smith/files/ibays/moodle/data"; which is a folder outside my web structure and it is writeable by ALL.

 

In reply to Jim Hale

Re: 'Files' Link Broken Inside Class...ARGHHHH! :)

by Jim Hale -

OK - this has reached the level of offically driving me crazy...

my site is located at http://halelearning.no-ip.info.

When I go into my class (as Admin), under the Administration menu when I right-click the 'graphic' for files, the properties shows 'http://halelearning.no-ip.info/files/pix/files.gif' and if I right-click the link itself, the properties says 'http://halelearning.no-ip.info/files/index.php?id=2'

These paths are correct - I've even gone and given read/write access to EVERYONE to the files dir - still no go.

Can someone PLEASE point out what I am obviously missing? Also I only have ONE class in the database should the 'id=2' be correct or shouldn't that be 'id=1'.

 

In reply to Jim Hale

Re: 'Files' Link Broken Inside Class...ARGHHHH! :)

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
We can't have Moodle causing insanity!

Those URLs look fine. (id=1 is the front page)

It seems that the script files/index.php is in fact completely missing from your Moodle distribution.

Perhaps it got lost when you copied files to the server. You might want to copy them all again in case other files are missing.
In reply to Martin Dougiamas

Re: 'Files' Link Broken Inside Class...ARGHHHH! :)

by Jim Hale -

THAT'S what's making me crazy. smile

It *IS* there. And so is the files/pix/files.gif. I can copy these files over to my windows machine, load the index.php into phpedit and view it and I can load the gif into any viewer and see that it's a little file folder. smile

I have the whole 'files' structure there - and it seems to be the only aspect of moodle I can't get to (except for uploading user graphics - but I'll tackle that AFTER the file issue.) smile 

I even checked my version of php and it's above the minimum requirements. smile

In reply to Martin Dougiamas

I FOUND IT! I FOUND IT! :)

by Jim Hale -

OK - here's what I discovered...

I'm using an SME Server (www.e-smith.org) to run all of my stuff. When you ceate an I-Bay (Information Bay - used to hold websites and such) - it creates:

/CGI - to hold cgi programs for the website

/HTML - this is the website root.

*AND*

/FILES - holds anything else you need it to.

So what's happening is when someone tries to go to http://halelearning.no-ip.info/files/index.php it's looking in the /Files folder that the SERVER creates (not the moodle one) - and needless to say - file(s) not found. It's the way this thing sets up aliases and it's universal.

Now to fix this, I have 2 choices - 1) I can rename the moodle 'files' to 'file', go thru every file related to moodle, look for any references to 'files' and change those to 'file' or 2) find a way to locally reassign the alias 'files' to point to the moodle 'files' instead of the SME Server files. Is there a way to do that with .htaccess?

Thanks for your patience! smile

In reply to Jim Hale

Okie Dokie... It's fixed Now...

by Jim Hale -

I was able to go into the httpd.conf file, locate the lines for moodle, '#' out the alias lines related to 'files' and voila! I have access to the files sections of the classes...

Now for the net step... Student pics.  smile

In reply to Jim Hale

Re: Okie Dokie... It's fixed Now...

by Igor Burger -
Oke but this is a short time solution...

A better way is to put is in the template system.
But that's a problem because there are a lot files in :

/etc/e-smith/templates/etc/httpd/conf/httpd.conf/

and wich one is the right one to leave out the 'files' alias.

Anyone did that already?

And how are your're student pics going?