Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › eStore – Download link sent to customer links to empty .pdf
- This topic has 10 replies, 3 voices, and was last updated 11 years, 10 months ago by wzp.
-
AuthorPosts
-
June 9, 2012 at 12:48 pm #6378lucidtvMember
The customer receives the email, the link seems valid (it does seem to give access to the proper file, by name) but when you click “Save as” it’s a blank .pdf
I’ve manually added the url of the product to the encryption system, it gave the same results.
I’ve tested the original link and it’s fine and gives access to the full content.
June 9, 2012 at 1:00 pm #46015wzpModeratorAre you using the PDF Stamper on the file? If you are having done testing by doing a “Manual Stamping” of this file to make sure the stamper is working on your site?
Please enable the debug logs, and try a test download. Then examine the download_manager_debug.log file to ensure everything is proper.
June 14, 2012 at 2:31 pm #46016lucidtvMemberI’m not usind pdf stamper.
I’ve turned on the debug logs but I don’t know how to read the .log files.
Another manual test in admin functions for the proper product number did the same thing. Empty .pdf with proper name. url is correct.
June 14, 2012 at 2:45 pm #46017wzpModeratorClick the Reset Debug Logs button. Do another test. Then click on the Download_Manager_Debug.log file link. Look for any “unusual” messages.
June 14, 2012 at 4:10 pm #46018lucidtvMemberThank you for trying to help, I get this:
06/14/2012 4:08 PM] – Status : Unresolved DL file path = http://XXXXXXXXXmultimedia.pdf
[06/14/2012 4:08 PM] – Status : Resolved DL file path = /home/chikungr/public_html/membermedia/XXXXXXXXXXmultimedia.pdf
[06/14/2012 4:08 PM] – Status : Dispatching DL method = 1
I’ve tried with https and without. I had spaces in the file name, I took them out. Same problem.
June 14, 2012 at 4:24 pm #46019lucidtvMemberJune 14, 2012 at 4:43 pm #46020wzpModeratorI notiched there is no “completion” status message. How large is the PDF file? Can you open the PDF in you browser directly, instead of saving it?
June 14, 2012 at 6:09 pm #46021lucidtvMemberThat file is indeed huge (400 megs, it’s the multimedia version of a book).
But the file does “complete” in Chrome, in seconds. But yes, it does not show up in the logs.
I’ve tried creating a link for the “normal” book 56 megs, same issue, a download but when loaded Adobe reader says” Acrobat could not open ‘Get Your Health Back Fast with Chinese Chi Kung.pdf’ because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn’t correctly decoded).
To create an Adobe PDF document, go to the source application. Then print the document to Adobe PDF.”
I’ve testing changing the link to a simple small .jpg to test, it seemed to work well.
[06/14/2012 6:03 PM] – Status : Unresolved DL file path = https://chikungretreat.org/XXXX.pdf
[06/14/2012 6:03 PM] – Warning : Invalid URL conversion target = /home/chikungr/public_html/member%20media/XXX.pdf
[06/14/2012 6:03 PM] – Advisory : Forcing “Do Not Convert” option.
[06/14/2012 6:03 PM] – Status : Resolved DL file path = https://XXXX.pdf
[06/14/2012 6:03 PM] – Advisory : No DL file path conversion performed on URL.
[06/14/2012 6:03 PM] – Status : Dispatching DL method = 1
[06/14/2012 6:03 PM] – SUCCESS : DL completed with no server-side errors detected.
[06/14/2012 6:05 PM] – Status : Unresolved DL file path = https://chikungretreat.org/member%20media/brown.jpg
[06/14/2012 6:05 PM] – Warning : Invalid URL conversion target = /home/chikungr/public_html/member%20media/brown.jpg
[06/14/2012 6:05 PM] – Advisory : Forcing “Do Not Convert” option.
[06/14/2012 6:05 PM] – Status : Resolved DL file path = https://chikungretreat.org/member%20media/brown.jpg
[06/14/2012 6:05 PM] – Advisory : No DL file path conversion performed on URL.
[06/14/2012 6:05 PM] – Status : Dispatching DL method = 1
[06/14/2012 6:05 PM] – SUCCESS : DL completed with no server-side errors detected.
June 14, 2012 at 11:45 pm #46022adminKeymasterHi, Basically you have a file larger than what your hosting account can handle.
The following article will summarize everything for you:
http://www.tipsandtricks-hq.com/ecommerce/selling-large-files-with-wp-estore-796
June 15, 2012 at 4:00 am #46023lucidtvMemberI’m on a robust VPN at site5.com and regularly serve 200gigs a month of 1gig+ files from another site.
Perhaps this new site is not setup properly? For this other site I’ve increased ram available to .php before, could I do the same in this case? I ask because it’s not mentioned as an option in “selling large files” link you sent.
I can, if need be, move things to Amazon, but I have ample room and speed via my regular server.
June 15, 2012 at 2:19 pm #46024wzpModeratorThere is a slight difference between directly downloading a file and downloading a file via eStore’s secure downloader (the above link explains this).
You can try experimenting with the different download methods. Methods 1 to 6 work by breaking the file into small “chunks,” that are then passed to the user. Method 7 does the same thing, but uses the cURL library; instead of native eStore routines. Method 8 uses the Apache mod_xsendfile module to send the file. If the cURL library is not installed on your server, method 7 will not be selectable.
Methods 1 to 7 share the same limitation; the HTTP session timeout. It is a server setting, only your provider can adjust. Its purpose is to prevent errant scripts for indefinitely executing. If a script exceeds the session timeout, the server terminates the offending script. That is why I earlier observed the first log you posted did not end with a download completion status; because the download script was terminated by the server. For files that take less than the timeout value to transfer, there is no error.
Method 8 hands off the download process to your server, and is not subject to the session timeout limitation; but not all of our customers have Apache servers, and not all providers have the mod_xsendfile software installed. Because we haven’t figured out a way to reliably detect the availability of mod_xsendfile, the only way to find out if it will work for you is to try it. If nothing happens, then mod_xsendfile is not installed or available on your server.
If none of the download methods work for you, your only option for downloading large files while maintaining the security is to use the Amazon s3 integration. The first year of service is free, and eStore users have been reporting typical monthly charges of less than 25 cents.
-
AuthorPosts
- You must be logged in to reply to this topic.