• Hello,

    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://www.ads-software.com/plugins/fixed-circular-navigation-menu/

Viewing 1 replies (of 1 total)
  • 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 ??

Viewing 1 replies (of 1 total)
  • The topic ‘Argument #2 should be an array in’ is closed to new replies.