Hello,
I installed crumbs with Drupal 7.16 + Drupal Commerce 7.x-1.3
I did not change the default settings.
In store, access category (taxonomy menu), item and when I click on the product (node) the error occurs.
Notice: Undefined index: link_options em theme_crumbs_breadcrumb_link() (linha 80 de /var/www/mysite/public_html/subfolder/sites/all/modules/crumbs/crumbs.module).
Recoverable fatal error: Argument 3 passed to l() must be an array, null given, called in /var/www/mysite/public_html/subfolder/sites/all/modules/crumbs/crumbs.module on line 80 and defined em l() (linha 2345 de /var/www/mysite/public_html/subfolder/includes/common.inc).
Steps:
1. Home
http://mysite/subfolder/
BC: none
2. Store
http://mysite/subfolder/loja-virtual
BC: Início »
3. Category "Decoração" (Taxonomy Menu)
http://mysite/subfolder/loja/decoracao
BC: Início » Decoração
4. Subcategory "Almofadas" (Taxonomy Menu)
http://mysite/subfolder/loja/almofadas
BC: Início » Decoração » Almofadas
5. Product (node)
http://mysite/subfolder/loja/22/capa-alm-de-seda-50x50-verde
error
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | crumbs-7.x-1.x-link_options-might-be-empty-1844584-2.patch | 549 bytes | donquixote |
Comments
Comment #1
donquixote commentedHi,
thanks for reporting!
I'm sure we can clean that up.
It seems I assume that $item['link_options'] always has a value. Apparently it has not.
Can you tell me what kind of page that is, where you see the error? (the loja/22/capa-alm-de-seda-50x50-verde) I suppose this is a url alias for something?
Comment #2
donquixote commentedCan you check if this works for you?
Comment #3
donquixote commented(setting status)
Comment #4
coyoterj commentedHi,
I applied the patch and received these notices:
Yes, this is a url alias to:
http://mysite/subfolder/node/21
Thanks!
Comment #5
donquixote commentedStrange, why would it be in line 81 now, instead of line 80 ?
Ok, can you replace the is_array() with isset() ?
Comment #6
bojanz commentedThis usually happens when a module that is not Crumbs aware tries to alter the breadcrumb (we have an open issue about that).
Comment #7
donquixote commented@bojanz: Yep.
#1800904: Re-evaluate the ways to alter the breadcrumb
I'd say we handle this particular bug with a hotfix (*) as in #2 / #5, and then follow up in the other issue.
(*) We have a 7.x-1.x-hotfix branch, that is specifically made for easy and obvious bug fixes, if these are unlikely to cause regressions. Point releases can be made directly from the hotfix branch. And then we merge this stuff back into 7.x-1.x.
Comment #8
coyoterj commentedHi,
I replaced "is_array" with "isset" and it worked.
Line 81 because I commented (I have not deleted) the old line 80 :)
Thanks!
Comment #9
coyoterj commentedComment #10
donquixote commentedIt is fixed when the changes are released - not when there is a patch..
7.x-1.8 is now released, and the change is merged into 7.x-1.x-dev.
So now it is fixed :)
Comment #11
donquixote commentedBtw, I will very soon get my hands on the other issue. Might happen on the weekend.
Comment #12
coyoterj commentedHello donquixote,
Sorry, my English is poor and I am a newbie in "issues" ... :)
Thanks and congratulations!
Comment #13.0
(not verified) commentedFix error in the text.