Hi, I’ve encountered a specific issue and done a bunch of troubleshooting (which I’ll outline below). I’m stuck and need help!
I have pages that are restricted to paying members on my site. If a user navigates directly to a restricted page, they’re redirected to the Membership Option page to log in. At this time, during the direct, the MOP VARS are attached to the Membership Option URL. The user logs in using the pro form, and is brought to the membership welcome page. At this point, the MOP VARS are dropped from the URL. I then try and navigate back to the original URL that the user tried to access that was restricted (either through direct URL navigation or a button on the membership welcome page). At this time, I’m brought back to the Membership Option Page with the MOP VARS attached to the URL. I’m unable to navigate to that original restricted page, but can navigate freely among the other restricted pages.
For troubleshooting, I’ve:
-Added a wp-config define value (per this article: https://s2member.com/kb-article/how-to-avoid-login-issues/)
-Confirmed https vs HTTP, www vs none setup is universal throughout the site
-Confirmed URL setup in S2member for my membership option and welcome pages.
-Tried using the theme’s login widget instead of the pro form login
-Disabling all other plug-ins
-Everything is up-to-date
-I’ve noticed that exact URLs can make a difference in whether or not the page appears. For example, if I try navigating to https://samplesite.com/restrictedpage, I’ll get an issue after logging in. But, after logging in, if I navigate to the same URL with an ending forward slash, the URL will work and I can see the content as-expected.
My guesses are (but can’t see how else to troubleshoot):
-There’s an issue with the redirect from the originally restricted page to the membership options page to log in
-There’s still an https vs HTTP issue, as the site was originally built on HTTP before being converted over to SSL.
I’m trying to figure out what’s causing this “loop” of not being able to access the originally-restricted page.
Thank you for your consideration and help.