Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Lager file download returning 0KB or 772kb

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Lager file download returning 0KB or 772kb

  • This topic has 40 replies, 3 voices, and was last updated 12 years, 6 months ago by wzp.
Viewing 15 posts - 1 through 15 (of 41 total)
1 2 3 →
  • Author
    Posts
  • September 18, 2010 at 8:40 am #1869
    arts
    Member

    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…

    https://support.tipsandtricks-hq.com/forums/topic/digital-download-file-corrupted/page/3

    ok solved (update and method 6)

    After that solution I had a new problem with the download link not in the “Thank you” page…..

    https://support.tipsandtricks-hq.com/forums/topic/paypal-enhanced-checkout-issue/page/2

    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
    wzp
    Moderator

    And this problem is only specific to IE, which version?

    September 18, 2010 at 2:11 pm #24481
    arts
    Member

    No, please read…

    The large file download don’t work with IE, FireFox and Safari

    September 19, 2010 at 4:25 am #24482
    amin007
    Participant

    Okay, Your web hosting account doesn’t have enough free RAM to server the large file.

    This is explained in detail here:

    Selling Large Files with WP eStore

    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
    arts
    Member

    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
    wzp
    Moderator

    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:

    <?php

    phpinfo(INFO_ALL);

    ?>

    Execute the script, using the http://yousite.com/my_php_info.php URL, replacing “yoursite.com” with the appropriate information 8)

    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.

    http://codex.wordpress.org/Editing_wp-config.php#Configure_Error_Log

    On my Go Daddy host, I get 32 MB.

    September 19, 2010 at 2:02 pm #24485
    arts
    Member

    wzp,

    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 plugin

    September 19, 2010 at 2:19 pm #24486
    wzp
    Moderator

    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
    arts
    Member

    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 8) and Firefox

    Other server 128M (number from the phpinfo call)

    Tried download 47M working in IE (7 and 8) 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 8) file “corrupted” in Firefox it works correct.

    September 19, 2010 at 2:32 pm #24488
    wzp
    Moderator

    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
    wzp
    Moderator

    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
    arts
    Member

    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
    wzp
    Moderator

    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
    wzp
    Moderator

    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
    wzp
    Moderator

    @Amin — you have a code question in your inbox.

  • Author
    Posts
Viewing 15 posts - 1 through 15 (of 41 total)
1 2 3 →
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • WP PDF Stamper Documentation
  • WP Photo Seller Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial
  • WP Photo Seller Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Download Monitor

Copyright © 2023 | Tips and Tricks HQ