Problem/Motivation

I just want to document this here for the case if that happens to others.

I have taxonomy page where no breadcrumbs are beeing set. The settings are correct. So i debugged the "custom_breadcrumbs_entity_view"

The function checks "if ($display->getComponent('breadcrumbs')) {"
For some reason that taxonomy page like /taxonomy/term1 has no breadcrumbs component set so this fails.
To check that i removed the if statement, then the breadcrumb is set.

Steps to reproduce

I still dont know why the breadcrumbs component is not set here. I am still trying to debug that and report back if i find something.
On another site that basically is a clone everything works fine.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

marcoka created an issue. See original summary.

marcoka’s picture

Screenshot for documentation purposes

Page where it does not work($display->getComponent('breadcrumbs') is not there), taxonomy page: http://www.root.artwaves.de/sharex/14-11-21--16-39-58.jpg

The other(2nd) seutp works, but will also have an empty getComponent('breadcrumbs'): http://www.root.artwaves.de/sharex/14-11-21--16-44-29.jpg

But the 2nd triggersbuild functions and "applyContentEntityBreadcrumb" and so on.
I could not figure out yet where these are triggered an by what condition.

Isnt build() triggered by the hook_entity_view implementation of the module?

Went into the core breadcrumb function in SystemBreadcrumbBlock.php

  public function build() {
    return $this->breadcrumbManager->build($this->routeMatch)->toRenderable();
  }

The broken taxonomy page does not even trigger that. The problem must be deeper here.

marcoka’s picture

I found the problem. It is again something in the radix theme. Haven´t figured out what by now, but will post it here soon.

Ok it has truned out that i had negated a condition(display content type) and that caused this weird behavior. Maybe helps someone someday.

marcoka’s picture

Title: Page has no breadcrumbs component set » Breadcrumbs do not show up on taxonomy page(block visibility settings)
Category: Bug report » Task
Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.