• Hi,

    I’ve been using Ultimate Member with Astra theme for more than 6 months without any issues.

    After the recent update, there seems to be an issue with the Menus. It is throwing a fatal error. Below are the details. Can someone please help? Thanks a million in advance!

    Error log:
    Fatal error: Uncaught ArgumentCountError: Too few arguments to function um\admin\core\Admin_Navmenu::wp_nav_menu_item_custom_fields(), 4 passed in /wordpress/core/5.4.1/wp-includes/class-wp-hook.php on line 287 and exactly 5 expected in /srv/htdocs/wp-content/plugins/ultimate-member/includes/admin/core/class-admin-navmenu.php:58

    Stack Trace:

    Stack Trace
    1.
    um\admin\core\Admin_Navmenu->wp_nav_menu_item_custom_fields(3063, Object(WP_Post), 0, Object(stdClass))
    /wordpress/core/5.4.1/wp-includes/class-wp-hook.php:287
    2.
    WP_Hook->apply_filters(NULL, Array)
    /wordpress/core/5.4.1/wp-includes/class-wp-hook.php:311
    3.
    WP_Hook->do_action(Array)
    /wordpress/core/5.4.1/wp-includes/plugin.php:478
    4.
    do_action(‘wp_nav_menu_ite…’, 3063, Object(WP_Post), 0, Object(stdClass))
    /srv/htdocs/wp-content/plugins/wp-fusion-lite/includes/admin/class-admin-menu-walker.php:63
    5.
    WPF_Admin_Menu_Walker->get_custom_fields(Object(WP_Post), 0, Object(stdClass))
    /srv/htdocs/wp-content/plugins/wp-fusion-lite/includes/admin/class-admin-menu-walker.php:28
    6.
    WPF_Admin_Menu_Walker->start_el(”, Object(WP_Post), 0, Object(stdClass))
    /wordpress/core/5.4.1/wp-includes/class-wp-walker.php:144
    7.
    Walker->display_element(Object(WP_Post), Array, 0, 0, Array, ”)
    /wordpress/core/5.4.1/wp-includes/class-wp-walker.php:244
    8.
    Walker->walk(Array, 0, Object(stdClass))
    /wordpress/core/5.4.1/wp-includes/nav-menu-template.php:584
    9.
    walk_nav_menu_tree(Array, 0, Object(stdClass))
    /wordpress/core/5.4.1/wp-admin/includes/nav-menu.php:1077
    10.
    wp_get_nav_menu_to_edit(1978)
    /wordpress/core/5.4.1/wp-admin/nav-menus.php:512
    11.
    {main}
    thrown in /srv/htdocs/wp-content/plugins/ultimate-member/includes/admin/core/class-admin-navmenu.php on line 58

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hi @seed2launch,

    You can fix this error by changing line 63 in class-admin-menu-walker.php file on your server /wp-content/plugins/wp-fusion-lite/includes/admin/class-admin-menu-walker.php

    Replace line 63 with this line:
    do_action( 'wp_nav_menu_item_custom_fields', $item_id, $item, $depth, $args, $id );

    Don’t forget to backup the “old” class-admin-menu-walker.php file just in case.

    Let me know if it helps.
    Regards.

    Thread Starter seed2launch

    (@seed2launch)

    @ultimatemembersupport

    thank you very much for getting back to me!

    your line of code seems to work. however, the menu settings does not seem to work.
    also, the menu settings appear twice (instead of one time as it used to appear previously).
    here’s the screenshot – Menu Settings appearing twice

    can you please help in further debugging this issue?

    thank you very much in advance.

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

The topic ‘Menu Conflict’ is closed to new replies.