Tagged: critical error, incompatibility, ultimate member
There is an issue with the newest Ultimate Member plugin version update and this theme that creates a critical error. My team needs Ultimate Member to support our websites’ communities, please fix this!
More info here:
https://wordpress.org/support/topic/ultimate-member-2-1-6-theme-menus-breaking-changes/
Hi CWPTemplate,
Can you please check the server log for error?
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
Victoria
Okay, sounds good.
Hi CWPTemplate,
Can you please tell us how to reproduce the issue step by step?
Best regards,
Victoria
Having the Ultimate Members plugin activated and going to Appearance > Menus.
Hi,
Thank you for the update.
The wp_nav_menu_item_custom_fields hook is used in the themes\enfold\functions-enfold.php file, look for the avia_menu_button_style function and starting from line 1779 you’ll see this code:
add_action('wp_nav_menu_item_custom_fields', 'avia_menu_button_style', 10, 4);
function avia_menu_button_style($output, $item, $depth, $args)
Replace it with:
add_action('wp_nav_menu_item_custom_fields', 'avia_menu_button_style', 10, 5);
function avia_menu_button_style($output, $item, $depth, $args, $id)
Another instance is inside the themes\enfold\framework\php\class-megamenu.php around line 534:
do_action( 'wp_nav_menu_item_custom_fields', $item_id, $item, $depth, $args );
Add the $id parameter in the hook.
do_action( 'wp_nav_menu_item_custom_fields', $item_id, $item, $depth, $args, $id );
We’ll forward the changes to our channel.
Best regards,
Ismael