Here is the background: I have Custom Breadcrumbs Alpha1 running on a D7 install. I have a "Page" content type on the site. Some of the pages are part of a Book some are not. I have setup breadcrumbs for both page types.

The breadcrumbs for the Book Pages use a custom PHP snippet: if (is_array($node->book)) { return true; }

The non-book pages use the standard custom breadcrumb.

The breadcrumbs for both page types are working (outputting the correct link names and paths), but, when I am on a non-book Page node I get the following error message:

Notice: Undefined property: stdClass::$book in eval() (line 1 of site-url.../modules/contrib/custom_breadcrumbs/custom_breadcrumbs.module(125) : eval()'d code).

Any idea what this could be?

Comments

jason.fisher’s picture

PHP 5.3 notices. $node may not always have a -> book to test. I am noticing several for 6.x also..

qasimzee’s picture

Is there any fix for this issue in general? Not specific for this one.

lamp5’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Closing this because is outdated. Only 7.2 branch and greater are supported.