Simple Membership Plugin › Forums › Simple Membership Plugin › preview=true bypasses membership check?
- This topic has 4 replies, 3 voices, and was last updated 7 years, 5 months ago by
AdamL.
-
AuthorPosts
-
June 15, 2019 at 2:02 pm #18435
AdamL
ParticipantHey,
If I append “?preview=true” to the URL, I can view the page without being a member even if it’s membership protected. I feel like I probably miss something obvious, but can’t find the answer. What am I missing?
I’m using WordPress version 4.9.4 and Simple WordPress Membership v 3.7.8. I know using outdated versions is very bad, but at the moment I’m unable to perform an update.
Thanks in advance,
AdamJune 15, 2019 at 8:14 pm #18436The Assurer
ModeratorIf I append “?preview=true” to the URL, I can view the page without being a member even if it’s membership protected. I feel like I probably miss something obvious, but can’t find the answer.
That’s the mechanism WP uses to allow LOGGED IN WP USERS to preview unpublished posts. Log out of your WP USER ACCOUNT and it should be protected by SWPM.
I know using outdated versions is very bad, but at the moment I’m unable to perform an update.
Please consider upgrading ASAP. BEING 15 VERSIONS BEHIND THE CURRENT WP RELEASE, makes it very difficult for us to isolate the root cause of problems.
June 15, 2019 at 9:26 pm #18437AdamL
ParticipantThanks! That makes sense. However, the preview mechanism works in my case even without being a logged in WP user. At least now I know that I’m dealing with a bug. I suppose the issue may go away by just upgrading WP and Simple WP Membership to the latest versions, which I may be able to do tomorrow or Monday. I’ll get back here with the result!
June 16, 2019 at 9:17 am #18443admin
KeymasterThe WordPress post preview is ONLY available if you are logged into your WP user account with a certain role (like admin, editor etc). You can copy the preview URL and try to access it from a different computer and you will see that it is not accessible. Its a standard functionality of WordPress. As far as I know (I just checked now), that functionality of WordPress hasn’t changed. If that functionality is not working on your site then maybe there is a caching going on or some kind of strange conflict somewhere on this particular site.
June 16, 2019 at 1:53 pm #18447AdamL
ParticipantIf that functionality is not working on your site then maybe there is a caching going on or some kind of strange conflict somewhere on this particular site.
Yeah. In either case, I don’t have access to the host server and it appears the website will be taken down. For that reason, I will mark this thread as resolved.
I very much appreciate the fast responses, thanks!
-
AuthorPosts
- You must be logged in to reply to this topic.