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
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
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