• Resolved halodout

    (@halodout)


    After updating I get this error on my site:

    Warning: count(): Parameter must be an array or an object that implements Countable in /home/middleburg/www/www/MBH-2019-WP/wp-content/plugins/menu-image/menu-image.php on line 333

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Rui Guerreiro

    (@takanakui)

    Hi @halodout,
    Can you let me know what theme are you using?

    Also if necessary revert to the previous 2.9.2 version using the WP Rollback plugin.

    Plugin Author Rui Guerreiro

    (@takanakui)

    @halodout I just release a new 2.9.4 version that includes a fix for this situation. Give it a try.

    The situation is related to the PHP 7.2 version where the count function doesn’t support NULL values

    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!!

    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

    Thread Starter halodout

    (@halodout)

    @takanakui That fixed it thanks

    Plugin Author Rui Guerreiro

    (@takanakui)

    @halodout Great. I’m glad it worked.
    In the meantime, we released another update to fix another situation.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Error thrown with update to version 2.9.3’ is closed to new replies.