最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

menus - How to fix “Supplied nav_menu_item value missing property” after update to Wordpress 5.0

programmeradmin4浏览0评论

Please help. We have page on WordPress with our custom theme and minimum plugins. After update WordPress from 4.9 to 5.0.2 we have error in the admin page on Themes => Customize. Everything else is working.

I try turn off and on foreign plugins (except WP bakery). Thanks.

Fatal error: Uncaught Exception:
Supplied nav_menu_item value missing property: description in /wp-includes/customize/class-wp-customize-nav-menu-item-setting.php:183

Stack trace:

#0 /wp-includes/class-wp-customize-nav-menus.php(692): WP_Customize_Nav_Menu_Item_Setting->__construct(Object(WP_Customize_Manager), 'nav_menu_item[7...', Array)
#1 /wp-includes/class-wp-hook.php(286): WP_Customize_Nav_Menus->customize_register(Object(WP_Customize_Manager))
#2 /wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
#3 /wp-includes/plugin.php(453): WP_Hook->do_action(Array)
#4 /wp-includes/customize/class-wp-customize-nav-menu-item-setting.php on line 183

Please help. We have page on WordPress with our custom theme and minimum plugins. After update WordPress from 4.9 to 5.0.2 we have error in the admin page on Themes => Customize. Everything else is working.

I try turn off and on foreign plugins (except WP bakery). Thanks.

Fatal error: Uncaught Exception:
Supplied nav_menu_item value missing property: description in /wp-includes/customize/class-wp-customize-nav-menu-item-setting.php:183

Stack trace:

#0 /wp-includes/class-wp-customize-nav-menus.php(692): WP_Customize_Nav_Menu_Item_Setting->__construct(Object(WP_Customize_Manager), 'nav_menu_item[7...', Array)
#1 /wp-includes/class-wp-hook.php(286): WP_Customize_Nav_Menus->customize_register(Object(WP_Customize_Manager))
#2 /wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
#3 /wp-includes/plugin.php(453): WP_Hook->do_action(Array)
#4 /wp-includes/customize/class-wp-customize-nav-menu-item-setting.php on line 183
Share Improve this question edited Dec 22, 2019 at 15:35 Howdy_McGee 20.9k24 gold badges91 silver badges177 bronze badges asked Dec 25, 2018 at 17:27 PeterPeter 112 bronze badges 3
  • Do you have any menu items created from PHP code? – Krzysiek Dróżdż Commented Dec 25, 2018 at 17:30
  • I was only able to fix this by deleting my menus and recreating them. – Joel Newcomer Commented Dec 22, 2019 at 14:41
  • A fix has been posted in another thread here: stackoverflow/a/60277985/10310637. – BrianR. Commented Jan 14 at 15:39
Add a comment  | 

1 Answer 1

Reset to default 2

I have an update on this. I discovered that if a menu item has ACF fields assigned to it and you delete a menu item, it causes this error in the Customizer. It seems as if the menu item delete functions are leaving ACF data behind in the database which is causing this. I have reached out to ACF support regarding the issue.

发布评论

评论列表(0)

  1. 暂无评论