Forum post fails to include file attachment

Forum post fails to include file attachment

by Arnel Estanislao -
Number of replies: 1
There's an erratic bug when posting forum comments with file attachments. On some forum topics, it can successfully post comments with attachments. But on some, it doesn't. It does, on all occasion, successfully posts the comments. Only the file attached is having problems.

The error is displayed briefly then it posts the comments successfully. Below is the sample error:

=============
ERROR: Could not find or create a directory (/home/xoprod/www/moodledata/11/moddata)
=============

I did however checked the write permission and they're all correct and writeable.

Any ideas on this?

Thanks!


Arnel
Average of ratings: -
In reply to Arnel Estanislao

Re: Forum post fails to include file attachment

by John White -
Arnel,

It doesn't seem as though you have got the permissions, or ownership, right everywhere, the file upload should be to a moddata directory (as you have noted) within the numbered course directory.

So the file pointer should end up being something like:

/moodledata/file.php/23/moddata/forum/41/192/blog2.jpg

that's...
the moodle data directory
the file indirection pointer
course 23
moddata directory (for forums, wikis, etc)
forum 41
thread 192

What happens if you create the moddata directory manually, check its permissions, and try again?
Have you checked the permissions / ownership against...
http://docs.moodle.org/en/Security#Most_secure.2Fparanoid_file_permissions
Particularly looking at slightly relaxing permissions, or the group owner.


Regards,

John