Tuhinga Tuhinga
Whakamātauria te whakakapinga i runga i te rorohiko ā-rohe.WordPressI te ngana ki te whakarite i tētahi kaupapa, i puta te hapa nui e whai ake nei ▼

Me aha mēnā ka puta he hapa nui i roto i tētahi kaupapa ritenga WordPress?
Mena ka tūtaki koe ki tētahi hapa nui pēnei i te mea e whai ake nei i te whakatuwheratanga o te tahua kaupapa ritenga me te papamuri o WordPress:
Fatal error: Uncaught exception 'Exception' with message 'Supplied nav_menu_item value missing property: description' in D:\xampp\htdocs\wp\ceshimuban\wp-includes\customize\class-wp-customize-nav-menu-item-setting.php:183 Stack trace: #0 D:\xampp\htdocs\wp\ceshimuban\wp-includes\class-wp-customize-nav-menus.php(820): WP_Customize_Nav_Menu_Item_Setting->__construct(Object(WP_Customize_Manager), 'nav_menu_item[1...', Array) #1 [internal function]: WP_Customize_Nav_Menus->customize_register(Object(WP_Customize_Manager)) #2 D:\xampp\htdocs\wp\ceshimuban\wp-includes\class-wp-hook.php(303): call_user_func_array(Array, Array) #3 D:\xampp\htdocs\wp\ceshimuban\wp-includes\class-wp-hook.php(327): WP_Hook->apply_filters('', Array) #4 D:\xampp\htdocs\wp\ceshimuban\wp-includes\plugin.php(470): WP_Hook->do_action(Array) #5 D:\xampp\htdocs\wp\ceshimuban\wp-includes\class-wp-customize-manager.php(933): do_action('customize_regis...', Object(WP_Customize_Manager)) #6 [internal function]: WP_Customize_Manager->wp_loaded('') #7 D:\xampp\htd in D:\xampp\htdocs\wp\ceshimuban\wp-includes\customize\class-wp-customize-nav-menu-item-setting.php on line 183
There has been a critical error on this website. Please check your site admin email inbox for instructions.
Learn more about troubleshooting WordPress.Me pēhea te whakatau i te take o 'Kua ngaro te āhuatanga: whakaahuatanga o te uara o te nav_menu_item i tukuna'?
Ka taea e tātou te mahi i tēnei i roto i ngā kaupapa WordPress.function.phpTāpirihia te waehere e whai ake nei ki te kōnae hei whakatika:
/**
* 解决WordPress自定义主题时出现致命错误 By 陈沩亮博客
* https://www.chenweiliang.com/cwl-19302.html
**/
add_filter('wp_get_nav_menu_items', 'my_wp_get_nav_menu_items', 10, 3);
function my_wp_get_nav_menu_items($items, $menu, $args) {
foreach($items as $key => $item)
$items[$key]->description = '';
return $items;
}Ko Chen WeiliangWhai muri i te whakamātautau, ko te kaupapa WordPress...function.phpMā te tāpiri i te waehere i runga ake nei ki te kōnae ka whakatauhia te hapa Fatal WordPress: Uncaught exception 'Exception' me te karere 'Supplied nav_menu_item value missing property: description'.
Hope Chen Weiliang Blog ( https://www.chenweiliang.com/ Tērā pea he āwhina ki a koe te tuhinga "Me aha mēnā ka puta he hapa nui i roto i tētahi kaupapa ritenga WordPress? Tāpirihia he waehere hei whakatau" kua tohaina ki konei.
Nau mai ki te tohatoha i te hono o tenei tuhinga:https://www.chenweiliang.com/cwl-19302.html
