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.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.