Download & Extend

Notice: Trying to get property of non-object in ctools_term_breadcrumb (line 145

Project:Chaos tool suite (ctools)
Version:7.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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).

Comments

#1

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

#2

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?

thanks,
parampadam

#3

Status:active» needs review

Patches attached for both D6 and D7.

AttachmentSizeStatusTest resultOperations
ctools-n1300666-d6.patch495 bytesIgnored: Check issue status.NoneNone
ctools-n1300666-d7.patch495 bytesIgnored: Check issue status.NoneNone

#4

Status:needs review» fixed

Committed ot both branches.

#5

Status:fixed» closed (fixed)

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