Conversation
supportHello, I’ve bought premium version and I have problem. On my website shows error: Warning: array_map() [function.array-map]: Argument #2 should be an array in /grupa-instalbud/wp-content/plugins/fixed-circular-navigation-menu/public/class-circular-nav.php on line 312 Warning: array_intersect() [function.array-intersect]: Argument #2 is not an array in /grupa-instalbud/wp-content/plugins/fixed-circular-navigation-menu/public/class-circular-nav.php on line 313 These are the lines: $cn_data = get_option(‘circular_nav_options’); if ( !empty($cn_data) ){ $user_cn = wp_get_current_user(); if ( !empty( $user_cn ) ){ $user_cn_roles = array_map(‘strtolower’, $user_cn->roles); (THIS IS 312) $allowed_roles = array_map(‘strtolower’, $cn_data[‘roles’]); (THIS IS 313) $ok_role = array_intersect( $user_cn_roles, $allowed_roles ); } Please help! https://wordpress.org/plugins/fixed-circular-navigation-menu/
Hi, you have to control and choose which user groups to show this navigation. Settings – Display choose a user group save it… and the problem is gone 🙂
Hi, you have to control and choose which user groups to show this navigation. Settings – Display choose a user group save it… and the problem is gone 🙂