Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › eStore APR code doesn't work
- This topic has 22 replies, 3 voices, and was last updated 10 years, 7 months ago by wzp.
-
AuthorPosts
-
January 4, 2014 at 1:37 am #60112wzpModerator
Okay, first the “usual disclaimer(s) and warning(s)”
********** DANGER WILL ROBINSON — RUNNING WITH SCISSORS AHEAD **********
********** DANGER WILL ROBINSON — RUNNING WITH SCISSORS AHEAD **********
********** DANGER WILL ROBINSON — RUNNING WITH SCISSORS AHEAD **********
This “hack” only applies to this specific case, and is not warranted for other circumstances. USE AT YOUR OWN RISK.
********** DANGER WILL ROBINSON — RUNNING WITH SCISSORS AHEAD **********
********** DANGER WILL ROBINSON — RUNNING WITH SCISSORS AHEAD **********
********** DANGER WILL ROBINSON — RUNNING WITH SCISSORS AHEAD **********
1. Edit the file eStore_classes/eStore_aprtp.php
2. Look for the curPageURL() function.
3. The last 2 lines in the function read:
$retVal .= $_SERVER['REQUEST_URI']; // Add resource path.
return $retVal;4. Between the 2 lines, insert the following line:
$retVal = str_replace('~', '%7E', $retVal);
January 4, 2014 at 1:46 am #60113erickresMemberPerfect!
Thank you very much for all the help!
January 4, 2014 at 1:48 am #60114wzpModeratorRemember, it’s only a temporary hack. Remove from the production system!
January 4, 2014 at 1:48 am #60115erickresMemberI will. Thanks again.
March 26, 2014 at 6:11 pm #60116comradeMemberHi,
I’m having a similar issue, but I don’t have a tilde or anything like that in my url.
It looks as though everything is working, but then the cookie is not found.
I have the url with trailing slash listed as the aprtp address.
I have tried both live and using paypal sandbox and neither work.
The email is sent from paypal and from the site, but the aprtp just doesn’t work.
Below is the output from the download manager debug log.
[03/26/2014 5:50 PM] – Status : Link details retrieved using file key. Link ID: 20
[03/26/2014 5:50 PM] – Status : Handing download request from IP Address: ###
[03/26/2014 5:50 PM] – Status : APRTP URI request = aprtp://www.###.com/6-week-training-series/
[03/26/2014 5:50 PM] – Status : Authorizing APR request for: http://www.###.com/6-week-training-series/
[03/26/2014 5:50 PM] – SUCCESS : $_COOKIE[###] => ###
[03/26/2014 5:50 PM] – Status : Dispatching APRTP URL = http://www.###.com/6-week-training-series/
[03/26/2014 5:50 PM] – Status : Authenticating APR request for: http://www.###.com/webinars/6-week-training-series/
[03/26/2014 5:50 PM] – Status : $_COOKIE[###] not found.
[03/26/2014 5:50 PM] – Status : Authenticating APR request for: http://www.###.com/webinars/6-week-training-series/
[03/26/2014 5:50 PM] – Status : $_COOKIE[###] not found.
Any help would be appreciated!
thanks!
March 26, 2014 at 8:34 pm #60117wzpModeratorI can’t help you, because you unnecessarily redacted the cookie ID and URL information from the log post. Please repost the log entries IN THEIR ENTIRETY. There is nothing sensitive in the log.
We will remove those logs after investigation also.
April 2, 2014 at 6:58 pm #60118comradeMember[03/26/2014 5:50 PM] – Status : Link details retrieved using file key. Link ID: 20
[03/26/2014 5:50 PM] – Status : Handing download request from IP Address: 199.21.87.198
[03/26/2014 5:50 PM] – Status : APRTP URI request = aprtp://www.kimikodesigns.com/6-week-training-series/
[03/26/2014 5:50 PM] – Status : Authorizing APR request for: [http://www.kimikodesigns.com/6-week-training-series/]
[03/26/2014 5:50 PM] – SUCCESS : $_COOKIE[a98a2a524c023bdd8a826e3c11ee9d0f] => 21yS%2BiIGVPaSgg%3D%3D
[03/26/2014 5:50 PM] – Status : Dispatching APRTP URL = [http://www.kimikodesigns.com/6-week-training-series/]
[03/26/2014 5:50 PM] – Status : Authenticating APR request for: [http://www.kimikodesigns.com/webinars/6-week-training-series/]
[03/26/2014 5:50 PM] – Status : Correct cookie value not found.
Ok thanks!
April 2, 2014 at 10:20 pm #60119wzpModeratorWell, the product URI being requested is for:
[http://www.kimikodesigns.com/6-week-training-series/]
Which generates an APR cookie called: a98a2a524c023bdd8a826e3c11ee9d0f
This cookie is specifically keyed to the EXACT product URI:
[http://www.kimikodesigns.com/6-week-training-series/]
Then, an APR shortcode is encountered on a page whose URI is:
[http://www.kimikodesigns.com/webinars/6-week-training-series/]
Which is NOT the same URI for which the APR cookie was created.
And that’s why you are’t seeing your content. Any APR protected content must be on [http://www.kimikodesigns.com/6-week-training-series/] because that’s the page for which the APR cookie was keyed to.
-
AuthorPosts
- You must be logged in to reply to this topic.