Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore S3 Addon – The encrypted download link generated does not work
- This topic has 4 replies, 3 voices, and was last updated 6 years, 8 months ago by wzp.
-
AuthorPosts
-
March 23, 2018 at 1:49 pm #14794CDUCHENEMember
Hello,
I have a problem with the Amazon S3 integration plugin.
I have an S3 bucket where I stored my files (pdf, png, etc.). I respected the html standards (only lowercase letters, no spaces, etc.)
I generated access key and secret access key for the user Root and I saved this information in eStore -> settings -> Addon -> S3 (I find it a pity, security issue, that this plugin does not allow to use an IAM user rather than the Root user, as it is managed by the Amazon S3 integration plugin for Simple Download Monitor that I also use and that works great with an IAM user to whom I have assigned read access only on the bucket I use from my website (I created my own policy)).
I created a product in eStore and copied / pasted the URL of my AWS S3-provided object into Digital Content Details >> Digital product URL.
From eStore -> Admin Functions, I generated a link for this product and copied / pasted it into my browser.
And here is the failure: a blank page with the message “This page does not work” HTTP ERROR 500.
I activated the debug function, and everything looks normal (see below):
[03/23/2018 1:33 PM] – Advisory: Log file reset.
[03/23/2018 1:34 PM] – Status: Details link retrieved using file key. Link ID: 44
[03/23/2018 1:34 PM] – Status: Global download limit counting is enabled. Count limit: 3 Access count: 0
[03/23/2018 1:34 PM] – Status: Checking global download expiry time.
[03/23/2018 1:34 PM] – Status: Overall time expiry check success! This link is valid.
[03/23/2018 1:34 PM] – Status: Handling from IP Address: :: 1
[03/23/2018 1:34 PM] – Status: Amazon S3 API New URI request = [https://s3-eu-west-1.amazonaws.com/evt-mes-docs-et-images/gestion-du-stress/astuces/business-revolution.pdf]
By cons, if I use the old method, with url type:
as3tps://evt-mes-docs-et-images.s3.amazonaws.com/gestion-du-stress/astuces/business-revolution.pdf
it works ! Except that, reading your documentation, I understood that you advise to use the new method which is: addon Amazon S3 integration for eStore and url directly copied from S3.
Thank you for explaining me how to make it work through the S3 plugin, because I look hard, I can not find the solution.
March 23, 2018 at 7:34 pm #77582wzpModeratorWhat version of eStore are you using?
March 25, 2018 at 6:10 am #77583adminKeymasterIt is likely your server is using an OLD PHP version that can’t handle the new Amazon S3 library. So its giving a 500 error.
Ask your hosting provider what PHP version is being used on your server. Also, ask them to check your server log which will have info as to why that 500 error is being triggered.
The following post is a good read for you:
https://support.tipsandtricks-hq.com/forums/topic/error-500-internal-server-error
March 26, 2018 at 9:16 am #77584CDUCHENEMemberWZP said : “What version of eStore are you using?”
The last one : 8.0.5
Admin said : “Ask your hosting provider what PHP version is being used on your server”
My site is still under development in localhost (I use MAMP).
The PHP version used is 7.1.8: is this the cause of the problem?
Thank you in advance for your assistance
March 26, 2018 at 12:57 pm #77585wzpModeratorPlease use the latest plugin versions:
https://support.tipsandtricks-hq.com/forums/topic/re-install-or-load-a-fresh-build-of-the-plugins
Our ability to assist is limited, if you are using an offline XAMPP-style server.
We can only do support for sites that are live (we can’t do localhost setup troubleshooting). This is explained in our terms.
PHP 7.1.8 is fine.
-
AuthorPosts
- You must be logged in to reply to this topic.