• Resolved robertolacava

    (@robertolacava)


    Since the update 4.6.3.2 our site has starting showing :

    Warning: preg_grep() expects parameter 2 to be array, boolean given in /web/htdocs/www.ungiroinitalia.it/home/wp-content/plugins/font-awesome-4-menus/n9m-font-awesome-4.php on line 216

    WordPress version: 4.5.3

    Any resolution for this ?

    Thanks in advance.

    https://wordpress.org/plugins/font-awesome-4-menus/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Same issue i face in same line number.

    WordPress version: 4.5.3
    Plugin name : Font Awesome 4 Menus”
    Font Awesome 4 Menus Version : 4.6.3.2

    Thanks in advance.

    Plugin Author Joe Ponzio

    (@new-nine)

    Hi folks. Can you tell me what version of PHP you’re running? I need to dive deeper into this because I can’t recreate the issue.

    PHP version : 5.5.12

    In case it helps, I experienced this error using tagDiv’s Newspaper theme (7.2) on PHP 5.3.29 and WordPress version 4.5.3.

    Further, the theme authors are also looking into this issue. They’ve recommended a temporary hack (around line 215) of the n9m-font-awesome-4.php file. That code is on pastebin.

    Here’s the code snippet:

    function walker_nav_menu_start_el( $item_output, $item, $depth, $args ){
            if (is_array($item->classes)) {
                $classes = preg_grep( '/^(fa)(-\S+)?$/i', $item->classes );
                if( !empty( $classes ) ){
                    $item_output = $this->replace_item( $item_output, $classes );
                }
            }
    
            return $item_output;
    	 }
    Plugin Author Joe Ponzio

    (@new-nine)

    I’m sorry folks. I just pushed an update with the above array check (also added it in another place as well). Please let me know if/that this solves the issue and thanks for your reports!

    Thread Starter robertolacava

    (@robertolacava)

    Ok problem solved with the new upgrade.

    Version ok: 4.6.3.3

    Thanks! 😉

    Thread Starter robertolacava

    (@robertolacava)

    Solved

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Display a Warning after upgrade’ is closed to new replies.