Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Can’t access Menu Settings – ArgumentCountError: Too few arguments to function

Home / Forums / Ascend Theme / Can’t access Menu Settings – ArgumentCountError: Too few arguments to function

This topic is: Resolved
[Resolved]
Posted in: Ascend Theme
July 29, 2020 at 4:01 pm

Aloha Team Kadence,
I am reporting this issue for both Ascend and Pinnacle themes.
I am not able to access the Menu settings (see attached screen shot)

Error Details
=============
An error of type E_ERROR was caused in line 59 of the file /home1/zerowau6/public_html/domains/zerowasteschoolhui/wp-content/plugins/ultimate-member/includes/admin/core/class-admin-navmenu.php.
Error message: Uncaught ArgumentCountError: Too few arguments to function um\admin\core\Admin_Navmenu::wp_nav_menu_item_custom_fields(), 4 passed in /home1/zerowau6/public_html/domains/zerowasteschoolhui/wp-includes/class-wp-hook.php on line 287 and exactly 5 expected in /home1/zerowau6/public_html/domains/zerowasteschoolhui/wp-content/plugins/ultimate-member/includes/admin/core/class-admin-navmenu.php:59
Stack trace:
#0 /home1/zerowau6/public_html/domains/zerowasteschoolhui/wp-includes/class-wp-hook.php(287): um\admin\core\Admin_Navmenu->wp_nav_menu_item_custom_fields(‘1766’, Object(WP_Post), 0, Object(stdClass))
#1 /home1/zerowau6/public_html/domains/zerowasteschoolhui/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
#2 /home1/zerowau6/public_html/domains/zerowasteschoolhui/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#3 /home1/zerowau6/public_html/domains/zerowasteschoolhui/wp-content/themes/ascend_premium/lib/classes/class-ascend-custom-menu.php(322): do_action(‘wp_nav_menu_ite…’, ‘176
=============

I am using Ultimate Member (UM) plugin. I did disable UM and the issue goes away and I am able to access the Menu settings.
So I looked for support forum in UM and found this:

=============
UM 2.1.6: Menu Issue – Too few arguments to function
A new changes made to the WP Core related to the Menu structure. We have made the same changes to make the UM Menu Visibility feature compatibility with these changes.

If you are encountering an issue with the Menu, here are the possible conflict issues:

1. If you have Mega Menu feature that’s enabled to your site, you must contact them to make the changes for the core Menu compatibility. They have incomplete parameters in wp_nav_menu_item_custom_fields hook.
2. Your Theme has Mega Menu feature but it doesn’t have the action hook ‘wp_nav_menu_item_custom_fields’ to support the standard Menu call so that other plugins can hook into it.
=============

Please let me know if you need more information from me to help fix this problem.

Thank you,
Augusto

  • The forum ‘Ascend Theme’ is closed to new topics and replies.