-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Bug: %%sp_access_url%% #1024
Comments
Referencing internal/private ticket: |
Next Release Changelog:
|
@jaswsinc Possible BugTested using: WordPress Version: 4.7.2 Using the following generated code for Specific Post Access with
Backend: Upon Successful redirect, it says the link has expired: |
Great catch! I've had this fixed. See: wpsharks/s2member-pro@c3fce12 |
Confirmed Working in update@jaswsinc @raamdev Tested again with the update you made and it works! Thanks! |
Could this be related to an ongoing issue I'm seeing when users successfully pay via paypal, and are redirected to the WP site, but prevented from registering, with the message "User Registration is Currently Not Allowed"? |
@jamiefolsom Not likely, no. The most likely cause for the issue you're describing would be that IPN notifications from PayPal are not making it to your site for some reason, so s2Member doesn't know that the person being redirected to your site successfully paid for an account. The "User Registration is Currently Not Allowed" message is shown when you have Open Registration disabled (s2Member → General Options → Open Registration) and someone who hasn't yet paid tries to visit the registration page. If PayPal wasn't able to confirm the payment immediately (i.e., just before the redirect), then s2Member instead waits until it receives an IPN notification from PayPal of a successful payment and then sends off an email to the new user with a special registration URL. I suggest double-checking all of your PayPal configuration (both on s2Member and PayPal) and enabling logging (s2Member → Log Files (Debug) → Logging Configuration) to see if you can locate the issue. Good luck! |
s2Member v170221 has been released and includes changes from this GitHub Issue. See the v170221 announcement for further details. This issue will now be locked to further updates. If you have something to add related to this GitHub Issue, please open a new GitHub Issue and reference this one (#1024). |
In a Pro-Form shortcode, if you set
success="%%sp_access_url%%"
, a redirect does not occur because the final value is nothing but a URL-encoded string (i.e., will not validate as being a URL). Normally, that is correct, because these replacement codes are normally a set of values intended for use as a URL component, and not as the URL itself.For example, one might choose to configure it this way instead:
However, if the only replacement code is the URL itself, the value for this replacement code should not be URL-encoded. That way a redirect can occur and forward a customer to the Specific Post/Page they have just purchased access to. Which would be very useful.
The text was updated successfully, but these errors were encountered: