I have a site that provides downloadable high quality music files (WAV, FLAC) for download. Once a user downloads one of these files (which range from about 50 to more than 500 MB in size), they cannot be played back because of a whitespace that is inserted into the file (first character of the file's source shows this). The files are perfectly OK as long as you open them directly via weblink on the server or download them manually with FTP or SFTP, but if they are served through UC's file download module, the whitespace is added.

Please advise immediately on how we can fix this and consider rolling out a patch (we did an upgrade from 2.7 to 2.11 to try to get it fixed but it seems the problem is persistent and was already present in at least 2.7).

Thank you.

Comments

longwave’s picture

Category: bug » support
Priority: Critical » Normal
Status: Active » Fixed

This is not a bug in Ubercart. This is an issue with another PHP file either in your theme or in another module. Somewhere in one of your files, there is whitespace before the opening tag or after the closing tag (if the closing tag is present at all).

The first thing to try is changing your theme to Garland, if the problem goes away it is in your theme, if it does not it is in a module somewhere.

droomagentur’s picture

Thank for your quick reply, it was in fact another module and I was able to solve it with you help.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.