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

Help, please! mod_xsendfile method not working

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Troubleshooting › Help, please! mod_xsendfile method not working

  • This topic has 6 replies, 3 voices, and was last updated 12 years, 5 months ago by Reto.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • October 9, 2011 at 6:27 pm #4511
    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?

    October 9, 2011 at 11:12 pm #37462
    admin
    Keymaster

    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?

    October 9, 2011 at 11:39 pm #37463
    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?

    October 9, 2011 at 11:47 pm #37464
    admin
    Keymaster

    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.

    October 10, 2011 at 12:09 am #37465
    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?

    October 10, 2011 at 10:30 pm #37466
    admin
    Keymaster

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

    Update: there was a slight issue with the mod_xsendfile configuration on the server. The hosting provider took care of it.

    December 26, 2012 at 10:38 am #37467
    Reto
    Member
  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • 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