Page 1 of 1

Download now only dumps hex

Posted: 20 Feb 2016, 21:07
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?

Re: Download now only dumps hex

Posted: 21 Feb 2016, 01:22
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...

Re: Download now only dumps hex

Posted: 21 Feb 2016, 23:37
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

Re: Download now only dumps hex

Posted: 22 Feb 2016, 00:01
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

Re: Download now only dumps hex

Posted: 22 Feb 2016, 01:11
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

Re: Download now only dumps hex

Posted: 22 Feb 2016, 01:49
by thewitt
Virtuemart is also not downloading digital products correctly, so something is screwed up inside Joomla.

Ugh.

Re: Download now only dumps hex

Posted: 22 Feb 2016, 02:28
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

Re: Download now only dumps hex

Posted: 22 Feb 2016, 03:26
by thewitt
Thank you. I'll keep at it.

-Tim

Re: Download now only dumps hex

Posted: 28 Feb 2016, 13:52
by Jan
Ok