I am using the identifier to create the breadcrumb for Book Page nodes (from the core Book module). Viewing the node which is the title page of the book (and is a Book Page), I get the following error:

Notice: Undefined index: crumb in _custom_breadcrumbs_get_breadcrumb() (line 412 of .../custom_breadcrumbs/custom_breadcrumbs.module).

Despite receiving this error, the breadcrumbs do display correctly. The breadcrumbs also display error-free on child pages within the book.

Comments

aitala’s picture

I see the same issue with alpha3 ...

For Titles, I am using - [node:book:parents:join-path]/[node:title]

For Paths, I am using -

Eric

1mundus’s picture

Same here. It displays correctly, but logs that error. I don't know if there are any consequences of that error, so I'd rather get rid of it.

kunago’s picture

This tiny fix should make the error disappear - replace line 412 in file custom_breadcrumbs.module:

from:
if ($item['crumb']) {
to:
if (isset($item['crumb'])) {

That should do.

1mundus’s picture

@kunago

Thank you, seems to work.

dadderley’s picture

Issue summary: View changes

Thanks kunago
Same problem, and your fix worked well.
This should be added to the module and released.

harsh.behl’s picture

Status: Active » Needs review
StatusFileSize
new515 bytes

here is the patch for the same.

renatog’s picture

Assigned: Unassigned » renatog
Status: Needs review » Reviewed & tested by the community
Issue tags: +ciandt-contrib
StatusFileSize
new15.96 KB
new59.7 KB

Hi people.

I applied the patch and works good for me too.

Before:

After:

Thank you all for contributions.

Regards.

  • RenatoG committed 87ed408 on 7.x-2.x authored by pen
    Issue #1950624 by pen, RenatoG, 1mundus, aitala, kunago, genjohnson,...
renatog’s picture

Status: Reviewed & tested by the community » Fixed

Fixed.

Commited in dev branch.

Thank you very much people.

Regards.

Status: Fixed » Closed (fixed)

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