Moodle problem

Nerhzelok

Expert Member
Joined
Nov 20, 2007
Messages
2,169
Reaction score
287
Location
Cape Town
Mornin' everyone.

Wonderin' if there's a Moodle expert that can help me out. I'm having a problem with videos. When I go into a course and select a video to watch it'll say "Video not found or access denied" inside the video player. Weird thing is that it'll access other file types perfectly fine (.pdf's for example), but whenever it's a video file (.flv or .mp4) it'll show that error.

I've tried linking the file from a different folder (other than moodledata, which is where everything originally is) inside www/moodle/ and it worked fine. Re-linked back to the original video in the moodledata folder, throws the error back at me.

Using Ubuntu Server 11.04, Moodle v1.9.12+, both FLV player and MPlayer to watch videos.

Someone haaaahhhhlp.
 
I just tried moving the moodledata directory so it's www/moodle/moodledata. Also updated the config.php file to point to the correct location.

But once again, the error pops up. I tried opening a .pdf file and it works. The hell? XD

Edit: Tried putting going to the full url, 192.168.0.99/moodle/moodledata/5/video.mp4, and that worked. Changed video settings to point to that full URL, still an error.
 
Last edited:
Permissions

Check the permissions of the file. A bit of danger but "chmod 775" the file to see if it helps.
 
Thanks for the reply.

I actually managed to figure out the problem (by complete accident X))

Every relevant folder had the correct permissions so that was fine. The problem was that in the config.php file in root dir, had extra returns after the closing PHP tag, that caused video not found errors. Then, some videos were still having problems playing, specifically in chrome. The fix is to go into the mod/flv folder, change lib.php, under the view.php section, where it builds the URL and returns it, append ?file= to file.php, then problem solved!
 
Top
Sign up to the MyBroadband newsletter
X