Ke lokela ho etsa eng haeba sehlooho sa tloaelo sa WordPress se na le phoso e bolaeang?Eketsa khoutu ho e rarolla

Lekola phetoho komporong ea lehaeWordpresstheme, ha ke leka ho fetola sehlooho, ke fumana phoso e latelang e bolaeang ▼

Ke lokela ho etsa eng haeba sehlooho sa tloaelo sa WordPress se na le phoso e bolaeang?Eketsa khoutu ho e rarolla

Phoso e bolaeang ka sehlooho sa tloaelo sa WordPress?

Haeba u kopana le phoso e bolaeang e ts'oanang le e latelang ha u bula sehlooho sa tloaelo sa WordPress le menyu ea morao-rao:

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.

Mokhoa oa ho lokisa Supply nav_menu_item boleng bo sieo: tlhaloso'?

Re ka etsa sena ka lihlooho tsa WordPressfunction.phpfile, eketsa khoutu e latelang ho e lokisa:

/**
* 解决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;
}

Chen WeiliangLekoa, lihlooho tsa WordPressfunction.phpKa faeleng, ka mor'a ho eketsa khoutu e ka holimo, e ka rarolla bothata ba WordPress Fatal error: Uncaught Exception 'Exception' ka molaetsa 'Supplied nav_menu_item value missing property: description'.

Hope Chen Weiliang Blog ( https://www.chenweiliang.com/ ) o ile a arolelana "Ke lokela ho etsa eng haeba sehlooho sa tloaelo sa WordPress se na le phoso e bolaeang? Eketsa khoutu ho e rarolla ", e leng thuso ho uena.

Rea u amohela ho arolelana sehokelo sa sengoloa sena:https://www.chenweiliang.com/cwl-19302.html

Rea u amohela ho mocha oa Telegraph oa blog ea Chen Weiliang ho fumana lintlha tsa morao-rao!

🔔 Eba oa pele oa ho fumana Tataiso ea Tšebeliso ea "ChatGPT Content Marketing AI" ea bohlokoa bukeng ea holimo ea seteishene! 🌟
📚 Tataiso ena e na le boleng bo boholo, 🌟Ona ke monyetla o sa tloaelehang, se ke oa o fetoa! ⏰⌛💨
Share le rata haeba u rata!
Ho arolelana le lintho tseo u li ratang ke khothatso ea rona e tsoelang pele!

 

Comments

Aterese ea hau ea lengolo tsoibila e ke ke ea phatlalatsoa. Ho sebelisoa masimo a hlokahalang * Letšoao

tsamaisetsa hodimo