Fatal error – creating navigation menu for Custom taxonomy
-
I have a custom taxonomy created called “Locations”.
Now, i try to create a navigation menu in Appearance | menus called “Locations”.
On The left-hand side there is “Add menu items”, the “Locations” is displayed
and pull-down, select it and choose “select all” checkbox.
The whole hierarchy custom taxonomy is now displayed on “Menu Structure” panel on
the right-hand side. Click “Save Menu”, get fatal error (on both WP 5.9.3 and 6.0.1):Fatal error: Uncaught Error: Object of class WP_Error could not be converted to string in /nas/content/live/tcshop/wp-includes/formatting.php:1015 Stack trace: #0 /nas/content/live/tcshop/wp-includes/nav-menu.php(499): wp_specialchars_decode(Object(WP_Error)) #1 /nas/content/live/tcshop/wp-admin/includes/nav-menu.php(1202): wp_update_nav_menu_item(581, 23294, Array) #2 /nas/content/live/tcshop/wp-admin/nav-menus.php(424): wp_nav_menu_update_menu_items(581, ‘Locations’) #3 {main} thrown in /nas/content/live/tcshop/wp-includes/formatting.php on line 1015`
- The topic ‘Fatal error – creating navigation menu for Custom taxonomy’ is closed to new replies.