Project:Taxonomy Breadcrumb
Version:6.x-1.1
Component:Code
Category:support request
Priority:critical
Assigned:Unassigned
Status:postponed (maintainer needs more info)

Issue Summary

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

#1

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.

#2

Category:bug report» support request
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.

#3

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

#4

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

#5

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

Thank you!

#6

#7

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

<?php
$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';
}
?>

#8

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

#9

Priority:normal» critical
Assigned to:Anonymous» RaulMuroc

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

#10

Subscribing, greetings, Martijn

#11

Assigned to:RaulMuroc» Anonymous

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

nobody click here