Thank you Gregor Capuder,
Yes this warning show up after import.
There are no missing items in the menu but when I delete any items from the menu the warning disappears. For example, items from default WooCommerce Pages – SHOP page, CART page. But it happens with other pages too. It’s just that some menu items don’t import correctly.
When I use the default WordPress xml importer I do not have this problem.
You must also select the imported menu primery otherwise the warning does not appear for example:
register_nav_menu( ‘primary’, esc_html__( ‘Primary’, ‘my-theme’ ) );
wp_nav_menu( array(
‘theme_location’ => ‘primary’,
‘menu_id’ => ‘primary-menu’
) );
It happens with different themes and menus.
I also tested a fresh install of WordPress.
I use PHP 8.1
Happy holidays!
-
This reply was modified 2 years, 2 months ago by
tzemtz.
-
This reply was modified 2 years, 2 months ago by
tzemtz.
-
This reply was modified 2 years, 2 months ago by
tzemtz.