The breadcrumb block can be empty, i.e. have no breadcrumb, however the $variables[page][region] array is not empty, so it gets added, this of course appears in preprocess where a check for empty fails.

Result - I can't reliably layout the page using preprocess to add classes, neither can Bartik which breaks if you stick the Breadcrumb block in the sidebar and view the front page.

#2350949: Add hook_page_attachments(_alter)() and deprecate hook_page_build/alter() could be related, not sure.

Comments

dawehner’s picture

Issue summary: View changes
dawehner’s picture

@Jeff Burnz
What is the reason to report a bug against 8.1.x? I think people will see that problem also in 8.0.x...

Jeff Burnz’s picture

Version: 8.1.x-dev » 8.0.x-dev

I was in a hurry and chose the wrong version :)

wildfeed’s picture

Assigned: Unassigned » wildfeed
Status: Active » Closed (cannot reproduce)

Breadcrumb block is rendered properly when set to appear in Sidebar first using Bartik theme.

penyaskito’s picture

Assigned: wildfeed » Unassigned

Thanks for checking @wildfeed!

I can confirm the same, enabled breadcrumb block and went to a page without breadcrumb, and there was no error or warning (nor in the UI nor in apache log).