Membership Plugin

WordPress Membership Plugin

  • Home
  • Documentation
  • Addons
  • Support
    • Quick Setup
    • Documentation
    • Premium Addon Support
    • Paid Support
    • Support Forum
    • Support Forum Search
    • Forum Login
    • Forum Registration
  • Contact

[Resolved] preview=true bypasses membership check?

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.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • June 15, 2019 at 2:02 pm #18435
    AdamL
    Participant

    Hey,

    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,
    Adam

    June 15, 2019 at 8:14 pm #18436
    The Assurer
    Moderator

    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.

    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 #18437
    AdamL
    Participant

    Thanks! 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 #18443
    admin
    Keymaster

    The 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 #18447
    AdamL
    Participant

    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.

    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!

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Log In

Please read this message before using our plugin.

Search

Featured Addons and Extensions

  • Membership Form Builder Addon
  • Member Directory Listing Addon
  • WooCommerce Payment Integration
  • Member Data Exporter Addon

Documentation

  • Documentation Index Page

Copyright © 2026 | Simple Membership Plugin | Privacy Policy