Support » Plugin: Nav Menu Roles » mod_fcgid: stderr: PHP Warning: array_unique() expects parameter 1 to be array

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author HelgaTheViking

    (@helgatheviking)

    Hi, can you show me a screenshot of the menu item setup? Does this problem persist if you turn off all other plugins and switch to a default theme?

    The line in question:

    
    $menu_item->classes = array_unique( array_merge( $menu_item->classes, $new_classes ) );
    

    expects:

    $menu_item->classes to be an array. This is the WordPress default so if something else has interfered it may cause an issue with the array manipulation. I might be able to add some type casting to make extra sure that the variables are both arrays like they are supposed to be.

    Thread Starter jagomez

    (@jagomez)

    Hi, this is one menu item config.

    https://www.screencast.com/t/wkycTpYVVd

    Now appears the plugin update to v1.10.2. Can solve this issue? Thanks a lot.

    Plugin Author HelgaTheViking

    (@helgatheviking)

    I added the strict type casting I mentioned, which I hope will solve your issue. Update and please let me know.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘mod_fcgid: stderr: PHP Warning: array_unique() expects parameter 1 to be array’ is closed to new replies.