In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
How to solve the problem of fatal errors when customizing themes and backgrounds in WordPress? Many novices are not very clear about this. In order to help you solve this problem, the following editor will explain it in detail. People with this need can come and learn. I hope you can gain something.
If you encounter a fatal error when opening the WordPress customization and background menu, something like this:
Fatal error: Uncaught Exception: Supplied nav_menu_item value missing property: description in xxxxxxxxxx/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php:183
You can try to solve it with the following code.
A fatal error resolution was encountered when trying to customize the theme and background of WordPress
Add the code to the current theme function template functions.php:
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;}
After that, the error of opening the custom theme menu again disappears, but the code must remain in the theme, and the problem persists after removal.
Another solution is to delete all the menus built in the background, which can completely solve the problem, and then recreate the menu. I have not tried this method, there are similar problems of children's shoes can try, there is no loss.
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.