Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1040487

    Query monitor shows 4 errors:Undefined index: id

    Location:
    get_header()
    wp-content/themes/enfold/template-builder.php:24
    locate_template()
    wp-includes/general-template.php:41
    load_template(‘wp-content/themes/enfold/header.php’)
    wp-includes/template.php:647
    wp_head()
    wp-content/themes/enfold/header.php:77
    do_action(‘wp_head’)
    wp-includes/general-template.php:2614
    wp_enqueue_scripts()
    Unknown location
    do_action(‘wp_enqueue_scripts’)
    wp-includes/script-loader.php:1447
    avia_register_frontend_scripts()
    Unknown location
    avia_get_submenu_count()
    wp-content/themes/enfold/functions.php:387
    wp_get_nav_menu_items()
    wp-content/themes/enfold/framework/php/function-set-avia-frontend.php:1622
    apply_filters(‘wp_get_nav_menu_items’)
    wp-includes/nav-menu.php:724
    If_Menu::wp_get_nav_menu_items()
    Unknown location
    If_Menu::get_conditions()
    wp-content/plugins/if-menu/if-menu.php:59
    wp-content/plugins/if-menu/if-menu.php:46

    I check the if-menu plug found two topics may be related, could you please help? thanks!

    https://wordpress.org/support/topic/condition-crashes-site-due-to-lack-of-id-reference/
    https://wordpress.org/support/topic/php-warnings-62/

    #1040857

    Hey debra15,

    Where are you getting these errors?

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?

    Best regards,
    Victoria

    #1040979

    I use Query monitor.

    You can log in and see the php error messages on the admin bar in the frontend.

    #1043044

    Hi,

    The error is generated by the “if-menu” plugin from this file “wp-content/plugins/if-menu/if-menu.php:46”. Please contact the plugin authors.

    Best regards,
    Ismael

    #1043307

    Yes, I know. I posted this in the begin and I check the if-menu plug found two topics may be related:
    https://wordpress.org/support/topic/condition-crashes-site-due-to-lack-of-id-reference/
    https://wordpress.org/support/topic/php-warnings-62/

    The author said:
    “This usually happens when a custom visibility rule is added by another theme or plugins. The added visibility rules are missing the id field, which is required.
    Do you know if a theme or other plugins add these?”
    and
    ” This may happen if a theme or plugin adds extra conditions with missing id.”

    So I came to you to ask help.

    #1044709

    Hi,

    The theme doesn’t add any visibility rules but it does have the mega menu option, which is probably where the conflict lies. You may need to use another plugin like this one:

    // https://wordpress.org/plugins/menu-items-visibility-control/

    Or use the Zen Menu Logic plugin.

    Best regards,
    Ismael

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.