I tried the module on a testsite, works fine.

When I try it on a site that has I18n installed, I get a WSOD + fatal error on a term page:

Fatal error: require_once() [function.require]: Failed opening required 'sites/all/modules/taxonomy_breadcrumb/i18ntaxonomy.pages.inc' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\bakx\includes\menu.inc on line 346

When I view a node, the term-breadcrumbs display fine, but for some reason there's a conflict with i18n on term-pages itself.

Tested with 1.1 and latest -dev release.

I also have Taxonomy-menu installed and using it, but that doesn't seems to cause problems when I18n isn't installed(all modules are up to date)
Any fixes/patches for this?

Comments

askibinski’s picture

Title: Not compatible with i18n + Taxonomy menu » Not compatible with i18n

Same issue here on a i18n site, but I don't use taxonomy menu.
So I think the problem is only with i18n + taxonomy_breadcrumb.

MGN’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

Both modules are overriding the core taxonomy/term/% pages. taxonomy breadcrumb goes to some length to work with modules like i18n, by storing and calling the original callback function. But for this to work, taxonomy breadcrumb needs to have a greater weight in the system table than i18n. I set up a test installation and found that when i18ntaxonomy has the greater weight, the fatal error occurs. Increasing the weight of the taxonomy breadcrumb module and clearing the cache seems to fix the problem - though I haven't been able to test to see if i18ntaxonomy still works correctly after this change.

This is not really a bug. There just isn't a good way for modules to both override the same page and still work correctly. I know we have it working with a couple of modules now, but not sure if this will be sufficient to work with i18n.

Please let me know if this solution will work for you.

asb’s picture

Status: Postponed (maintainer needs more info) » Active

Same issue here, not using 'taxonomy menu', just 'Taxonomy Breadcrumb' and i18n.

> But for this to work, taxonomy breadcrumb needs to have a greater weight in the system table than i18n.

How do I manage this? Do I need to hack the database directly?

Thanks & greetings, -asb

MGN’s picture

Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

Yes, though I think hack is a strong word. Change the weight of taxonomy breadcrumb so its greater than i18ntaxonomy. I can give you some php code to accomplish this, if you like, or just use phpMyadmin (or something equivalent).

asb’s picture

A sample SQL statement would be fine with me - I'm not using phpMyAdmin, but I've access to the database.

Thank you!

asb’s picture

MGN’s picture

Try the following script. You can execute it in a page (or any other content type) that has php code enabled as an input format. Just cut and paste the whole thing, including the php tags into the body of the page and save it. You should get a message saying the system weight has been changed...

$weight = db_result(db_query("SELECT weight FROM {system} WHERE name = 'i18ntaxonomy'"));
$weight2 = db_result(db_query("SELECT weight FROM {system} WHERE name = 'taxonomy_breadcrumb'"));
if ($weight2 <= $weight) {
  ++$weight;
  db_query("UPDATE {system} SET weight = %d WHERE name = 'taxonomy_breadcrumb'", $weight);
  $newweight = db_result(db_query("SELECT weight FROM {system} WHERE name = 'taxonomy_breadcrumb'"));

  print 'Taxonomy breadcrumb weight changed from ' .$weight2. ' to '.$newweight .' because i18ntaxonomy weight is '.$weight;
}
else {
  print 'Taxonomy breadcrumb weight was not changed since it is already greater than i18ntaxonomy';
}
TuFrac’s picture

Thank you, I me work of marvel, you extracted me of a trouble with your code

RaulMuroc’s picture

Assigned: Unassigned » RaulMuroc
Priority: Normal » Critical

To me it did not work. It told me "Taxonomy breadcrumb weight was not changed..." and is giving me the same message as TuFrac at the beginning "page not found". Is there some other solution or possibility?

I have been trying few things, i watched database and the weight is correctly.

Thanks

Summit’s picture

Subscribing, greetings, Martijn

MGN’s picture

Assigned: RaulMuroc » Unassigned

@raulcabestany, do you know what module(s) are causing the conflict ? Any hints in the error message?

gisle’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (outdated)

The Drupal 6 version is no longer supported. Closing this as outdated. If you think this is still relevant for Drupal 7 or Drupal 9, please open a new issue.