Page 1 of 1

[SOLVED]downloads are empty or corrupted

Posted: 22 Jul 2014, 21:44
by ptux
I installed the 3.0.5 version on Joomla 3.3 and my files are corrupted.

The download panel looks fine, but when i try to download something the file is empty (i.e. zip files) or corrupted (i.e. pdf files). I've no output for zip files who are downloaded correctly but are empty, while for pdf files here it is the output whe i try to open the file.

I also tryed to unistall and install it again, but nothing changed.

Please help!!

Re: downloads are empty or corrupted

Posted: 23 Jul 2014, 21:28
by Jan
Hi, can you paste a link to the corrupted file, so I can take a look into the source code - to see - if there is no generated error on your server :idea:

Jan

Re: downloads are empty or corrupted

Posted: 23 Jul 2014, 23:40
by ptux
here is an exemple of zip file (you can download it but looks empty...)
http://www.tendopoli.it/index.php?optio ... Itemid=936


and here is an exemple of pdf file (you can download it but it's corrupted...)
http://www.tendopoli.it/index.php?optio ... Itemid=936

When i try to open the pdf document, i read:
Notice: ob_end_clean(): failed to delete buffer. No buffer to delete in /administrator/components/com_phocadownload/libraries/phocadownload/download/download.php on line 235

Actually, i purged the db of phocadownload and reinstalled and re-update many files... and something changed coz it opens 2 reader: one with the posted message and one with the file.

Thanks for your prompt reply.

Re: downloads are empty or corrupted

Posted: 26 Jul 2014, 23:01
by Jan
Hi, try to open this file on your server:

/administrator/components/com_phocadownload/libraries/phocadownload/download/download.php

and change on line 235

FROM:
ob_end_clean();

TO:
@ob_end_clean();

and let me know if it helped.

Jan

Re: downloads are empty or corrupted

Posted: 27 Jul 2014, 00:56
by ptux
Yes, Jan. It seems it works well now.
Thanks for your kind help.

Re: downloads are empty or corrupted

Posted: 30 Jul 2014, 13:43
by Jan
Ok, thank you for the info

Re: [SOLVED]downloads are empty or corrupted

Posted: 06 Nov 2014, 14:19
by Jan
Hi, set in version 3.0.6

Jan