• Resolved Jeff North

    (@jayjayau)


    I’m seeing the following Notice message on my dev server after updating to version 2.9.4
    Notice: Undefined index: wp_nav_menu_args in [my server name]\wp-content\plugins\menu-image\menu-image.php on line 334
    PHP version 7.3.1
    Wordpress version 5.2.2

Viewing 8 replies - 1 through 8 (of 8 total)
  • Warning: count(): Parameter must be an array or an object that implements Countable in menu-image/menu-image.php on line 333

    same error. 2.9.4 fix the error, but destroy my design!!

    Error message: Uncaught Error: Call to undefined function fs_normalize_path() in menu-image/freemius/start.php:47

    Alex

    (@alexsaniregmailcom)

    In 2.9.4 i fixed error:
    Notice: Undefined index: wp_nav_menu_args in /wp-content/plugins/menu-image/menu-image.php on line 334
    editing /wp-content/plugins/menu-image/menu-image.php and replace line 334 with:
    $menu_filters_count = ( is_array($wp_filter[‘wp_nav_menu_args’] ) ? count( $wp_filter[‘wp_nav_menu_args’] ) : 0 );

    Cheers
    Alex

    Plugin Author Rui Guerreiro

    (@takanakui)

    @jayjayau @alexsaniregmailcom Thanks for the feedback, I’m evaluating if that part of the code still needs to be there, will make some testing and will see if that block of code still makes sense.

    This is a screenshot from the code downloaded from the last version
    https://cl.ly/0f7dac57ad30

    @caw67
    That’s strange can you delete the plugin and install it again. Also what exactly happened to your design (if possible provide the site URL)

    Alex

    (@alexsaniregmailcom)

    Sorry, I pasted original code.
    This is the edited one:
    $menu_filters_count = ( isset($wp_filter[‘wp_nav_menu_args’]) && is_array($wp_filter[‘wp_nav_menu_args’] ) ? count( $wp_filter[‘wp_nav_menu_args’] ) : 0 );

    I added isset condition.

    Plugin Author Rui Guerreiro

    (@takanakui)

    @alexsaniregmailcom @caw67 @jayjayau
    I just released a new update that should fix the situations above.
    Give it a try and let me know if it’s sorted.

    Thanks

    Thread Starter Jeff North

    (@jayjayau)

    all good, thank you

    Plugin Author Rui Guerreiro

    (@takanakui)

    That’s great. Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Error thrown with update to version 2.9.4’ is closed to new replies.