Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › eStore – Selecting a Download Method
Tagged: amazon s3, Download Method
- This topic has 5 replies, 2 voices, and was last updated 12 years, 4 months ago by wzp.
-
AuthorPosts
-
June 1, 2012 at 1:52 pm #6486thehigheredcioMember
WP v3.3.2
WP eStore v6.5.4 with Extra Shortcodes WP eStore v4.3.8
Download Method Config
Automatic URL Conversion Preference – (Default) Absolute
Download Method – (Default) Method 1, Fopen-8K
Problem:
Users are experiencing the either the Zero Bits (empty file) or Corrupted file error on downloads. This problem is intermittent, sometimes 1 or 2 out of 15-20/day then none for days. It is occurring across most browsers (IE 7&8, Chrome, maybe Firefox)and email clients (Outlook & Gmail). My largest file is only 3.6MB with most of them being less than 1MB.
I have gone through the T&T Zero Bit checklist removing the .htaccess from the eStore Download folder. I found the following in the Download Manager Debug log:
[06/01/2012 10:26 AM] – Status : Unresolved DL file path = http://mydomain.com/products/Product_File.docx
[06/01/2012 10:26 AM] – Status : Resolved DL file path = http://mydomain.com/products/Product_File.docx
[06/01/2012 10:26 AM] – Advisory : No DL file path conversion performed on URL.
[06/01/2012 10:26 AM] – Advisory : URL aware fropen() disabled, forcing cURL…
[06/01/2012 10:26 AM] – Status : Dispatching DL method = 7
[06/01/2012 10:26 AM] – SUCCESS : DL completed with no server-side errors detected.
In reviewing the log the only variation I see is that some sequences do not have the SUCCESS entry. Other than that no signs of any other issue.
Questions:
Should I just set the Download Method to cURL (Method 7), or should I take a different approach. I do not know which one to choose and I cannot find explanations on any of the 8 methods (I read the eStore Download Method T&T post).
June 1, 2012 at 2:06 pm #45763wzpModeratorSince you obviously support cURL, you might as well directly use Method 7. The fopen() advisory indicates that your hosting provider has “gone wild” on the PHP security settings; which means that selecting any of the other methods will cause eStore to fallback onto Method 7.
Your statistics suggest there is little you can do, besides using the Amazon S3 integration feature, to eliminate all the download failures.
Do you have any information about the geographical location of the failed downloads?
June 1, 2012 at 3:47 pm #45764thehigheredcioMemberI made the change to cURL and cleared my logs.
I do have some failures from US based users but I did not look up what state they are in. It does appear that at least half, perhaps more than half (~75%) are international users. UK, Canada, Russia, India, Austria, Australia, and several from South Africa.
If I do move over to using Amazon S3, is there a preferred Download Method for S3?
June 1, 2012 at 4:37 pm #45765wzpModeratorIt appears that the failures may be network latency related. In which case, Amazon S3 use will most certainly resolve the problems.
When you use Amazon S3 integration, the download method settings are overridden, for S3 downloads, but will still apply to non S3 downloads. Use of S3 integration is not an all or nothing affair.
June 3, 2012 at 5:03 pm #45766thehigheredcioMemberI set up S3 and migrated my files over and tested them all with no errors and much better download performance speeds. I have an S3 security concern I will open in a new post and revert back until this issue is resolved.
June 3, 2012 at 5:51 pm #45767wzpModeratorYour question has been addressed.
https://support.tipsandtricks-hq.com/forums/topic/security-with-s3-on-digital-downloads
-
AuthorPosts
- You must be logged in to reply to this topic.