Quantcast
Channel: Assignment
Viewing all articles
Browse latest Browse all 9454

Submissions in Moodle assignments are corrupted upon download

$
0
0
by Richard Flurey.  

Hi folks,

We have recently moved to Ubuntu 14.04 LTS and installed Moodle 2.7.1 and discovered during the migration of our assignments that all downloads from assignments are corrupted when using the pluginfile.php method. This also seems to apply newly created assignments too. However, if a submission is in draft mode and using the file chooser to download the file then it works and there is no file corruption. It seems that a blank space (hex code 20) is added to the beginning of every file, thus corrupting the download.  

We can still retrieve the files directly from the server once we query the database to find the actual contenthash name of the file, then take a copy and rename it accordingly.

I've seen a number of posts reporting similar issues throughout various versions of Moodle v2 and v1.9 with different operating systems but with no definitive answer. Has anyone else encountered this on Ubuntu 14.04 and know specifically how it might be fixed? I am doubting it has anything to do with white space in the config.php for example since it is a brand new installation and it looks normal.

We also have a copy of Moodle 2.7 running on Debian 6.0 and assignments work just fine there. It is currently running PHP 5.4.28 whereas Ubuntu is running PHP 5.5.9 with Zend Opcache, which I have a slight suspicion might be part of the problem?  


Regards,

Richard


Viewing all articles
Browse latest Browse all 9454

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>