Download now only dumps hex

Phoca Download - download manager
thewitt
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 29 May 2010, 07:16

Download now only dumps hex

Post by thewitt »

I've been running for about 7 months, and now I'm not longer getting the download for a file, I'm simply getting a hex dump instead.

The file type doesn't matter.

I've been using .pdf, .epub and .mobi files - with the appropriate mime types defined. For some reason they stopped running after nearly 1000 successful downloads over several months.

I updated to the latest version of the Download component and plugin with no change.

It's possible this broke with updates to Joomla. My site was hacked back in November and I did a lot of cleanup around that event as well as updating Joomla to the latest version.

Ideas?
thewitt
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 29 May 2010, 07:16

Re: Download now only dumps hex

Post by thewitt »

Just another note on this.

If I put the files in my public_html directory and simply access them with an HTTP link, they download fine. They only dump as hex through Phoca Download...
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48566
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Download now only dumps hex

Post by Jan »

Hi, then try to ask your webhosting provider, if there were added some limitations or similar new features which can e.g. prevent from rendering the needed http header :idea:

Jan
If you find Phoca extensions useful, please support the project
thewitt
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 29 May 2010, 07:16

Re: Download now only dumps hex

Post by thewitt »

Jan wrote:Hi, then try to ask your webhosting provider, if there were added some limitations or similar new features which can e.g. prevent from rendering the needed http header :idea:

Jan
I run my own servers. I've not done anything in the way of a server update.

Keep in mind that the files are presented correctly if I put them in my public_html directory and access them directly. They are presented as HEX only when I access them with download links from Phoca Download...

Thanks,

-t
thewitt
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 29 May 2010, 07:16

Re: Download now only dumps hex

Post by thewitt »

I removed the Phoca Download component and installed it new again, setting up a new category, new files, new menu item.

No difference...

-t
thewitt
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 29 May 2010, 07:16

Re: Download now only dumps hex

Post by thewitt »

Virtuemart is also not downloading digital products correctly, so something is screwed up inside Joomla.

Ugh.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48566
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Download now only dumps hex

Post by Jan »

Hi, yes, when you see similar posts in this forum, you will see, that mostly this is not caused by Phoca Download, try to:

- test if on the server, there is no specific option, which somehow can limit the download of files on the server
- test if there is no specific extension which can somehow modify it
- test to enable/disable GZIP compression of output (Joomla! global configuration) - I don't expect, this can be the reason for the problems you have, but just test it
- test to enable/disable cache

You can try to change the header sent when some file is downloaded, try to open:
administrator\components\com_phocadownload\libraries\phocadownload\download\download.php

You can see in this file a lot of comments, because there are a lot of options to set for the header and it can behave differently on different servers.

One of more examples:
Some users could download only when this:

Code: Select all

// Do problems on some servers
					//@ob_end_clean();
was not commented (e.g. some other part rendered errors to the header and this then broke the download)

but for some this was a problem.

There are different conditions on different servers. So I would say, maybe some limit is differently set on server, maybe some extension set some limits, or something produces output of errors which break the header, ... :idea:

Jan
If you find Phoca extensions useful, please support the project
thewitt
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 29 May 2010, 07:16

Re: Download now only dumps hex

Post by thewitt »

Thank you. I'll keep at it.

-Tim
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48566
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Download now only dumps hex

Post by Jan »

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