September 18, 2010 at 8:40 am #1869
I think my last question is lost in all the answers in these topics so I start it here in a new topic.
First I had the problem with the corrupted file in Windows IE…
ok solved (update and method 6)
After that solution I had a new problem with the download link not in the “Thank you” page…..
ok solved with the PDT Identity Token
And now…. files (47MB) from the encrypted links are returning a 0KB
Tried different settings, default returning 772kb, method 2 returning 772kb
There are no .htaccess and .htpassword file in the “downloads” directory
Downloaded and unzipped the real urls for these files and they all downloaded and unzipped ok. I do not have any spaces in the file name.
any idea?September 18, 2010 at 1:14 pm #24480
And this problem is only specific to IE, which version?September 18, 2010 at 2:11 pm #24481
No, please read…
The large file download don’t work with IE, FireFox and SafariSeptember 19, 2010 at 4:25 am #24482amin007Participant
Okay, Your web hosting account doesn’t have enough free RAM to server the large file.
This is explained in detail here:
You already tried the different download methods so the only other thing you can do from the plugin side is uncheck the “downloadable” field for this particular product and let the browser handle the download.September 19, 2010 at 8:55 am #24483
Amin, when I download it with the original URL it works.
For 47MB, how do I calculate how many RAM I need using the encrypted link?September 19, 2010 at 1:32 pm #24484
I think the question that also needs to be answered is “how much memory is your provider limiting you to?”
In the top level directory of your site, crate a my_php_info.php file that contains the following 3 lines:
Execute the script, using the http://yousite.com/my_php_info.php URL, replacing “yoursite.com” with the appropriate information
Under the “Configuration PHP Core” section of the report, is an entry labeled “memory_limit.” What does it say?
When you are done (make a printout), please delete the file, so that unauthorized persons cannot stumble upon this information.
As noted in the WP Codex, many hosting providers limit PHP to 8 MB.
On my Go Daddy host, I get 32 MB.September 19, 2010 at 2:02 pm #24485
I did this and in one server it is 40M (I treid a file with 10M, not working)
I tried it on another server with 128M, there it works BUT then I got the first problem back…. “File is corrupted”
Tried different download methods an all (IE and FireFox) corrupted file.
Set the method back to Default…. IE = corrupted – Firefox = OK
Almost giving up with this pluginSeptember 19, 2010 at 2:19 pm #24486
When you say “…with 128 MB,” that is the number from the phpinfo() call?
When you said it worked for Firefox, was that with the 10 MB or the 47 MB file?
In Amin’s post, he says “…the file will be temporarily loaded in your server’s RAM.” Which means your PHP memory requirement is going to be at least 47 MB, plus the memory needed for the download script and other variables it uses.
If it only occurs on files above X MB in size, and you only have a few files (less than 5%) of that size; it may be worth the risk of unchecking the “Downloadable” checkbox for those files and letting the browser have direct access to them. The user still gets an encrypted link, but during the actual download, the “real” location will be revealed to the browser.September 19, 2010 at 2:29 pm #24487
Ok.. two servers, main server 40M (number from the phpinfo call)
Tried download 47M not working OK I understand.
Tried with a file of 10M.. not working, returning 0kb in both IE (7 and and Firefox
Other server 128M (number from the phpinfo call)
Tried download 47M working in IE (7 and and Firefox.
Settings in e-Store method 6 (see the problem before)
All three returned “corruped” file. Tried method 2 the same all three “corrupted” file
Set the e-Store method to Default, all downloaded 47M but in IE (7 and file “corrupted” in Firefox it works correct.September 19, 2010 at 2:32 pm #24488
Got it. I just wanted to get Amin more technical information, so he has something to go on, when he wakes up (It’s 12:31 AM now in Australia).September 19, 2010 at 2:41 pm #24489
BTW, on the server with 128 MB of PHP memory, did the 10 MB file work ok?September 19, 2010 at 3:01 pm #24490
I tried it now with a file 5M on the 128M server.
First method 6 (the IE solution from this post: https://support.tipsandtricks-hq.com/forums/topic/digital-download-file-corrupted/page/2 )
It downloaded the file on the computer it gives 5M but corrupted with IE and FireFox (different downloads, with IE and Firefox)
Default method IE corrupted and FireFox ok.
With 5M on the 40M server both returned 0kb!September 19, 2010 at 4:25 pm #24491
I agree, 5 MB file on a server with 128 MB of PHP available memory should have worked.September 19, 2010 at 5:23 pm #24492
I’m given the impression you are running this on your own servers, is that correct?
In the Configuration PHP Core report, there is a “safe_mode” entry. Is it “on” or “off?”
If it is “on,” it will cause problems for the downloader, because it tries to reset the PHP timeout value.September 19, 2010 at 5:48 pm #24493
@Amin — you have a code question in your inbox.
- You must be logged in to reply to this topic.