PHP Fatal error – Urgent help required
-
You will see below there is a fatal error when trying to view the menus. Why is this happening and how do we resolve it?
Thanks in advance
PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Menu_Items_Visibility_Control::wp_nav_menu_item_custom_fields(), 4 passed in /wp-includes/class-wp-hook.php on line 287 and exactly 5 expected in /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
- The topic ‘PHP Fatal error – Urgent help required’ is closed to new replies.