I have a Page/Panel that takes two arguments, a required string (which I use as a content type), and an optional taxonomy term. (The path being configured to be "content_list/%content_type/!term").

If I don't provide the term I get the following warning:

  • Notice: Trying to get property of non-object in ctools_term_breadcrumb() (line 145 of ~/public_html/sites/all/modules/ctools/plugins/arguments/term.inc).
Members fund testing for the Drupal project. Drupal Association Learn more


zabelc’s picture

I got rid of the error by modifying line 139 to read:

  if (empty($conf['breadcrumb']) || empty($context->data) ) {

Thus checking for empty context data

parampadam’s picture

i had the same issue with ctools 7.x-1.0-rc1+116-dev.

The line works - could it be fixed in a coming release?


DamienMcKenna’s picture

Status: Active » Needs review
495 bytes
495 bytes

Patches attached for both D6 and D7.

merlinofchaos’s picture

Status: Needs review » Fixed

Committed ot both branches.

Status: Fixed » Closed (fixed)

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