After I moved a site to D7 from D6 I have lost my breadcrumbs. It's driving me nuts because I can't find anything wrong in my custom subtheme. I've even tried setting the default theme to be the AT core theme, and the breadcrumbs still aren't showing up. I've made sure the breadcrumb setting is turned on and set to show the home page. The correct variable is in the page.tpl. If I switch to another theme, like garland, the breadcrumbs show up. I am using the Hansel Breadcrumbs, which I've never had problems with before.
Is there another place I could be missing a setting?

Comments

Jeff Burnz’s picture

All breadcrumbs or just some breadcrumbs? E.g. are they showing on any pages at all, such as forum or book pages?

Changing to AT Core wont change things, blowing away the menu cache might?

There is some code in adaptivetheme_process_page() that destroys breadcrumbs on the user register and password reset pages (Drupal displays a breadcrumb to the User page, its quit silly and does nothing but reload the page).

I don't really have time to test http://drupal.org/project/hansel right now, maybe in a few days i will, but right now I have to get on with some real (i.e. paying) work! Lol.

Jeff Burnz’s picture

After I moved a site to D7 from D6

You mean D6 to D7 right?

wxman’s picture

Yes I did mean D6-D7. I have had a long day.
I've tried all my page types, including blogs, panels, articles, etc. It shows none on any page. I checked the code, and it's only showing:

  <div id="breadcrumb">
    <h2 class="element-invisible">You are here:</h2>
  </div>

I cleared all the caches but no luck. Hansel was working fine on the D6 version, and templates changed little when I converted them.

I'll try to uninstall Hansel to see what happens, but I'd like to keep it if possible. It's really worked well for me.

Have fun making all that money.

Jeff Burnz’s picture

Ha, all that money, i wish ;)

Let me know if removing Hansel does the trick, I am interested in following this in case there is a bug in there somewhere.

wxman’s picture

I removed Hansel, flushed all the caches, no change.

wxman’s picture

The plot thickens. I noticed that if I use AT admin theme, the breadcrumbs are there. I checked the settings for that theme, and the breadcrumbs were turned off. I went back and TURNED OFF all the breadcrumb settings in both the AT core, and my sub theme, and the breadcrumbs came back. What's even stranger, I saw that the home crumb was missing, so I checked the breadcrumb box, checked the home box, then unchecked the show breadcrumbs box again. Now the home breadcrumb even shows.
Next I'll try Hansel again.

Jeff Burnz’s picture

Sounds like a review of these settings is in order, could be some weird behavior creeping in here!

Jeff Burnz’s picture

Category: support » bug

bah, I see the issue now, yes this must be a bug somewhere.

capitolium’s picture

Same issue here.
Moved D6 -> D7
Installed AdaptiveTheme, sub-theme Corolla.
Breadcrumbs ON.

Behavior:

  • Breadcrumbs on admin pages: yes, they are visible
  • Breadcrumbs on other pages: not visible
  • Refreshing the same page where breadcrumbs were not visible: the breadcrumbs magically appear.

Huh...

Jeff Burnz’s picture

Status: Fixed » Active

"Huh" exactly, its a definite WTF is going on moment, for you and me! Well, I know precisely what is going on, its to do with how Drupal figures out what the "active theme" is - its not as simple as you might think because Drupal must support theme switching and sets the value of $theme_key dynamically, which leads to issues... additionally there is a very nasty and real bug in Drupal core that sets the wrong theme key in certain situations when on the theme settings page, probably the worst place for anything like this to go wrong, but it does and I need to figure out some new tricks to get around this (believe me, I am already doing a lot).

So while this is a bug report against the theme, its not the theme at fault here, its Drupal core that is at fault, however the code that causes this bug is un-fixable in Drupal 7, so I am left to attempt workarounds and sheer hacks to make this theme work the way I want it to. Understand that I posted the bug report against Durpal core nearly two years ago, the bug was introduced in Drupal 7, in D6 the bug did not exist.

Bollocks, I was barking up the wrong tree here big time, I made an assumption that panned out to be incorrect and was just an overrsite on my part.

Jeff Burnz’s picture

Status: Active » Fixed

OK, I traced this back to an oversite I made a few weeks back when changing the value of the theme settings for breadcrumb display. This used to be a little drop list with "yes/no", in 7.x-3.x this was changed to the more appropriate checkbox settings which have boolean values... which I forgot to change in theme_breadcrumb().

See the Upgrade FAQ for the required fix in your sub-themes info file: Breadcrumbs are not displaying or showing weird behavior

Status: Active » Closed (fixed)

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