Page 1 of 1

[SOLVED] Strange file download issues (corrupt) after upgrad

Posted: 01 Nov 2014, 17:00
by AJ_Clark
I'm not able to reply to this thread for some reason (new user) but I wanted to let you know Jan that your fixed worked, thank you so much! I have made a paypal donation for your help.

EDIT - the issue is happening with brand new categories and new file uploads too:

This category and file were only added in the new Joomla environment and it's generating the same errors as the imported files below. I thought this information might be relevant for troubleshooting.
http://regisresources.com.au/mmp_upgrad ... elete.html




Hi everyone, I'm in the process of upgrading a website from Joomla 2.5 to 3 and the site is a big user of Phoca Download. I've upgraded the phoca download component to version 3.05 and it's kept all of my documents and categories in tact (great!). The upgrade site is simply sitting in a new folder on the same domain - it's the result of using the Joomla component migrate me plus.

Although my files and categories are in the admin, 99% of the documents now fail to download - they all show as corrupt when an attempt is made. However, if I enable direct download, they work fine - Strange! The documents work fine on the existing site, but the exact same files on the new site (same folder structure etc) fail to work.

I've tried ftp'ing the files up again as well as copying them directly from the existing working folder to the new folder in cpanel - both result in the same corrupt behaviour.

Here's an example:

Existing Working site:
http://regisresources.com.au/community- ... nance.html

New Site: NOTE: I have changed the first two files to direct download, you'll see that they work. The other files will show a corrupt message.
http://regisresources.com.au/mmp_upgrad ... nance.html

Does anyone have any ideas as to why this is happening? Thanks so much for any support you can provide.

Cheers,

Andrew.

Re: Strange file download issues (corrupt) after upgrading

Posted: 01 Nov 2014, 21:49
by Jan
Hi, in the source code of the PDF, I see:

<br />
<b>Notice</b>: ob_end_clean() [<a href='ref.outcontrol'>ref.outcontrol</a>]: failed to delete buffer. No buffer to delete in <b>/home/regisres/public_html/mmp_upgrade/administrator/components/com_phocadownload/libraries/phocadownload/download/download.php</b> on line <b>235</b><br />

The problem with ob_end_clean() is that on some servers it can do such problem, it will be removed in next version (but I need to add some if clause for another type of servers)

Quick fix for now, go to:
administrator/components/com_phocadownload/libraries\phocadownload\download\download.php

line 235

FROM:

Code: Select all

// TEST TEMP SOLUTION
ob_end_clean();
TO:

Code: Select all

// TEST TEMP SOLUTION
// ob_end_clean();
Anyway thank you very much for the info and letting me testing the file on your server.

Jan

Re: Strange file download issues (corrupt) after upgrading

Posted: 02 Nov 2014, 01:39
by AJ_Clark
Jan, you've saved me hours of troubleshooting! Thank you so much, this works perfectly.

I've just made a donation via paypal for your help. Thanks again.

Re: [SOLVED] Strange file download issues (corrupt) after up

Posted: 04 Nov 2014, 00:48
by Jan
Hi, great to hear it, thank you for the info, so I will comment it in next version.

Jan