Tips and Tricks HQ Forum

Support Forum for Tips and Tricks HQ Products

Register or log in - lost password? (Having an issue with the forum login?)

Search the Forum

Tips and Tricks HQ Forum » WP eStore Forum » WP eStore Troubleshooting

Help, please! mod_xsendfile method not working

(6 posts) (2 voices)
  • Started 7 months ago by davidlurey
  • Latest reply from admin
  • Possible Solutions (Related Topics):
    1. Not working 404 please help!!!
    2. Urgent Help Please - cForms + Paypal + WP Affiliate not working
    3. Please help : Urgent | Enable Transaction Result Display not working
    4. Please help to achieve a good implementation
    5. I know I can get this to work with a bit of guidance - Please help

Tags:

No tags yet.

  1. davidlurey
    Member

    Hello,

    In my store I am offering video and music (i.e. large files). I was having a problem with download time-out issues and through research decided that using the mod_xsendfile would be the best download method.
    So, (#1)I requested to have the mod installed on my server and was successfully done by my host.
    (#2) I added the following lines of code to my .htaccess file:
    # enable xsendfile
    XSendFile On

    # enable sending files from parent dirs
    XSendFileAllowAbove On

    (#3)I had to update the WP Store plugin to a new version, but then was able to choose download method 8.

    Now, I get a 404 error with the encrypted file links and the error logs show "failure", but with no message following it.
    This is from the log...
    [10/09/2011 5:38 PM] - Status : Unresolved DL file path = http://findbalance.net/storeMedia/FindBalanceDVDI.mp4
    [10/09/2011 5:38 PM] - Status : Resolved DL file path = http://findbalance.net/storeMedia/FindBalanceDVDI.mp4
    [10/09/2011 5:38 PM] - Advisory : No DL file path conversion performed on URL.
    [10/09/2011 5:38 PM] - Status : Dispatching DL method = 8
    [10/09/2011 5:38 PM] - FAILURE :

    This was supposed to be my solution... what is going on? What is the issue?

    Posted 7 months ago #
  2. admin
    Key Master

    The following URL doesn't look valid to me. Have you tried downloading the file from there by just entering the URL in the address bar (without eStore)?

    http://findbalance.net/storeMedia/FindBalanceDVDI.mp4

    How big is this file?

    Posted 7 months ago #
  3. davidlurey
    Member

    Yes, I can download it via the browser... I am having problems with any of my files large or small with DL method 8... all the paths are correct. I can use another DL method and begin the download, but it doesn't complete the download. Which is why I am trying to use mod_xsendfile as I understand this might take care of the large file problem. I just upgraded from plugin 5.5.7 to 5.9.9.6 to be able to use method 8.

    The one example above is 464MG and is the largest file I'm offering. My log files don't show any errors with the other download methods... but I can never get a 100% complete file download.
    I was really hoping method 8 would work. Why would there be failures? I did everything the documentation said. Any insight?

    Posted 7 months ago #
  4. admin
    Key Master

    The reason I asked how big the file is because I wanted to verify that I can download the file just using the plain URL (not using eStore at all). I can't even download the file by entering the URL in the browser... it downloads a file but its corrupted and only less than 1MB in size which means something else is wrong. Don't even worry about eStore at this moment because eStore can only work if normal download of you file works in the first place.

    So, do the following (we are not even going to use eStore at this stage):
    1. Enter the following URL in the browser:
    http://findbalance.net/storeMedia/FindBalanceDVDI.mp4
    2. Download the file
    3. Play the file.

    Does it download a 464 MB file? In my case it doesn't
    Does a media player file play the file? In my case it doesn't (the file is corrupted)

    This test should help you see the issue I hope.

    Posted 7 months ago #
  5. davidlurey
    Member

    Thank you, I understand the test and will look into this particular file. But, it is happening with all of my files. Here is another that passed the above test:
    (and this one is just under 10MG)
    http://findbalance.net/storeMedia/Music/MakeChantings/03_Om_Namo_Lakshmi.mp3

    here is an encrypted link I generated for this item:
    http://www.findbalance.net/wp-content/plugins/wp-cart-for-digital-products/download.php?file=3hOa%2FCsLU%2FyYh6Xr
    (I get a 404 error from wordpress)
    The log files produced this for the above download attempt:
    [10/10/2011 12:03 AM] - Status : Unresolved DL file path = http://findbalance.net/storeMedia/Music/MakeChantings/03_Om_Namo_Lakshmi.mp3
    [10/10/2011 12:03 AM] - Status : Resolved DL file path = http://findbalance.net/storeMedia/Music/MakeChantings/03_Om_Namo_Lakshmi.mp3
    [10/10/2011 12:03 AM] - Advisory : No DL file path conversion performed on URL.
    [10/10/2011 12:03 AM] - Status : Dispatching DL method = 8
    [10/10/2011 12:03 AM] - FAILURE :

    And, again, if I use a different DL method, it will download with no error is the log, but times out after a few minutes, not completing 100% of the file.
    This has to be a mod_xsendfile issue - or a configuration of this method. Does this provide more info for you to help?

    Posted 7 months ago #
  6. admin
    Key Master

    Sent you an email to get site access so I can check this out.

    Posted 7 months ago #

RSS feed for this topic

Reply

You must log in to post.

Tips and Tricks HQ  | WP Shopping Cart  | WP Affiliate Software  | WordPress Membership Plugin