Skip Navigation

[Resolved] Access Control Working for Posts but not for Pages

This thread is resolved. Here is a description of the problem and solution.

Problem:

I used the Access control for the a wordpress page to be appearing for certain roles only (logged in users to BuddyPress), but still appearing for the non-logged in visitors.

Solution:

You can edit the problem page, in metabox "Post group", Choose one of any existed "Post group", save the page, and test again.

Relevant Documentation:

https://toolset.com/documentation/user-guides/limiting-read-access-specific-content/

This support ticket is created 5 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 7 replies, has 2 voices.

Last updated by ramez-refaatG 5 years, 11 months ago.

Assisted by: Luo Yang.

Author
Posts
#1171118

Tell us what you are trying to do?
hidden link

I used the Access control for the above page...to be appearing for certain roles only (logged in users to BuddyPress)...but still appearing for the non-logged in visitors.

Is there any documentation that you are following?
I tried but didn't find my case.

Is there a similar example that we can see?
All posts inside the above link are inaccessible but the Page is accessible.

What is the link to your site?
hidden link

N.B. I've given the creds to login so they are here in this ticket:
https://toolset.com/forums/topic/taxonomies-parent-child-as-drupal-books/

#1171132

Hello,

The problem you mentioned above is abnormal, I suggest you check these:
In case it is a compatibility problem, please deactivate other plugins(Especially cache plugin), and switch to wordpress default theme 2019, and test again

And I have tried the credentials in your post:
https://toolset.com/forums/topic/taxonomies-parent-child-as-drupal-books/#post-1155660

It does not work, I get error message:
جاء التأكد من بياناتك التي أدخلتها, حيث بعد 5 محاولات خطأ سيتم إيقاف حسابك مؤقتا لحمايته, وسيلزم التواصل معنا لتنشيطه مرة أخرى Be sure about your username

Please check it.

#1171918

Okay sorry for this...we forgot that we changed the password...kindly send me the hidden way to send the creds without being public

#1172168

Did you try as I mentioned above?

In case it is a compatibility problem, please deactivate other plugins(Especially cache plugin), and switch to wordpress default theme 2019, and test again

Can you confirm the compatibility problem?

If there isn't compatibility problem, and the problem still persists, please provide a database dump file of your website, I need to test and debug it in my localhost.

https://toolset.com/faq/provide-supporters-copy-site/

#1172189
Subscription1.JPG
guest.JPG
post-group.JPG

Thanks for the details, for the problem as you mentioned in your post:
https://toolset.com/forums/topic/access-control-working-for-posts-but-not-for-pages/#post-1171118

Please check these:
1) Edit the problem page you mentioned above:
hidden link

in metabox "Post group", Choose one of any existed "Post group", for example "Old Member", save the page.

See screenshot post-group.JPG

2) Login out as a guest, and test that page again, it works fine, it shows 404 page for guests, see screenshot guest.JPG

More help:
https://toolset.com/documentation/user-guides/limiting-read-access-specific-content/

Since you are not a developer, I suggest you follow above document to setup the Access settings strictly to avoid some unexpected mistakes.

For your other questions:

Pages created (without specifying any Post Group) should be appearing normally ...

There isn't similar problem in my localhost with your database dump file + fresh wordpress installation, see screenshot Subscription1.JPG

It works fine for logged in users and guests.

So it should be a compatibility problem of your website, please try as I suggest above:
https://toolset.com/forums/topic/access-control-working-for-posts-but-not-for-pages/#post-1171132

If you need assistance for it, new ticket please. thanks

#1172204

Yes I've been sticking with the Docs you mentioned above.
Then do you mean the issue is:
- A WordPress fresh installation issue? If Yes...is reinstalling WP from inside the link
hidden link will it solve the issue? Will it affect anything else on the whole site? Will it cause any data loss or plugin conflicts?

- Or Do you mean Other plugins' issue (the installation in your end has no other plugins) so issues didn't appear? If Yes, how can I discover the plugin (without deactivating them)?.

#1172206

Please check the answer in post:
https://toolset.com/forums/topic/access-control-working-for-posts-but-not-for-pages/#post-1172189

For the original question of this thread:
You need to edit the problem page, and assign a post group to it, it is very simple, but you did not follow our document to setup it. I have already provided detail steps and screenshots.

For other new questions, since there isn't similar problem in my localhost(Fresh wordpress installation + Latest version of Toolset plugins), so I suspect it is a compatibility problem of your website, as I mentioned above, if you need more assistance for it, new ticket please.

We can handle the problem one by one.

#1172209

For the original question of this thread:
SIr I'm sorry I've set its Post Group days ago & that's why I opened the Ticket for it was appearing...so I wasn't thinking it's matter of my adjustments...but now when I rechecked it I discovered that it's not set...I'm amazed...what changed it
Well it's effective now.
The other issue I'll see if other Plugins is affecting it or not...so now seems it's not related with your plugin.