please I don’t know to set up my restricted page to redirect to login/registration page for non registered user and login user who session have expired?
]]>Version 1.3.2 | By miniOrange | View details
This plugin failed to load properly and is paused during recovery mode.
An error of type E_ERROR
was caused in line 141
of the file /nas/content/live/shpbeds/wp-content/plugins/page-and-post-restriction/page-and-post-restriction.php
. Error message: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, string given in /nas/content/live/shpbeds/wp-content/plugins/page-and-post-restriction/page-and-post-restriction.php:141 Stack trace: #0 /nas/content/live/shpbeds/wp-includes/class-wp-hook.php(307): page_and_post_restriction_add_on->papr_page_custom_columns('Allowed_Roles', 1657) #1 /nas/content/live/shpbeds/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array) #2 /nas/content/live/shpbeds/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #3 /nas/content/live/shpbeds/wp-admin/includes/class-wp-posts-list-table.php(1349): do_action('manage_page_pos...', 'Allowed_Roles', 1657) #4 /nas/content/live/shpbeds/wp-admin/includes/class-wp-list-table.php(1450): WP_Posts_List_Table->column_default(Object(WP_Post), 'Allowed_Roles') #5 /nas/content/live/shpbeds/wp-admin/includes/class-wp-posts-list-table.php(1383): WP_List_Table->single_row_columns(Object(WP_Post)) #6 /nas/content/live/shpbeds/wp-admin/includes/class-wp-posts-list-table.php(895): WP_Posts_List_Table->single_row(Object(WP_Post), 0) #7 /nas/content/live/shpbeds/wp-admin/includes/class-wp-posts-list-table.php(770): WP_Posts_List_Table->_display_rows_hierarchical(Array, 1, 20) #8 /nas/content/live/shpbeds/wp-admin/includes/class-wp-list-table.php(1362): WP_Posts_List_Table->display_rows() #9 /nas/content/live/shpbeds/wp-admin/includes/class-wp-list-table.php(1289): WP_List_Table->display_rows_or_placeholder() #10 /nas/content/live/shpbeds/wp-admin/edit.php(477): WP_List_Table->display() #11 {main} thrown
Hi,
When I check a user role from the “Page Restrict Access” section on a page, it does not persist after updating the page. Reloading the edit page screen shows all roles back to unchecked and the page is not restricted by any role. I can restrict pages in the plugin’s “Page Restriction” setting page, but not when editing each page.
I have a couple questions about the Pro version. If a page is restricted to users with Role A, and a user Role B logs in, does the Role B user see the restricted page in Nav Menus? I see the Premium version has support for “Restrict Nav Menu Items” — how does that work? Is it automatic removal of pages in the nav menu based on roles, or is it a more manual process to hide restricted pages from the nav menus?
Is there a way to redirect users who do not have access to a restricted page to the 404 page? Basically, I’d like users who do not have access to a page to never know the page exists.
Thanks! This is for a site currently using “SAML Single Sign On” and it would be great if this plugin allows us to hide pages for certain users.
]]>Buongiorno, volevo segnalare che nelle versioni successive alla 1.2.8, quando si prova ad impostare il limite di accesso ai vari ruoli, nei log viene mostrato il seguente errore: PHP Fatal error: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in /wp-content/plugins/page-and-post-restriction/page-and-post-restriction.php:528
]]>