Fatal error for wordpress menu page - its not displaying to edit menus

 Hi,

See the below PHP fatal error i now get. I have updated the theme to the latest version and i now get this error when trying to view the menu page. I htihnk the error in bold is where the problem is.

[16-Apr-2020 13:33:02 UTC] PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function Menu_Items_Visibility_Control::wp_nav_menu_item_custom_fields(), 4 passed in /home/coervere/public_html/wp-includes/class-wp-hook.php on line 287 and exactly 5 expected in /home/coervere/public_html/wp-content/plugins/menu-items-visibility-control/init.php:44
Stack trace:
#0 /wp-includes/class-wp-hook.php(287): Menu_Items_Visibility_Control->wp_nav_menu_item_custom_fields('2717', Object(WP_Post), 0, Object(stdClass))
#1 /wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
#2 /wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#3 /wp-content/themes/betheme/functions/theme-mega-menu.php(283): do_action('wp_nav_menu_ite...', '2717', Object(WP_Post), 0, Object(stdClass))
#4 /wp-includes/class-wp-walker.php(144): Walker_Nav_Menu_Edit_Mfn->start_el('', Object(WP_Post), 0, Object(stdClass))
#5 /wp-content/plugins/menu-items-visibility-control/init.php on line 44

Comments

Sign In or Register to comment.