workingwithwebsites
Forum Replies Created
-
Hi @nsinelnikov ,
Thanks so much for your quick reply. That has worked now, I was missing the 5th attribute. I added the var $id and it now works.
Code below for other users reference:
<?php // This is the added section //do_action( 'wp_nav_menu_item_uo_fields', $item_id, $item, $depth, $args ); do_action( 'wp_nav_menu_item_custom_fields', $item_id, $item, $depth, $args, $id ); // end added section ?>I have the same issue with the menu option page causing fatal error. I am using: OceanWP, Ultimate Member & Uncanny Learndash Toolkit.
WordPress version 5.4.2
Current theme: Custom BYBT (version 1.0)
Current plugin: Ultimate Member (version 2.1.6)
PHP version 7.4.8In this case, WordPress caught an error with one of your plugins, Ultimate Member.
Error Details
=============
An error of type E_ERROR was caused in line 59 of the file /home/custom-bybt/public_html/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 /home/custom-bybt/public_html/wp-includes/class-wp-hook.php on line 287 and exactly 5 expected in /home/custom-bybt/public_html/wp-content/plugins/ultimate-member/includes/admin/core/class-admin-navmenu.php:59Stack trace:
#0 /home/custom-bybt/public_html/wp-includes/class-wp-hook.php(287): um\admin\core\Admin_Navmenu->wp_nav_menu_item_custom_fields(’27’, Object(WP_Post), 0, Object(stdClass))
#1 /home/custom-bybt/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
#2 /home/custom-bybt/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#3 /home/custom-bybt/public_html/wp-content/plugins/uncanny-learndash-toolkit/src/includes/custom-walker-nav-menu.php(199): do_action(‘wp_nav_menu_ite…’, ’27’, Object(WP_Post), 0, Object(stdClass))
#4 /home/custom-bybt/public_html/wp-includes/class-wp-walker.php(144): CuIs there a current fix for this issue, or recommendations on who to follow this error up with?
- This reply was modified 5 years, 8 months ago by workingwithwebsites. Reason: Removed sensitive information