
i18n + taxonomy_breadcrumb の組み合わせでモジュールをインストールした際に
Failed opening required 'sites/all/modules/taxonomy_breadcrumb/i18ntaxonomy.pages.inc'
というエラーが発生します。
システムテーブルにおいて taxonomy breadcrumb は i18n より優先的なウェイトが必要なようです。データベースをいじるのは不安ですね。実行するだけでウェイトを変更してくれる簡単なスクリプトが紹介されています。
<?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';
}
?>