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 14 years, 7 months ago by wzp.
Viewing 11 posts - 31 through 41 (of 41 total)
← 1 2 3
  • Author
    Posts
  • September 20, 2010 at 12:18 pm #24509
    wzp
    Moderator

    I’m going to ask a rather silly question… Are you using any download manager addons with the browsers?

    Not so silly question… If you compare the PHP info reports for both servers, side by side, are there any other differences besides the maximum PHP memory?

    September 20, 2010 at 1:00 pm #24510
    wzp
    Moderator

    And, during the download process, on both servers; is a progress bar shown? By progress bar, I mean that something that says “X bytes remaining, Y minutes/seconds remaining,” instead of “Unknown file size?”

    September 20, 2010 at 2:15 pm #24511
    arts
    Member

    First question:

    No, no download managers used. Only the plain link

    40M = PHP version 5.2.14

    128M = PHP version 5.2.12

    – Configuarion PHP Core –

    disable_functions = no value in the 128M server

    in the 40M server serveral different names like “system,exec,shell_exec,passthru,proc_open,proc_get” etc.

    extension_dir = different

    include_path = different

    max_execution_time = 240 in the 128M server

    max_execution_time = 200 in the 40M server

    open_basedir = different

    post_max_size = different

    memory_limit = different

    register_long_arrays = ON in the 128M server

    register_long_arrays = OFF in the 40M server

    save_mode_exec_dir = pathname in the 128M server

    save_mode_exec_dir = no value in the 40M server

    sendmail_path = different

    upload_max_filesize = different (32M – 64M)

    upload_tmp_dir = no value in the 128M server

    upload_tmp_dir = /tmp in the 40M server

    Is there some more in particular where I have to look at?

    Second question, must try again but I think its the same – x bytes remaing etc.

    September 20, 2010 at 2:24 pm #24512
    wzp
    Moderator

    I’m going to think about possible debugging strategies. The existing code (now it does, LOL) works on the smaller server, so it should be working on the larger one… or as my kid might say, “WT@?”

    September 20, 2010 at 2:26 pm #24513
    arts
    Member

    exactly :)

    September 20, 2010 at 5:16 pm #24514
    arts
    Member

    wzp,

    do you know the (technical) difference between the Default download setting and setting Method 6?

    I ask because in the 128M server the download (default) and unzip works in Firefox but not in IE. It downloads in IE but I got the “corrupted” file error.

    With method 6 it works in the 40M server for both IE and Firefox, download and unzipped.

    On the 128M server with method 6 it download in both but in both I got the “corrupted” file error.


    ooh I see you are now “moderator” and not “member” anymore…. :)

    September 20, 2010 at 6:04 pm #24515
    wzp
    Moderator

    Yes I can tell you in about 2 hours. Am mobile now.

    @Amin007 — Thanks for the promotion, boss!

    September 20, 2010 at 8:28 pm #24516
    wzp
    Moderator

    @arts — Here is some pseudo code that may answer your question…

    IF server allows fopen() for URLs {

    SWITCH $DownloadMethod

    CASE(2):

    // Method 2.

    CASE(3):

    // Method 3.

    CASE(4):

    // Method 4.

    CASE(5):

    // Method 5.

    CASE(6): {

    IF Apache Gzip installed, disable it;

    IF Resumable downloading supported, enable it;

    Send file contents in 1 MB chunks;

    }

    DEFAULT:

    Send file contents in 8 KB chunks;

    END SWITCH;

    } ELSE {

    IF cURL library installed {

    Download using cURL;

    } ELSE {

    Fatal error;

    }

    }

    =======================================

    Since the smaller server is your production system, and it seems to be working for now; is it fair to say the situation is not as “hot” as it was 2 days ago? I’d like to study the code a bit, and maybe try a few things. I will pass any suggestions on to Amin.

    Or, if you are feeling really brave and adventurous, since you appear to be technically advanced, would you like to be able “test drive” any of my code suggestions? If so, please visit my site and leave me your e-mail address on a contact form:

    h-t-t-p colon slash slash TheAssurer dot com slash contact

    September 20, 2010 at 8:53 pm #24517
    arts
    Member

    wzp, you are right… on the production server it works and it is now very “cool” here. I tested it today and all still works.

    So for this forum, take advantage of this topic!

    YES.. I am brave and adventurous… and a little crazy.. I will contact you.

    My whole life is a “test drive” :)

    September 20, 2010 at 9:09 pm #24518
    arts
    Member

    The form on your website does not accept foreign telephone numbers….

    Did you get my message?

    September 20, 2010 at 9:45 pm #24519
    wzp
    Moderator

    Now it will 8)

  • Author
    Posts
Viewing 11 posts - 31 through 41 (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 Registration
  • 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
  • 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

Our Other Plugins

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

Copyright © 2025 | Tips and Tricks HQ