Hello,
I have problem with my editor (user has page_editor capability for few categories), when he tries to update page with no parents everything is fine, but if page has parent i get this error:
Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\HGK_MU\wp-content\plugins\role-scoper\query-interceptor_rs.php on line 914
Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\HGK_MU\wp-content\plugins\role-scoper\query-interceptor_rs.php on line 914
Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\HGK_MU\wp-content\plugins\role-scoper\query-interceptor_rs.php on line 914
Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\HGK_MU\wp-content\plugins\role-scoper\query-interceptor_rs.php on line 914
line 914 is:
foreach ( $alternate_reqd_caps as $alternate_capset ) {
I managed to find values of $alternate_reqd_caps that cause this error:
alternate_reqd_caps arg: s:18:"create_child_pages";
alternate_reqd_caps arg: s:18:"create_child_pages";
alternate_reqd_caps arg: s:18:"create_child_pages";
alternate_reqd_caps arg: s:18:"create_child_pages";
I fixed that by changing line 913 to:
if ( !empty($alternate_reqd_caps) && is_array($alternate_reqd_caps) ) {
I'm using Role scoper 1.3.28 and wordpress 3.0.5
Thanks
Ivan