[SOLVED]downloads are empty or corrupted

Phoca Download - download manager
ptux
Phoca Member
Phoca Member
Posts: 16
Joined: 26 Jan 2011, 19:05

[SOLVED]downloads are empty or corrupted

Post 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!!
Last edited by ptux on 30 Jul 2014, 14:08, edited 1 time in total.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: downloads are empty or corrupted

Post 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
If you find Phoca extensions useful, please support the project
ptux
Phoca Member
Phoca Member
Posts: 16
Joined: 26 Jan 2011, 19:05

Re: downloads are empty or corrupted

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: downloads are empty or corrupted

Post 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
If you find Phoca extensions useful, please support the project
ptux
Phoca Member
Phoca Member
Posts: 16
Joined: 26 Jan 2011, 19:05

Re: downloads are empty or corrupted

Post by ptux »

Yes, Jan. It seems it works well now.
Thanks for your kind help.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: downloads are empty or corrupted

Post by Jan »

Ok, thank you for the info
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: [SOLVED]downloads are empty or corrupted

Post by Jan »

Hi, set in version 3.0.6

Jan
If you find Phoca extensions useful, please support the project
Post Reply