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 11 years, 11 months ago by Reto.
-
AuthorPosts
-
October 9, 2011 at 6:27 pm #4511davidlureyMember
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 #37462adminKeymasterThe 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 #37463davidlureyMemberYes, 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 #37464adminKeymasterThe 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 #37465davidlureyMemberThank 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 #37466adminKeymasterSent 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 #37467RetoMember -
AuthorPosts
- You must be logged in to reply to this topic.