I got "Word document filetype cannot be accepted." while file upload Ubuntu server, Moodle 2.6+
On Wed, Jan 29, 2014 at 5:03 PM, Michael Wuttke < michael.wut...@beuth-hochschule.de> wrote: > Hello Maxim, > > I am asking myself too, when do sleep? ;-) > > Like Paul described in his post: > 1. I used moodle 2.4.8 or 2.6.1+ installation with the moodle om plugin > version number 2013121701. > 2. In an existing moodle course I uploaded some files (MS Office files > and pdf files) and > 3. added a OpenMeetings classroom, > 4. after that I could not open the uploaded office or pdf filed > properly. The message was allways that the files are corrupt could not > be repaired. > 5. When the OpenMeetings classroom is removed from the moodle course > again the files could be opened normally. > > The documents are stored in $CFG->dataroot (also known as moodledata) in > the filedir subfolder. > > Files are stored according to the SHA1 hash of their content. This means > each file with particular contents is stored once, irrespective of how > many times it is included in different places, even if it is referred to > by different names. (This idea comes from the git version control > system.) To relate a file on disc to a user-comprehensible path or > filename, you need to use the files database table. See the next section. > > Suppose a file has SHA1 hash 081371cb102fa559e81993fddc230c79205232ce. > Then it will be stored in on disc as > moodledata/filedir/08/13/081371cb102fa559e81993fddc230c79205232ce. > > See also file API documentation of moodle: > http://docs.moodle.org/dev/File_API_internals > > Thanks a lot & greetings to you, > Michael > > Am 29.01.2014 03:26, schrieb Maxim Solodovnik: > > I'm afraid I don't really understand what is wrong > > Could you please provide detailed step-by-step report? > > I'm not using Moodle so I don't really understand where documents are > > being uploaded and what place they are downloaded from > > > > > > On Wed, Jan 29, 2014 at 3:11 AM, Michael Wuttke > > <mwut...@beuth-hochschule.de <mailto:mwut...@beuth-hochschule.de>> > wrote: > > > > Hello Maxim, > > > > thank you. But the problem with the corrupt office file like Paul > > described in his message is not solved. I could reproduce the issue > too > > with moodle 2.6.1+ and you latest om-plugin (branch 2.x). > > > > Do you have any idea what the problem is? > > > > Thank you, > > Michael > > > > Am 26.01.14 06:04, schrieb Maxim Solodovnik: > > > Done, please check > > > > > > branches/2.x/ > > > > > > > > > On Sun, Jan 26, 2014 at 4:02 AM, Michael Wuttke > > <mwut...@beuth-hochschule.de <mailto:mwut...@beuth-hochschule.de> > > >> wrote: > > > > > >> Hello Maxim, > > >> > > >> please could you change the view.php in the moodle openmeetings > > plugin > > >> version 1.6 (build 2013121701) because of the following error: > > >> > > >> Default exception handler: Coding error detected, it must be > > fixed by a > > >> programmer: print_footer() cant be used anymore. Please use > > >> $OUTPUT->footer() instead. Debug: \nError code: codingerror\n* > > line > > >> 1335 of /lib/deprecatedlib.php: coding_exception thrown\n* line > > 146 of > > >> /mod/openmeetings/view.php: call to print_footer()\n, referer: > > >> > http://192.168.1.102/moodle/course/view.php?id=2¬ifyeditingon=1 > > >> > > >> diff view.php view_new.php > > >> 146c146 > > >> < print_footer($course); > > >> --- > > >>> echo $OUTPUT->footer(); > > >> > > >> It is critical for moodle 2.5.4, 2.6.1. > > >> > > >> Thank you, > > >> Michael > > >> > > >> PS: Next time I can do it by my own if you want. ;-) > > >> > > >> -------- Original-Nachricht -------- > > >> Betreff: Plugin contributor's notification: OpenMeetings > > >> Datum: Sat, 25 Jan 2014 18:47:30 +0800 > > >> Von: Paul Nijbakker <paul.nijbak...@tokem.fi > > <mailto:paul.nijbak...@tokem.fi>> > > >> An: Michael Wuttke <mwut...@beuth-hochschule.de > > <mailto:mwut...@beuth-hochschule.de>> > > >> > > >> Paul Nijbakker has commented on a plugin you're contributing to : > > >> > > >> We are using the plugin version 2013121701 in our Moodle 2.5.4 > > >> installation, > > >> but it appears to interfere with uploaded files in courses where > an > > >> OpenMeetings classroom has been added, e.g. MS Office files will > > not open > > >> properly (the message is that the file is corrupt in some way), > > but when > > >> the > > >> Open Meetings classroom is removed the files open normally. > > >> > > >> Plugin link: > > https://moodle.org/plugins/view.php?plugin=mod_openmeetings > > > > > > > > > > -- > > WBR > > Maxim aka solomax > > -- > Danke & mit freundlichen Grüßen, > Michael Wuttke > > Learning Management System Moodle > http://lms.beuth-hochschule.de > Beuth Hochschule Berlin - Labor Online Learning > http://learn.beuth-hochschule.de > Luxemburger Str. 10 > 13353 Berlin > Tel: +49 (0)30 45 04 2184 > E-Mail: michael.wut...@beuth-hochschule.de > News: http://lms.beuth-hochschule.de/rss > -- WBR Maxim aka solomax