• Hello I’m getting an Undefined array key error on this last line:

    //Place the breadcrumb in the trail, uses the constructor to set the title, template, and type, get a pointer to it in return
    $breadcrumb = $this->add(new bcn_breadcrumb(
    $term->name,
    $this->opt['Htax_' . $term->taxonomy . '_template_no_anchor'],

    The exact error is:

    PHP Warning: Undefined array key “Htax_attachment_tag_template_no_anchor” in /nas/content/live/ccahalliance/wp-content/plugins/breadcrumb-navxt/class.bcn_breadcrumb_trail.php on line 583

    I presume it is one of my custom post types behaving badly or something similar, but is there a way to use array_key_exists() since this may also be related to a PHP update?

Viewing 1 replies (of 1 total)
  • Plugin Author John Havlik

    (@mtekk)

    It is likely you are registering the custom taxonomy too late for Breadcrumb NavXT to properly setup default settings for said taxonomy. If you visit the Breadcrumb NavXT settings page, you likely will get a warning at the top of the page regarding the taxonomy being registered too late (after the 9000 level of init, which is quite late). The recommendation is to register the taxonomy earlier (can still use init, but it needs to be at some level of value less than 9000).

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.