• Resolved Danilo Krdzic

    (@krdza93)


    After activating the plugin there is a fatal error in the customizer. Saw on the StackOverflow that else are experiencing this issue as well.

    This is the error:
    Fatal error: Uncaught Exception: Supplied nav_menu_item value missing property: status in /home/745232.cloudwaysapps.com/jazbgmnyad/public_html/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php:183 Stack trace: #0 /home/745232.cloudwaysapps.com/jazbgmnyad/public_html/wp-includes/class-wp-customize-nav-menus.php(818): WP_Customize_Nav_Menu_Item_Setting->__construct() #1 /home/745232.cloudwaysapps.com/jazbgmnyad/public_html/wp-includes/class-wp-hook.php(307): WP_Customize_Nav_Menus->customize_register() #2 /home/745232.cloudwaysapps.com/jazbgmnyad/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #3 /home/745232.cloudwaysapps.com/jazbgmnyad/public_html/wp-includes/plugin.php(476): WP_Hook->do_action() #4 /home/745232.cloudwaysapps.com/jazbgmnyad/public_html/wp-includes/class-wp-customize-manager.php(933): do_action() #5 /home/745232.cloudwaysapps.com/jazbgmnyad/public_html/wp-includes/class-wp-hook.php(307): WP_Customize_Manager->wp_loaded() #6 /home/745232.cloudwaysapps.com/jazbgmnya in /home/745232.cloudwaysapps.com/jazbgmnyad/public_html/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php on line 183

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi @krdza93 ,

    Thanks for the report!

    I just tried to install Add Descendants.. to my test site, which includes the following:

    WP 6.0
    WooCommerce 6.6.0
    TwentyTwentyOne theme 1.2

    I cannot trigger a fatal error as you show in your message, either on the site or in Firefox’s dev tools.

    Would you reply with a copy of your Tools->Site Health, Info tab, so we can get a better sense of your site/server environment?

    In re: Stack Exchange, is this the thread you’re referring to:

    https://wordpress.stackexchange.com/questions/295461/using-string-instead-of-object-class-instantiation-on-the-walker-argument-breaks

    That suggests an issue with your theme.

    Or is it another? If so, would you send us a link to it?

    Best,
    Cena

    Thread Starter Danilo Krdzic

    (@krdza93)

    It works fine on the frontend but not when you go to a WP-Admin > Appearance > Customize

    Hi @krdza93 ,

    I did test the customizer (backend) with Storefront and TwentyTwentyTwo themes, and no error. I tested the themes with both Gutenberg and Full Site Editing.

    What theme are you using? Would you try switching to a default theme (ie, one Automattic makes) and see if the issue persists? If it does not, then that indicates an issue with your theme, and you’ll need to contact the theme developer for help.

    Best,
    Cena

    Thread Starter Danilo Krdzic

    (@krdza93)

    @cena

    I am using Beaver Builder theme but now I switched to Twenty Twenty + disabled all plugins except Woocommerce and this plugin, still issue in customizer and on top of that menu items are 3-4x duplicated:
    https://prnt.sc/xeY90P5OQIwa

    Hi @krdza93 ,

    Interesting! I can’t duplicate this either, BUT – I’m only able to test with the free Beaver Builder plugin (not theme).

    It’s possible you’re still seeing some sort of cached data or improperly removed data from the database from a plugin.

    I’d suggest spinning up a fresh WordPress site, default theme, and only add the Add Descendants.. plugin. Is everything working? Add a single plugin from your original site, testing for issues with the Customizer/nav menu each time. If you get the errors/multiplied nav after adding a plugin, then that plugin is conflicting with Add Descendants. Let us know what it is! 🙂

    Finally, add Beaver Builder theme and test again. If the error shows up now, then you’ll need to contact that team for help.

    Let me know what you find, and we’ll go from there.

    Best,

    Cena

    Hardline1988

    (@hardline1988)

    Hello guys, i am facing the same error with the elementor builder.

    This is the error:

    Fatal error: Uncaught Exception: Supplied nav_menu_item value missing property: status
    in /home/536745.cloudwaysapps.com/uhyybsmgud/public_html/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php on line 183
    
    Call stack:
    
    WP_Customize_Nav_Menu_Item_Setting::__construct()
    wp-includes/class-wp-customize-nav-menus.php:818
    WP_Customize_Nav_Menus::customize_register()
    wp-includes/class-wp-hook.php:307
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:331
    WP_Hook::do_action()
    wp-includes/plugin.php:476
    do_action()
    wp-includes/class-wp-customize-manager.php:933
    WP_Customize_Manager::wp_loaded()
    wp-includes/class-wp-hook.php:307
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:331
    WP_Hook::do_action()
    wp-includes/plugin.php:476
    do_action()
    wp-settings.php:620
    require_once()
    wp-config.php:78
    require_once()
    wp-load.php:50
    require_once()
    wp-blog-header.php:13
    require()
    index.php:17

    Hi @hardline1988,

    Please start a new thread – issues with different themes can have different causes. (As noted in this thread, I can’t duplicate with default themes, and for the OP, the theme in use is Beaver Builder).

    Best,
    Cena

    This post might help : https://alex.blog/wordpress-plugins/add-descendants-as-submenu-items/comment-page-2/#comment-240480
    I had the same issue and this patch fixed it.

    I’ve applied this patch and released an update. Please let us know if you continue to run into this issue.

    Cheers,

    Jake M.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Fatal error in customizer’ is closed to new replies.