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

Not protecting content unless logged in

Simple Membership Plugin › Forums › Simple Membership Plugin › Not protecting content unless logged in

Tagged: No protection

  • This topic has 8 replies, 2 voices, and was last updated 11 years ago by mbrsolution.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • November 30, 2015 at 11:45 pm #4287
    sugarfixx
    Participant

    Just installed the plug in on a WP Theme called Jobify.
    When logged in as admin everything seems to work just perfect.
    But if not logged in the pages I have added protection to behave like unprotected. No join us or sign in.

    Any one with similar experience?

    December 1, 2015 at 12:45 pm #4303
    mbrsolution
    Moderator

    Hi can you provide more information in regards to your comment.

    But if not logged in the pages I have added protection to behave like unprotected. No join us or sign in.

    Thank you

    December 1, 2015 at 4:29 pm #4309
    sugarfixx
    Participant

    I will try to provide more info.
    I installed and configured the plug in, added 2 levels for members, and from pages and posts I applied protection to them.

    When I go to the home/landing page and I click the links to the pages I protected I get the warning that i need to login or join to see content.
    Since I am logged in as admin and admin is not a role I have configured or associated with any membership this makes sense, and I concluded everything was working right.

    I then switched browser and tested the same again, but now I am not getting the warning that i need to login or join to see content.

    Further information includes that the pages I am trying to protect is belonging to a plugin called WP-Jobmanager that it self provide options for redirection to login.

    But the weird thing is WHY does it work perfectly when logged in ??
    First i suspected some sort of cache but I have yet to find ant WP_CACHE calls.
    I also Tried adding categories to pages and check if that did the trick, but still the same.

    I will start looking fir conflicting hooks in the source code, and any suggestion will be appreciated. Even if no one else has experienced this.

    December 2, 2015 at 7:06 am #4313
    mbrsolution
    Moderator

    Hi, thank you for providing the extra information. Did you by any chance followed these instructions?

    December 2, 2015 at 10:14 am #4315
    sugarfixx
    Participant

    I have followed the instructions but the behaviour when logged out is the same, what surprises me most is that when logged in as admin I still get the join or sign in page even while trying to access one of the pages I have added the new membership level to.

    This is somehow strange.

    December 3, 2015 at 5:46 am #4325
    sugarfixx
    Participant

    I tried disabling some plugins and then activated the swpm again.
    When logged in as admin i can now see the protected pages.

    But still no join or login when not logged in.

    December 3, 2015 at 10:35 am #4329
    mbrsolution
    Moderator

    Do you by any chance have a cache plugin installed?

    December 3, 2015 at 12:58 pm #4333
    sugarfixx
    Participant

    No no cache plug in installed, but since it might be an undocumented feature in the theme i have followed instruction on using a hook to clear cache.

    I have continued the testing, and paypal and registration and all other features are working… except for the fact the there is no sign of join or log in on restricted pages.

    However I do believe that this is because the pages have 2 different configurations from before. 1 for non logged in users and 1 for logged in users.

    After logging in as Admin these pages are showing as expected for a logged in user. But if not logged in I want the membership plugin to protect the page.

    to resolve this quick I guess I could go into the pages in question and replace the call for logg in with a call for the sign in or join page.

    How do I call this redirect function?

    December 3, 2015 at 9:30 pm #4340
    mbrsolution
    Moderator

    Hi, if you could not get the Admin to view any protected content by following the instructions in the URL I shared above then there is a problem in your current set up. Either a plugin is conflicting or your theme might be conflicting.

    Can you test a WordPress theme like Twenty Fifteen to see if the issue is resolved. If it is resolved then you know it is your theme blocking this step. If nothing happens then there is something else causing this conflict. Did you enable Debug Mode. Then check the log file after you carried another test. If nothing is revealed can you check the server log files.

    Thank you

  • Author
    Posts
Viewing 9 posts - 1 through 9 (of 9 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