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.
-
AuthorPosts
-
November 30, 2015 at 11:45 pm #4287
sugarfixx
ParticipantJust 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 #4303mbrsolution
ModeratorHi 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 youDecember 1, 2015 at 4:29 pm #4309sugarfixx
ParticipantI 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 #4313mbrsolution
ModeratorHi, thank you for providing the extra information. Did you by any chance followed these instructions?
December 2, 2015 at 10:14 am #4315sugarfixx
ParticipantI 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 #4325sugarfixx
ParticipantI 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 #4329mbrsolution
ModeratorDo you by any chance have a cache plugin installed?
December 3, 2015 at 12:58 pm #4333sugarfixx
ParticipantNo 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 #4340mbrsolution
ModeratorHi, 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
-
AuthorPosts
- You must be logged in to reply to this topic.