Hi,
First of all I want to thank you for this wonderful plugin.
We've been using it for years and it has really helped us.
To start of we are running WordPress inside the Laravel framework.
And when we turn the Laravel debug mode on and go to the /wp-admin/users.php page we get the following error:
AAM_Framework_Utility_Misc(): The resource identifier is invalid
And after checking the trace log:
OutOfRangeException: The resource identifier is invalid in resources/plugins/advanced-access-manager/application/Framework/Service/Roles.php:343
Stack trace:
#0 resources/plugins/advanced-access-manager/application/Framework/Service/Roles.php(163): AAM_Framework_Service_Roles->_normalize_resource_identifier('...')
#1 resources/plugins/advanced-access-manager/application/Framework/Service/Roles.php(217): AAM_Framework_Service_Roles->is_denied_to('...', '...')
#2 resources/plugins/advanced-access-manager/application/Service/Identity.php(156): AAM_Framework_Service_Roles->is_hidden('...')
#3 resources/plugins/advanced-access-manager/application/Service/Identity.php(81): AAM_Service_Identity->_filter_views_users(Array)
#4 vendor/wordpress/wordpress/wp-includes/class-wp-hook.php(324): AAM_Service_Identity->{closure}(Array)
#5 vendor/wordpress/wordpress/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)
#6 vendor/wordpress/wordpress/wp-admin/includes/class-wp-list-table.php(521): apply_filters('...', Array)
#7 vendor/wordpress/wordpress/wp-admin/users.php(804): WP_List_Table->views()
#8 public/index.php(70): require('...')
#9 {main}
I found out the error is happening because AAM checks if the role none should be hidden.
Which happens in the AAM_Framework_Service_Role->is_denied_to() method.
It's not a super urgent bug to be fixed because we can turn the debug mode off.
But I realized that it might be interesting to you.
Versions:
Laravel: 10.50.2
WordPress: 6.8.5
AAM: 7.1.0
Hi,
First of all I want to thank you for this wonderful plugin.
We've been using it for years and it has really helped us.
To start of we are running WordPress inside the Laravel framework.
And when we turn the Laravel debug mode on and go to the
/wp-admin/users.phppage we get the following error:And after checking the trace log:
I found out the error is happening because AAM checks if the role
noneshould be hidden.Which happens in the
AAM_Framework_Service_Role->is_denied_to()method.It's not a super urgent bug to be fixed because we can turn the debug mode off.
But I realized that it might be interesting to you.
Versions: